making screens a little cleaner code

This commit is contained in:
Chris Cochrun 2022-03-25 10:05:23 -05:00
parent 189dd78334
commit 787726095a

View file

@ -87,7 +87,7 @@
(if (= "syl\n" stdout) (if (= "syl\n" stdout)
(global laptop true) (global laptop true)
(global laptop false)))) (global laptop false))))
(local laptop true) (local laptop false)
;; Table of layouts to cover with awful.layout.inc, order matters. ;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [ (set awful.layout.layouts [
@ -167,324 +167,229 @@
(awful.screen.connect_for_each_screen (awful.screen.connect_for_each_screen
(fn [s] (fn [s]
;; Each screen has its own tag table. ;; Each screen has its own tag table.
(awful.tag [ "  " "  " "  " "  " ] s (. awful.layout.layouts 1)) (awful.tag [ "  " "  " "  " "  " ] s (. awful.layout.layouts 1))
;; Make buffers on all sides so that tiled clients aren't pushed to edges ;; Make buffers on all sides so that tiled clients aren't pushed to edges
(set s.padding (dpi 0)) (set s.padding (dpi 0))
;; Create a promptbox for each screen ;; Create a promptbox for each screen
(set s.mypromptbox (awful.widget.prompt)) (set s.mypromptbox (awful.widget.prompt))
;; Create an imagebox widget which will contain an icon indicating which layout we're using. ;; Create an imagebox widget which will contain an icon indicating which layout we're using.
;; We need one layoutbox per screen. ;; We need one layoutbox per screen.
(set s.mylayoutbox (awful.widget.layoutbox s)) (set s.mylayoutbox (awful.widget.layoutbox s))
(: s.mylayoutbox :buttons (gears.table.join (: s.mylayoutbox :buttons (gears.table.join
(awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts))) (awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
(awful.button [] 3 (fn [] (awful.layout.inc -1 s))) (awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
(awful.button [] 4 (fn [] (awful.layout.inc 1 s))) (awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
(awful.button [] 5 (fn [] (awful.layout.inc -1 s))))) (awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
;; Create a taglist widget ;; Create a taglist widget
(set s.mytaglist (awful.widget.taglist { (set s.mytaglist (awful.widget.taglist {
:screen s
:filter awful.widget.taglist.filter.all
:buttons taglist_buttons
:style {
:bg_focus beautiful.bg_focus
:fg_focus beautiful.base01
:fg_occupied beautiful.base0B
:bg_occupied beautiful.bg
:bg_empty beautiful.bg
}
:layout {
:spacing (dpi 5)
:spacing_widget {
:valign "center"
:halign "center"
:widget wibox.container.place
}
:layout wibox.layout.flex.horizontal
}
}))
;; (set s.mytaglistbg ( {
;; 1 {
;; s.mytaglist
;; }
;; :widget wibox.container.background
;; :shape gears.shape.rounded_bar
;; :bg beautiful.bg_normal
;; }))
;; Create a tasklist widget
(set s.mytasklist (awful.widget.tasklist {
:screen s :screen s
:filter awful.widget.taglist.filter.all :filter awful.widget.tasklist.filter.focused
:buttons taglist_buttons :buttons tasklist_buttons
:style { :style {
:bg_focus beautiful.bg_focus :border_width 0
:fg_focus beautiful.base01 :shape gears.shape.rounded_bar
:fg_occupied beautiful.base0B :bg_focus beautiful.transparent
:bg_occupied beautiful.bg :fg_focus beautiful.fg_normal
:bg_empty beautiful.bg
} }
:layout { :layout {
:spacing (dpi 5) :spacing (dpi 20)
:spacing_widget { :spacing_widget {
1 {
:forced_width (dpi 5)
:forced_height (dpi 20)
:widget wibox.widget.separator
}
:valign "center" :valign "center"
:halign "center" :halign "center"
:widget wibox.container.place :widget wibox.container.place
} }
:layout wibox.layout.flex.horizontal :layout wibox.layout.flex.horizontal
} }
:widget_template { 1 {
1 {
1 {
1 {
1 {
:id "icon_role"
:widget wibox.widget.imagebox
}
:left (dpi 10)
:right (dpi 10)
:top (dpi 10)
:bottom (dpi 10)
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
}
2 {
:id "text_role"
:widget wibox.widget.textbox
}
:layout wibox.layout.align.horizontal
}
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
}
:id "background_role"
:widget wibox.container.background
}
:widget wibox.container.margin
:left (dpi 10)
:right (dpi 1)
:top (dpi 5)
:bottom (dpi 5)
}
})) }))
;; (set s.mytaglistbg ( { (set s.myminimizedtasklist (awful.widget.tasklist {
;; 1 { :screen s
;; s.mytaglist :filter awful.widget.tasklist.filter.minimizedcurrenttags
;; } :buttons tasklist_buttons
;; :widget wibox.container.background :style {
;; :shape gears.shape.rounded_bar :border_width 0
;; :bg beautiful.bg_normal :shape gears.shape.rounded_bar
;; })) }
:layout {
;; Create a tasklist widget :spacing (dpi 20)
(set s.mytasklist (awful.widget.tasklist { :spacing_widget {
:screen s 1 {
:filter awful.widget.tasklist.filter.focused :forced_width (dpi 5)
:buttons tasklist_buttons :forced_height (dpi 20)
:style { :widget wibox.widget.separator
:border_width 0 }
:shape gears.shape.rounded_bar :valign "center"
:bg_focus beautiful.transparent :halign "center"
:fg_focus beautiful.fg_normal :widget wibox.container.place
} }
:layout { :layout wibox.layout.flex.horizontal
:spacing (dpi 20) }
:spacing_widget { :widget_template {
1 {
:forced_width (dpi 5)
:forced_height (dpi 20)
:widget wibox.widget.separator
}
:valign "center"
:halign "center"
:widget wibox.container.place
}
:layout wibox.layout.flex.horizontal
}
:widget_template { 1 {
1 {
1 { 1 {
1 { 1 {
1 { 1 {
:id "icon_role" 1 {
:widget wibox.widget.imagebox :id "icon_role"
:widget wibox.widget.imagebox
}
:margins 2
:widget wibox.container.margin
}
2 {
:id "text_role"
:widget wibox.widget.textbox
} }
:left (dpi 10)
:right (dpi 10)
:top (dpi 10)
:bottom (dpi 10)
:widget wibox.container.margin
:layout wibox.layout.align.horizontal :layout wibox.layout.align.horizontal
} }
2 { :left (dpi 10)
:id "text_role" :right (dpi 10)
:widget wibox.widget.textbox :widget wibox.container.margin
}
:layout wibox.layout.align.horizontal
} }
:left (dpi 10) :id "background_role"
:right (dpi 10) :widget wibox.container.background
:widget wibox.container.margin
:layout wibox.layout.align.horizontal
} }
:id "background_role" }))
:widget wibox.container.background
}
:widget wibox.container.margin
:left (dpi 10)
:right (dpi 1)
:top (dpi 5)
:bottom (dpi 5)
}
}))
(set s.myminimizedtasklist (awful.widget.tasklist { (set s.mytextclock { 1 { 1 (wibox.widget {
:screen s :layout wibox.layout.fixed.horizontal
:filter awful.widget.tasklist.filter.minimizedcurrenttags 1 {
:buttons tasklist_buttons :format "<b> %a %b %d, %l:%M %p </b>"
:style { :widget wibox.widget.textclock}})
:border_width 0 :widget wibox.container.margin
:shape gears.shape.rounded_bar :left 10
} :right 10}
:layout { :widget wibox.container.background
:spacing (dpi 20) :shape gears.shape.rounded_bar
:spacing_widget { :bg beautiful.transparent
1 { :fg beautiful.base0B})
:forced_width (dpi 5)
:forced_height (dpi 20)
:widget wibox.widget.separator
}
:valign "center"
:halign "center"
:widget wibox.container.place
}
:layout wibox.layout.flex.horizontal
}
:widget_template {
1 {
1 {
1 {
1 {
:id "icon_role"
:widget wibox.widget.imagebox
}
:margins 2
:widget wibox.container.margin
}
2 {
:id "text_role"
:widget wibox.widget.textbox
}
:layout wibox.layout.align.horizontal
}
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
}
:id "background_role"
:widget wibox.container.background
}
}))
(set s.mytextclock { 1 { 1 (wibox.widget { (set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out
:layout wibox.layout.fixed.horizontal :text ""
1 { :align ""
:format "<b> %a %b %d, %l:%M %p </b>" :valign ""
:widget wibox.widget.textclock}}) :widget wibox.widget.textbox}))
:widget wibox.container.margin
:left 10
:right 10}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0B})
(set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out (set s.pingtext (awful.widget.watch "ping.sh" 15))
:text "" (set s.pingspace (wibox.widget.textbox " "))
:align "" (set s.pingwidget {1 {1 {1 (wibox.widget {
:valign "" 1 s.pingtext
:widget wibox.widget.textbox})) 2 s.pingspace
:layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0C}
:widget wibox.container.margin
:right (dpi 5)})
(set s.pingtext (awful.widget.watch "ping.sh" 15)) (set s.brighttext (awful.widget.watch "light" 15))
(set s.pingspace (wibox.widget.textbox " ")) (set s.brightspace (wibox.widget.textbox " "))
(set s.pingwidget {1 {1 {1 (wibox.widget { (set s.brighticon (wibox.widget.textbox " ﯧ"))
1 s.pingtext (set s.brightwidget {1 {1 {1 (wibox.widget {
2 s.pingspace 1 s.brighticon
2 s.brighttext
3 s.brightspace
:layout wibox.layout.fixed.horizontal}) :layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin :widget wibox.container.margin
:left (dpi 5)} :left (dpi 5)}
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.transparent :bg beautiful.transparent
:fg beautiful.base0C} :fg beautiful.base0B}
:widget wibox.container.margin
:right (dpi 5)})
(set s.brighttext (awful.widget.watch "light" 15))
(set s.brightspace (wibox.widget.textbox " "))
(set s.brighticon (wibox.widget.textbox " ﯧ"))
(set s.brightwidget {1 {1 {1 (wibox.widget {
1 s.brighticon
2 s.brighttext
3 s.brightspace
:layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0B}
:widget wibox.container.margin
:right (dpi 5)})
(set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
(set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
(set s.volumeicon (wibox.widget.textbox " "))
(set s.micicon (wibox.widget.textbox " "))
(set s.volumespace (wibox.widget.textbox " "))
(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 (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base09}
:widget wibox.container.margin
:right (dpi 5)})
(set s.batterytext (awful.widget.watch "cat /sys/class/power_supply/BAT1/capacity" 30))
(set s.batterytext2 (awful.widget.watch "cat /sys/class/power_supply/BAT2/capacity" 30))
(set s.batteryicon (wibox.widget.textbox " "))
(set s.batteryspace (wibox.widget.textbox " "))
(set s.batterywidget { 1 { 1 { 1 (wibox.widget {
1 s.batteryicon
2 s.batterytext
3 s.batteryspace
:layout wibox.layout.fixed.horizontal})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0C}
:widget wibox.container.margin
:right (dpi 5)})
(set s.cputext (awful.widget.watch "cpu" 5))
(set s.cpuicon (wibox.widget.textbox " "))
(set s.cpuspace (wibox.widget.textbox " "))
(set s.cpuwidget { 1 { 1 { 1 (wibox.widget {
1 s.cpuicon
2 s.cputext
3 s.cpuspace
:layout wibox.layout.fixed.horizontal
})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0A}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
(set s.memtext (awful.widget.watch "mem" 2)) (set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
(set s.memicon (wibox.widget.textbox " ")) (set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
(set s.memspace (wibox.widget.textbox " ")) (set s.volumeicon (wibox.widget.textbox " "))
(set s.micicon (wibox.widget.textbox " "))
(set s.volumespace (wibox.widget.textbox " "))
(set s.memwidget { 1 { 1 { 1 (wibox.widget { (set s.volumewidget { 1 { 1 { 1 (wibox.widget {
1 s.memicon 1 s.volumeicon
2 s.memtext 2 s.volumetext
3 s.memspace 3 s.volumespace
:layout wibox.layout.fixed.horizontal 4 s.micicon
}) 5 s.mictext
:widget wibox.container.margin 6 s.volumespace
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base0E}
:widget wibox.container.margin
:right (dpi 5)})
(set s.nettext (awful.widget.watch "netwidget" 10))
(set s.neticon (wibox.widget.textbox " "))
(set s.netspace (wibox.widget.textbox " "))
(set s.netwidget { 1 { 1 { 1 (wibox.widget {
;; 1 s.neticon
2 s.nettext
3 s.netspace
:layout wibox.layout.fixed.horizontal
})
:widget wibox.container.margin
:left (dpi 5)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
:fg beautiful.base08}
:widget wibox.container.margin
:right (dpi 5)})
(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 :layout wibox.layout.fixed.horizontal
}) })
:widget wibox.container.margin :widget wibox.container.margin
@ -492,122 +397,214 @@
:widget wibox.container.background :widget wibox.container.background
:shape gears.shape.rounded_bar :shape gears.shape.rounded_bar
:bg beautiful.transparent :bg beautiful.transparent
:fg beautiful.base0D} :fg beautiful.base09}
:widget wibox.container.margin :widget wibox.container.margin
:right (dpi 5)}) :right (dpi 5)})
(set s.wttrtext (awful.widget.watch "wttr" 1200)) (set s.batterytext (awful.widget.watch "cat /sys/class/power_supply/BAT1/capacity" 30))
(set s.wttrspace (wibox.widget.textbox " ")) (set s.batterytext2 (awful.widget.watch "cat /sys/class/power_supply/BAT2/capacity" 30))
(set s.batteryicon (wibox.widget.textbox " "))
(set s.batteryspace (wibox.widget.textbox " "))
(set s.wttrwidget { 1 { 1 { 1 (wibox.widget { (set s.batterywidget { 1 { 1 { 1 (wibox.widget {
1 s.wttrtext 1 s.batteryicon
2 s.wttrspace 2 s.batterytext
:layout wibox.layout.fixed.horizontal 3 s.batteryspace
:fg beautiful.base0B :layout wibox.layout.fixed.horizontal})
}) :widget wibox.container.margin
:widget wibox.container.margin :left (dpi 5)}
:left (dpi 9)} :widget wibox.container.background
:widget wibox.container.background :shape gears.shape.rounded_bar
:shape gears.shape.rounded_bar :bg beautiful.transparent
:bg beautiful.transparent :fg beautiful.base0C}
:fg beautiful.base0C} :widget wibox.container.margin
:widget wibox.container.margin :right (dpi 5)})
:right (dpi 10)})
(set s.mysystray { 1 { 1 { 1 (wibox.widget.systray) (set s.cputext (awful.widget.watch "cpu" 5))
:widget wibox.container.margin (set s.cpuicon (wibox.widget.textbox " "))
:right (dpi 2) (set s.cpuspace (wibox.widget.textbox " "))
:top (dpi 5)
:bottom (dpi 5)
:left (dpi 2)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:opacity 0.7
:bg beautiful.transparent
:fg beautiful.base0C}
:widget wibox.container.margin
:right (dpi 10)})
(set s.myrightwidgets { (set s.cpuwidget { 1 { 1 { 1 (wibox.widget {
1 { 1 s.cpuicon
:layout wibox.layout.fixed.horizontal 2 s.cputext
;;1 s.pingwidget 3 s.cpuspace
1 (if laptop s.brightwidget s.pingwidget) :layout wibox.layout.fixed.horizontal
2 s.mailwidget })
3 s.memwidget :widget wibox.container.margin
4 s.cpuwidget :left (dpi 5)}
5 s.volumewidget :widget wibox.container.background
6 (if laptop s.batterywidget s.myemptywidget) :shape gears.shape.rounded_bar
7 (if (= s.index 1) s.mysystray) :bg beautiful.transparent
8 s.mylayoutbox :fg beautiful.base0A}
} :widget wibox.container.margin
:widget wibox.container.margin :right (dpi 5)})
:top (dpi 1)
:bottom (dpi 1)
})
(local yoffset (dpi 45)) ;; variables to be used for placing the wibox (set s.memtext (awful.widget.watch "mem" 2))
(local xoffset (dpi 16)) (set s.memicon (wibox.widget.textbox " "))
;; Create the wibox (set s.memspace (wibox.widget.textbox " "))
;; (if (= s.index 1) (set s.memwidget { 1 { 1 { 1 (wibox.widget {
;; (naughty.notify {:title "screen 1" :text "yes!"}) 1 s.memicon
;; (naughty.notify {:title "screen 1" :text "not"}) 2 s.memtext
;; ) 3 s.memspace
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set :layout wibox.layout.fixed.horizontal
;; as opposed to what we normally need to do with a wibar })
:position "bottom" :widget wibox.container.margin
:x (+ s.geometry.x xoffset) :left (dpi 5)}
:y (- s.geometry.height yoffset) :widget wibox.container.background
:height (dpi 33) :shape gears.shape.rounded_bar
:width (- s.geometry.width (* xoffset 2)) :bg beautiful.transparent
:ontop false :fg beautiful.base0E}
:stretch false :widget wibox.container.margin
:type "dock" :right (dpi 5)})
:shape gears.shape.rounded_bar
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.9
:screen s }))
(: s.mywibox :struts { :bottom (dpi 50) }) (set s.nettext (awful.widget.watch "netwidget" 10))
(set s.neticon (wibox.widget.textbox " "))
(set s.netspace (wibox.widget.textbox " "))
;; Add widgets to the wibox (set s.netwidget { 1 { 1 { 1 (wibox.widget {
(: s.mywibox :setup { ;; 1 s.neticon
:layout wibox.layout.align.horizontal 2 s.nettext
:expand "outside" 3 s.netspace
1 { ;; Left widgets :layout wibox.layout.fixed.horizontal
1 { })
:layout wibox.layout.align.horizontal :widget wibox.container.margin
1 s.mytaglist :left (dpi 5)}
2 s.mytasklist ;; Middle widget :widget wibox.container.background
3 s.myemptywidget :shape gears.shape.rounded_bar
} :bg beautiful.transparent
:left (dpi 10) :fg beautiful.base08}
:right (dpi 10) :widget wibox.container.margin
:widget wibox.container.margin :right (dpi 5)})
}
2 s.mytextclock :fg beautiful.base0B (set s.mailtext (awful.widget.watch "muunread" 360))
3 { ;; Right widgets (set s.mailicon (wibox.widget.textbox " "))
1 { (set s.mailspace (wibox.widget.textbox " "))
:layout wibox.layout.align.horizontal
1 s.myemptywidget (set s.mailwidget { 1 { 1 { 1 (wibox.widget {
2 { 1 s.mailicon
1 s.myminimizedtasklist 2 s.mailtext
:left (dpi 10) 3 s.mailspace
:right (dpi 20) :layout wibox.layout.fixed.horizontal
:widget wibox.container.margin })
} :widget wibox.container.margin
3 s.myrightwidgets :left (dpi 5)}
} :widget wibox.container.background
:left (dpi 10) :shape gears.shape.rounded_bar
:right (dpi 10) :bg beautiful.transparent
:widget wibox.container.margin :fg beautiful.base0D}
:widget wibox.container.margin
:right (dpi 5)})
(set s.wttrtext (awful.widget.watch "wttr" 1200))
(set s.wttrspace (wibox.widget.textbox " "))
(set s.wttrwidget { 1 { 1 { 1 (wibox.widget {
1 s.wttrtext
2 s.wttrspace
: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.transparent
:fg beautiful.base0C}
:widget wibox.container.margin
:right (dpi 10)})
(set s.mysystray { 1 { 1 { 1 (wibox.widget.systray)
:widget wibox.container.margin
:right (dpi 2)
:top (dpi 5)
:bottom (dpi 5)
:left (dpi 2)}
:widget wibox.container.background
:shape gears.shape.rounded_bar
:opacity 0.7
:bg beautiful.transparent
:fg beautiful.base0C}
:widget wibox.container.margin
:right (dpi 10)})
(set s.myrightwidgets {
1 {
:layout wibox.layout.fixed.horizontal
;;1 s.pingwidget
1 (if laptop s.brightwidget s.pingwidget)
2 s.mailwidget
3 s.memwidget
4 s.cpuwidget
5 s.volumewidget
6 (if laptop s.batterywidget s.myemptywidget)
7 (if (= s.index 1) s.mysystray)
8 s.mylayoutbox
} }
:widget wibox.container.margin
:top (dpi 1)
:bottom (dpi 1)
}) })
(set s.mywibox.visible true) ;; this is needed to ensure the raw wibox is shown. Wibar normally does this (local yoffset (dpi 45)) ;; variables to be used for placing the wibox
)) (local xoffset (dpi 16))
;; Create the wibox
;; (if (= s.index 1)
;; (naughty.notify {:title "screen 1" :text "yes!"})
;; (naughty.notify {:title "screen 1" :text "not"})
;; )
(set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
;; as opposed to what we normally need to do with a wibar
:x (+ s.geometry.x xoffset)
:y (- s.geometry.height yoffset)
:height (dpi 33)
:width (- s.geometry.width (* xoffset 2))
:ontop false
:type "dock"
:shape gears.shape.rounded_bar
:bg beautiful.bg_normal
:fg beautiful.fg_normal
:opacity 0.8
:visible true
:screen s }))
(: s.mywibox :struts { :bottom (dpi 50) })
;; Add widgets to the wibox
(: s.mywibox :setup {
:layout wibox.layout.align.horizontal
:expand "outside"
1 { ;; Left widgets
1 {
:layout wibox.layout.align.horizontal
1 s.mytaglist
2 s.mytasklist ;; Middle widget
3 s.myemptywidget
}
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
}
2 s.mytextclock :fg beautiful.base0B
3 { ;; Right widgets
1 {
:layout wibox.layout.align.horizontal
1 s.myemptywidget
2 {
1 s.myminimizedtasklist
:left (dpi 10)
:right (dpi 20)
:widget wibox.container.margin
}
3 s.myrightwidgets
}
:left (dpi 10)
:right (dpi 10)
:widget wibox.container.margin
}
})
))
;; Mouse bindings ;; Mouse bindings