Adding mail widget in awesome
This commit is contained in:
		
							parent
							
								
									43893af38d
								
							
						
					
					
						commit
						80e0136e81
					
				
					 5 changed files with 41 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -393,6 +393,26 @@
 | 
			
		|||
                            :fg beautiful.base0A}
 | 
			
		||||
                      :widget wibox.container.margin
 | 
			
		||||
                      :right (dpi 10)})
 | 
			
		||||
 | 
			
		||||
     (set s.mailtext (awful.widget.watch "muunread" 360))
 | 
			
		||||
     (set s.mailicon (wibox.widget.textbox " "))
 | 
			
		||||
     (set s.mailspace (wibox.widget.textbox " "))
 | 
			
		||||
 | 
			
		||||
     (set s.mailwidget { 1 { 1 { 1 (wibox.widget {
 | 
			
		||||
                                         1 s.mailicon
 | 
			
		||||
                                         2 s.mailtext
 | 
			
		||||
                                         3 s.mailspace
 | 
			
		||||
                                        :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                                        :fg beautiful.base0B
 | 
			
		||||
                                        })
 | 
			
		||||
                                :widget wibox.container.margin
 | 
			
		||||
                                :left (dpi 9)}
 | 
			
		||||
                            :widget wibox.container.background
 | 
			
		||||
                            :shape gears.shape.rounded_bar
 | 
			
		||||
                            :bg beautiful.bg_normal
 | 
			
		||||
                            :fg beautiful.base0C}
 | 
			
		||||
                      :widget wibox.container.margin
 | 
			
		||||
                      :right (dpi 10)})
 | 
			
		||||
     
 | 
			
		||||
(set s.mysystray { 1 { 1 { 1 (wibox.widget.systray)
 | 
			
		||||
                           :widget wibox.container.margin
 | 
			
		||||
| 
						 | 
				
			
			@ -410,11 +430,12 @@
 | 
			
		|||
     (set s.myrightwidgets {
 | 
			
		||||
                            1 {
 | 
			
		||||
                               :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                               1 s.cpuwidget
 | 
			
		||||
                               2 s.volumewidget
 | 
			
		||||
                               3 (if laptop s.batterywidget s.myemptywidget)
 | 
			
		||||
                               4 (if (= s.index 1) s.mysystray)
 | 
			
		||||
                               5 s.mylayoutbox
 | 
			
		||||
                               1 s.mailwidget
 | 
			
		||||
                               2 s.cpuwidget
 | 
			
		||||
                               3 s.volumewidget
 | 
			
		||||
                               4 (if laptop s.batterywidget s.myemptywidget)
 | 
			
		||||
                               5 (if (= s.index 1) s.mysystray)
 | 
			
		||||
                               6 s.mylayoutbox
 | 
			
		||||
                               }
 | 
			
		||||
                            :widget wibox.container.background
 | 
			
		||||
                            })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,6 +57,17 @@
 | 
			
		|||
                            :placement (+ awful.placement.no_offscreen awful.placement.centered)
 | 
			
		||||
                            }
 | 
			
		||||
               }
 | 
			
		||||
              ;; Emacs
 | 
			
		||||
              {
 | 
			
		||||
               :rule_any {
 | 
			
		||||
                          :instance [
 | 
			
		||||
                                     "emacs"
 | 
			
		||||
                                     ]
 | 
			
		||||
                          }
 | 
			
		||||
               :properties {
 | 
			
		||||
                            :size_hints_honor false
 | 
			
		||||
                            }
 | 
			
		||||
               }
 | 
			
		||||
              ;; Org-Agenda
 | 
			
		||||
              {
 | 
			
		||||
               :rule_any {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue