diff --git a/awesome/init.fnl b/awesome/init.fnl
index 83e05ba..d958d9a 100644
--- a/awesome/init.fnl
+++ b/awesome/init.fnl
@@ -87,7 +87,7 @@
(if (= "syl\n" stdout)
(global laptop true)
(global laptop false))))
-(local laptop true)
+(local laptop false)
;; Table of layouts to cover with awful.layout.inc, order matters.
(set awful.layout.layouts [
@@ -167,324 +167,229 @@
(awful.screen.connect_for_each_screen
(fn [s]
- ;; Each screen has its own tag table.
- (awful.tag [ " " " " " " " " ] s (. awful.layout.layouts 1))
+ ;; Each screen has its own tag table.
+ (awful.tag [ " " " " " " " " ] s (. awful.layout.layouts 1))
- ;; Make buffers on all sides so that tiled clients aren't pushed to edges
- (set s.padding (dpi 0))
+ ;; Make buffers on all sides so that tiled clients aren't pushed to edges
+ (set s.padding (dpi 0))
- ;; Create a promptbox for each screen
- (set s.mypromptbox (awful.widget.prompt))
- ;; Create an imagebox widget which will contain an icon indicating which layout we're using.
- ;; We need one layoutbox per screen.
- (set s.mylayoutbox (awful.widget.layoutbox s))
- (: s.mylayoutbox :buttons (gears.table.join
- (awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
- (awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
- (awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
- (awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
-
- ;; Create a taglist widget
- (set s.mytaglist (awful.widget.taglist {
+ ;; Create a promptbox for each screen
+ (set s.mypromptbox (awful.widget.prompt))
+ ;; Create an imagebox widget which will contain an icon indicating which layout we're using.
+ ;; We need one layoutbox per screen.
+ (set s.mylayoutbox (awful.widget.layoutbox s))
+ (: s.mylayoutbox :buttons (gears.table.join
+ (awful.button [] 1 (fn [] (awful.layout.inc 1 s awful.layout.layouts)))
+ (awful.button [] 3 (fn [] (awful.layout.inc -1 s)))
+ (awful.button [] 4 (fn [] (awful.layout.inc 1 s)))
+ (awful.button [] 5 (fn [] (awful.layout.inc -1 s)))))
+
+ ;; Create a taglist widget
+ (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
- :filter awful.widget.taglist.filter.all
- :buttons taglist_buttons
+ :filter awful.widget.tasklist.filter.focused
+ :buttons tasklist_buttons
:style {
- :bg_focus beautiful.bg_focus
- :fg_focus beautiful.base01
- :fg_occupied beautiful.base0B
- :bg_occupied beautiful.bg
- :bg_empty beautiful.bg
+ :border_width 0
+ :shape gears.shape.rounded_bar
+ :bg_focus beautiful.transparent
+ :fg_focus beautiful.fg_normal
}
:layout {
- :spacing (dpi 5)
+ :spacing (dpi 20)
:spacing_widget {
+ 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 {
+ :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 ( {
- ;; 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
- :filter awful.widget.tasklist.filter.focused
- :buttons tasklist_buttons
- :style {
- :border_width 0
- :shape gears.shape.rounded_bar
- :bg_focus beautiful.transparent
- :fg_focus beautiful.fg_normal
- }
- :layout {
- :spacing (dpi 20)
- :spacing_widget {
- 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 {
+ (set s.myminimizedtasklist (awful.widget.tasklist {
+ :screen s
+ :filter awful.widget.tasklist.filter.minimizedcurrenttags
+ :buttons tasklist_buttons
+ :style {
+ :border_width 0
+ :shape gears.shape.rounded_bar
+ }
+ :layout {
+ :spacing (dpi 20)
+ :spacing_widget {
+ 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 {
- :id "icon_role"
- :widget wibox.widget.imagebox
+ 1 {
+ :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
}
- 2 {
- :id "text_role"
- :widget wibox.widget.textbox
- }
- :layout wibox.layout.align.horizontal
+ :left (dpi 10)
+ :right (dpi 10)
+ :widget wibox.container.margin
}
- :left (dpi 10)
- :right (dpi 10)
- :widget wibox.container.margin
- :layout wibox.layout.align.horizontal
+ :id "background_role"
+ :widget wibox.container.background
}
- :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 {
- :screen s
- :filter awful.widget.tasklist.filter.minimizedcurrenttags
- :buttons tasklist_buttons
- :style {
- :border_width 0
- :shape gears.shape.rounded_bar
- }
- :layout {
- :spacing (dpi 20)
- :spacing_widget {
- 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 {
- :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 {
+ :layout wibox.layout.fixed.horizontal
+ 1 {
+ :format " %a %b %d, %l:%M %p "
+ :widget wibox.widget.textclock}})
+ :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.mytextclock { 1 { 1 (wibox.widget {
- :layout wibox.layout.fixed.horizontal
- 1 {
- :format " %a %b %d, %l:%M %p "
- :widget wibox.widget.textclock}})
- :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
+ :text ""
+ :align ""
+ :valign ""
+ :widget wibox.widget.textbox}))
- (set s.myemptywidget (wibox.widget { ;; an empty widget for spacing things out
- :text ""
- :align ""
- :valign ""
- :widget wibox.widget.textbox}))
+ (set s.pingtext (awful.widget.watch "ping.sh" 15))
+ (set s.pingspace (wibox.widget.textbox " "))
+ (set s.pingwidget {1 {1 {1 (wibox.widget {
+ 1 s.pingtext
+ 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.pingspace (wibox.widget.textbox " "))
- (set s.pingwidget {1 {1 {1 (wibox.widget {
- 1 s.pingtext
- 2 s.pingspace
+ (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.base0C}
- :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
+ :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.memtext (awful.widget.watch "mem" 2))
- (set s.memicon (wibox.widget.textbox " "))
- (set s.memspace (wibox.widget.textbox " "))
+ (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.memwidget { 1 { 1 { 1 (wibox.widget {
- 1 s.memicon
- 2 s.memtext
- 3 s.memspace
- :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.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
+ (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
@@ -492,122 +397,214 @@
:widget wibox.container.background
:shape gears.shape.rounded_bar
:bg beautiful.transparent
- :fg beautiful.base0D}
+ :fg beautiful.base09}
:widget wibox.container.margin
:right (dpi 5)})
- (set s.wttrtext (awful.widget.watch "wttr" 1200))
- (set s.wttrspace (wibox.widget.textbox " "))
+ (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.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.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.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.cputext (awful.widget.watch "cpu" 5))
+ (set s.cpuicon (wibox.widget.textbox " "))
+ (set s.cpuspace (wibox.widget.textbox " "))
- (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.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
+ :right (dpi 5)})
- (local yoffset (dpi 45)) ;; variables to be used for placing the wibox
- (local xoffset (dpi 16))
- ;; Create the wibox
+ (set s.memtext (awful.widget.watch "mem" 2))
+ (set s.memicon (wibox.widget.textbox " "))
+ (set s.memspace (wibox.widget.textbox " "))
- ;; (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
- :position "bottom"
- :x (+ s.geometry.x xoffset)
- :y (- s.geometry.height yoffset)
- :height (dpi 33)
- :width (- s.geometry.width (* xoffset 2))
- :ontop false
- :stretch false
- :type "dock"
- :shape gears.shape.rounded_bar
- :bg beautiful.bg_normal
- :fg beautiful.fg_normal
- :opacity 0.9
- :screen s }))
+ (set s.memwidget { 1 { 1 { 1 (wibox.widget {
+ 1 s.memicon
+ 2 s.memtext
+ 3 s.memspace
+ :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.base0E}
+ :widget wibox.container.margin
+ :right (dpi 5)})
- (: 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
- (: 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
+ (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
+ })
+ :widget wibox.container.margin
+ :left (dpi 5)}
+ :widget wibox.container.background
+ :shape gears.shape.rounded_bar
+ :bg beautiful.transparent
+ :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