Making Awesome bar look better
This commit is contained in:
		
							parent
							
								
									766bf7f52f
								
							
						
					
					
						commit
						deef4f3192
					
				
					 6 changed files with 85 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -173,7 +173,19 @@
 | 
			
		|||
                                           :buttons taglist_buttons
 | 
			
		||||
                                           :style {
 | 
			
		||||
                                                   :bg_focus beautiful.bg_focus
 | 
			
		||||
                                                   :fg_focus beautiful.base01
 | 
			
		||||
                                                   :bg_occupied beautiful.bg_normal
 | 
			
		||||
                                                   :bg_empty beautiful.bg_normal
 | 
			
		||||
                                                   }
 | 
			
		||||
                                           :layout {
 | 
			
		||||
                                                    :spacing (dpi 10)
 | 
			
		||||
                                                    :spacing_widget {
 | 
			
		||||
                                                                       :valign "center"
 | 
			
		||||
                                                                       :halign "center"
 | 
			
		||||
                                                                       :widget wibox.container.place
 | 
			
		||||
                                                                       }
 | 
			
		||||
                                                      :layout wibox.layout.flex.horizontal
 | 
			
		||||
                                                    }
 | 
			
		||||
                                           }))
 | 
			
		||||
 | 
			
		||||
   ;; Create a tasklist widget
 | 
			
		||||
| 
						 | 
				
			
			@ -200,7 +212,7 @@
 | 
			
		|||
                                                                       }
 | 
			
		||||
                                                      :layout wibox.layout.flex.horizontal
 | 
			
		||||
                                                      }
 | 
			
		||||
                                             :widget_template {
 | 
			
		||||
                                             :widget_template { 1 {
 | 
			
		||||
                                                               1 {
 | 
			
		||||
                                                                  1 {
 | 
			
		||||
                                                                     1 {
 | 
			
		||||
| 
						 | 
				
			
			@ -224,6 +236,9 @@
 | 
			
		|||
                                                               :id "background_role"
 | 
			
		||||
                                                               :widget wibox.container.background
 | 
			
		||||
                                                               }
 | 
			
		||||
:widget wibox.container.margin
 | 
			
		||||
:left (dpi 10)
 | 
			
		||||
}
 | 
			
		||||
                                             }))
 | 
			
		||||
 | 
			
		||||
   (set s.myminimizedtasklist (awful.widget.tasklist {
 | 
			
		||||
| 
						 | 
				
			
			@ -273,11 +288,18 @@
 | 
			
		|||
                                                               }
 | 
			
		||||
                                             }))
 | 
			
		||||
 | 
			
		||||
     (set s.mytextclock (wibox.widget {
 | 
			
		||||
     (set s.mytextclock { 1 { 1 (wibox.widget {
 | 
			
		||||
                                       :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                                       1 {
 | 
			
		||||
                                          :format "<b> %a %b %d, %l:%M %p </b>"
 | 
			
		||||
                                          :widget wibox.widget.textclock}}))
 | 
			
		||||
                                          :widget wibox.widget.textclock}})
 | 
			
		||||
                              :widget wibox.container.margin
 | 
			
		||||
                              :left 10
 | 
			
		||||
                              :right 10}
 | 
			
		||||
                          :widget wibox.container.background
 | 
			
		||||
                          :shape gears.shape.rounded_bar
 | 
			
		||||
                          :bg beautiful.bg_normal
 | 
			
		||||
                          :fg beautiful.base0B})
 | 
			
		||||
 | 
			
		||||
     (set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out
 | 
			
		||||
                           :text ""
 | 
			
		||||
| 
						 | 
				
			
			@ -295,15 +317,28 @@
 | 
			
		|||
                                      :layout wibox.layout.fixed.horizontal}))
 | 
			
		||||
 | 
			
		||||
     (set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 1))
 | 
			
		||||
     (set s.mictext (awful.widget.watch "pamixer --source 48 --get-volume-human" 1))
 | 
			
		||||
     (set s.volumeicon (wibox.widget.textbox "  "))
 | 
			
		||||
     (set s.volumespace (wibox.widget.textbox "  "))
 | 
			
		||||
     (set s.micicon (wibox.widget.textbox " "))
 | 
			
		||||
     (set s.volumespace (wibox.widget.textbox " "))
 | 
			
		||||
 | 
			
		||||
     (set s.volumewidget (wibox.widget {
 | 
			
		||||
     (set s.volumewidget { 1 { 1 { 1 (wibox.widget {
 | 
			
		||||
                                        1 s.volumeicon
 | 
			
		||||
                                        2 s.volumetext
 | 
			
		||||
                                        3 s.volumespace
 | 
			
		||||
                                        4 s.micicon
 | 
			
		||||
                                        5 s.mictext
 | 
			
		||||
                                        6 s.volumespace
 | 
			
		||||
                                        :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                                        }))
 | 
			
		||||
                                        })
 | 
			
		||||
                               :widget wibox.container.margin
 | 
			
		||||
                               :left 10}
 | 
			
		||||
                             :widget wibox.container.background
 | 
			
		||||
                             :shape gears.shape.rounded_bar
 | 
			
		||||
                             :bg beautiful.bg_normal
 | 
			
		||||
                             :fg beautiful.base09}
 | 
			
		||||
                          :widget wibox.container.margin
 | 
			
		||||
                          :right 10})
 | 
			
		||||
 | 
			
		||||
     (set s.batterytext (awful.widget.watch "cat /sys/class/power_supply/BAT1/capacity" 30))
 | 
			
		||||
     (set s.batteryicon (wibox.widget.textbox " "))
 | 
			
		||||
| 
						 | 
				
			
			@ -315,24 +350,44 @@
 | 
			
		|||
                                         3 s.batteryspace
 | 
			
		||||
                                         :layout wibox.layout.fixed.horizontal}))
 | 
			
		||||
 | 
			
		||||
     (set s.cputext (awful.widget.watch "cpu" 10))
 | 
			
		||||
     (set s.cputext (awful.widget.watch "cpu" 5))
 | 
			
		||||
     (set s.cpuicon (wibox.widget.textbox " "))
 | 
			
		||||
     (set s.cpuspace (wibox.widget.textbox "  "))
 | 
			
		||||
     (set s.cpuspace (wibox.widget.textbox " "))
 | 
			
		||||
 | 
			
		||||
     (set s.cpuwidget (wibox.widget {
 | 
			
		||||
     (set s.cpuwidget { 1 { 1 { 1 (wibox.widget {
 | 
			
		||||
                                         1 s.cpuicon
 | 
			
		||||
                                         2 s.cputext
 | 
			
		||||
                                         3 s.cpuspace
 | 
			
		||||
                                        :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                                        }))
 | 
			
		||||
                                        :fg beautiful.base0B
 | 
			
		||||
                                        })
 | 
			
		||||
                                :widget wibox.container.margin
 | 
			
		||||
                                :left 9}
 | 
			
		||||
                            :widget wibox.container.background
 | 
			
		||||
                            :shape gears.shape.rounded_bar
 | 
			
		||||
                            :bg beautiful.bg_normal
 | 
			
		||||
                            :fg beautiful.base0A}
 | 
			
		||||
                      :widget wibox.container.margin
 | 
			
		||||
                      :right 10})
 | 
			
		||||
     
 | 
			
		||||
(set s.mysystray { 1 { 1 { 1 (wibox.widget.systray)
 | 
			
		||||
                           :widget wibox.container.margin
 | 
			
		||||
                           :right 10
 | 
			
		||||
                           :left 10}
 | 
			
		||||
                       :widget wibox.container.background
 | 
			
		||||
                       :shape gears.shape.rounded_bar
 | 
			
		||||
                       :bg beautiful.bg_normal
 | 
			
		||||
                       :fg beautiful.base0C}
 | 
			
		||||
                   :widget wibox.container.margin
 | 
			
		||||
                   :right 10})
 | 
			
		||||
 | 
			
		||||
     (set s.myrightwidgets {
 | 
			
		||||
                            1 {
 | 
			
		||||
                               :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                               1 s.cpuwidget
 | 
			
		||||
                               2 s.volumewidget
 | 
			
		||||
                               3 (if laptop s.batterywidget s.myemptywidget)
 | 
			
		||||
                               4 wibox.widget.systray
 | 
			
		||||
                               4 s.mysystray
 | 
			
		||||
                               5 s.mylayoutbox
 | 
			
		||||
                               }
 | 
			
		||||
                            :widget wibox.container.background
 | 
			
		||||
| 
						 | 
				
			
			@ -352,7 +407,7 @@
 | 
			
		|||
                            :stretch false
 | 
			
		||||
                            :type "dock"
 | 
			
		||||
                            :shape gears.shape.rounded_bar
 | 
			
		||||
                            :bg beautiful.bg_normal
 | 
			
		||||
                            :bg beautiful.transparent
 | 
			
		||||
                            :fg beautiful.fg_normal
 | 
			
		||||
                            :opacity 0.65
 | 
			
		||||
                            :screen s }))
 | 
			
		||||
| 
						 | 
				
			
			@ -374,7 +429,7 @@
 | 
			
		|||
                           :right (dpi 10)
 | 
			
		||||
                           :widget wibox.container.margin
 | 
			
		||||
                           }
 | 
			
		||||
                        2 s.mytextclock
 | 
			
		||||
                        2 s.mytextclock :fg beautiful.base0B
 | 
			
		||||
                        3 { ;; Right widgets
 | 
			
		||||
                           1 {
 | 
			
		||||
                              :layout wibox.layout.align.horizontal
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue