picom, mpv, tridactyl, and new transmission script

This commit is contained in:
Chris Cochrun 2020-10-07 07:36:56 -05:00
parent d36ce8b8b9
commit 907dc10bad
7 changed files with 298 additions and 291 deletions

View file

@ -33,148 +33,149 @@
;;; panel
;; (awful.screen.connect_for_each_screen
;; (fn [s]
;; ;; Wallpaper
;; (set_wallpaper s)
(awful.screen.connect_for_each_screen
(fn [s]
;; Wallpaper
(set_wallpaper 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))
;; ;; 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 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 systray widget
;; (set s.mysystray {
;; 1 (wibox.widget.systray)
;; :widget wibox.container.background
;; })
;; ;; Create a taglist widget
;; (set s.mytaglist (awful.widget.taglist {
;; :screen s
;; :filter awful.widget.taglist.filter.all
;; :buttons taglist_buttons
;; }))
;; create a systray widget
(set s.mysystray {
1 (wibox.widget.systray)
:widget wibox.container.background
})
;; Create a taglist widget
(set s.mytaglist (awful.widget.taglist {
:screen s
:filter awful.widget.taglist.filter.all
:buttons taglist_buttons
}))
;; ;; Create a tasklist widget
;; (set s.mytasklist (awful.widget.tasklist {
;; :screen s
;; :filter awful.widget.tasklist.filter.currenttags
;; :buttons tasklist_buttons
;; :style {
;; :border_width 0
;; :border_color "#777777"
;; :shape gears.shape.rounded_bar
;; }
;; :layout {
;; :spacing 20
;; :spacing_widget {
;; 1 {
;; :forced_width 5
;; :forced_height (dpi 20)
;; :widget wibox.widget.seperator
;; }
;; :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 10
;; :right 10
;; :widget wibox.container.margin
;; }
;; :id "background_role"
;; :widget wibox.container.background}))
;; Create a tasklist widget
(set s.mytasklist (awful.widget.tasklist {
:screen s
:filter awful.widget.tasklist.filter.currenttags
:buttons tasklist_buttons
:style {
:border_width 0
:border_color "#777777"
:shape gears.shape.rounded_bar
}
:layout {
:spacing 20
:spacing_widget {
1 {
:forced_width 5
:forced_height (dpi 20)
:widget wibox.widget.seperator
}
: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 10
:right 10
:widget wibox.container.margin
}
:id "background_role"
:widget wibox.container.background}))
;; ;; create battery network and volume widgets
;; (set s.battery (require widget.battery))
;; (set s.volume (require widget.volume))
;; (set s.updater (require widget.package-updater))
;; create battery network and volume widgets
(set s.battery (require widget.battery))
(set s.volume (require widget.volume))
(set s.updater (require widget.package-updater))
;; ;; create right widgets
;; (set s.myrightwidgets {
;; 1 {
;; :layout wibox.layout.fixed.horizontal
;; 1 s.volume
;; 2 s.mysystray
;; 3 s.updater
;; 4 s.battery
;; 5 (wibox.container.margin (s.mylayoutbox 0 (dpi 25) 0 0))
;; }
;; :widget wibox.container.background})
;; create right widgets
(set s.myrightwidgets {
1 {
:layout wibox.layout.fixed.horizontal
1 s.volume
2 s.mysystray
3 s.updater
4 s.battery
5 (wibox.container.margin (s.mylayoutbox 0 (dpi 25) 0 0))
}
:widget wibox.container.background})
;; ;; empty widget to use for spacing
;; (set s.myemptywidget (wibox.widget {
;; :markup ""
;; :align ""
;; :valign ""
;; :widget wibox.widget.textbox
;; }))
;; empty widget to use for spacing
(set s.myemptywidget (wibox.widget {
:markup ""
:align ""
:valign ""
:widget wibox.widget.textbox
}))
;; (local yoffset (dpi 45))
;; (local xoffset (dpi 18))
;; (set s.mypanel (wibox.wibox {
;; :x (+ s.geometry.x xoffset)
;; :y (- s.geometry.height yoffset)
;; :height (dpi 30)
;; :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.65
;; }))
;; (: s.mypanel :struts {
;; :bottom (dpi 40)
;; })
;; (: s.mypanel :setup {
;; :layout wibox.layout.align.horizontal
;; :expand "outside"
;; 1 {
;; :layout wibox.layout.align.horizontal
;; 1 (wibox.container.margin (s.mytaglist (dpi 15) 0 (dpi -3) 0))
;; 2 (wibox.container.margin (s.mytasklist (dpi 25) (dpi 25) 0 0))
;; 3 s.myemptywidget
;; :spacing (dpi 15)
;; }
;; 2 mytextclock
;; 3 {
;; :layout wibox.layout.align.horizontal
;; 1 s.myemptywidget
;; 2 (wibox.container.margin (s.mypromptbox (dpi 25) (dpi 25) 0 0))
;; 3 s.myrightwidgets
;; }
;; :visible true
;; })
;; ))
(local yoffset (dpi 45))
(local xoffset (dpi 18))
(set s.mypanel (wibox.wibox {
:x (+ s.geometry.x xoffset)
:y (- s.geometry.height yoffset)
:height (dpi 30)
: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.65
}))
(: s.mypanel :struts {
:bottom (dpi 40)
})
(: s.mypanel :setup {
:layout wibox.layout.align.horizontal
:expand "outside"
1 {
:layout wibox.layout.align.horizontal
1 (wibox.container.margin (s.mytaglist (dpi 15) 0 (dpi -3) 0))
2 (wibox.container.margin (s.mytasklist (dpi 25) (dpi 25) 0 0))
3 s.myemptywidget
:spacing (dpi 15)
}
2 mytextclock
3 {
:layout wibox.layout.align.horizontal
1 s.myemptywidget
2 (wibox.container.margin (s.mypromptbox (dpi 25) (dpi 25) 0 0))
3 s.myrightwidgets
}
:visible true
})
))
(root.keys globalkeys)