brightness keybind and remove from bar

This commit is contained in:
Chris Cochrun 2022-04-19 09:49:03 -05:00
parent 4fcc8d03e5
commit 11ff1a4829
7 changed files with 30 additions and 23 deletions

View file

@ -545,14 +545,14 @@
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
;; 1 (if laptop s.brightwidget s.pingwidget)
1 s.mailwidget
2 s.memwidget
3 s.cpuwidget
4 s.volumewidget
5 (if laptop s.batterywidget s.myemptywidget)
6 (if (= s.index 1) s.mysystray)
7 s.mylayoutbox
}
:widget wibox.container.margin
:top (dpi 1)

View file

@ -35,10 +35,10 @@
:sticky true
:autoclose true
:floating true
:geometry {:height (dpi 850) :width (dpi 700) :x (dpi 800) :y (dpi 53)}
:geometry {:height (dpi 850) :width (dpi 700) :x (dpi 400) :y (dpi 53)}
:reapply true
:dont_focus_before_close true
:rubato {:x anim-x}
;; :rubato {:x anim-x}
;; :awestore {:x anim-x :y anim-y}
}))
(fn get-volume [?callback]
@ -150,12 +150,16 @@
{:description "screenshot" :group "utilities"})
(awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/emoji.sh"))
{:description "emoji picker" :group "utilities"})
(awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn
"light -A 5"))
(awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn.with_shell
"light -A 5 && lightget"))
{:description "Increase monitor brightness by 5%" :group "utilities"})
(awful.key [] "XF86MonBrightnessDown" (fn [] (awful.spawn
"light -U 5"))
(awful.key [] "XF86MonBrightnessDown" (fn [] (awful.spawn.with_shell
"light -U 5 && lightget"))
{:description "Decrease monitor brightness by 5%" :group "utilities"})
(awful.key [ modkey ctrl ] "o" (fn [] (awful.spawn
"lightget"))
{:description "get brightness" :group "utilities"})
;; Menubar
;; (awful.key [ modkey ] "p" (fn [] (menubar.show))
;; {:description "show the menubar" :group "launcher"})
@ -227,11 +231,11 @@
(awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle")
(awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"))
{:description "Mute microphone" :group "audio"})
(awful.key [] "F6" (fn [] (awful.spawn "playerctl play-pause"))
(awful.key [] "XF86AudioPlay" (fn [] (awful.spawn "playerctl play-pause"))
{:description "Play-pause playback" :group "audio"})
(awful.key [] "F5" (fn [] (awful.spawn "playerctl position 10-"))
(awful.key [] "XF86AudioPrev" (fn [] (awful.spawn "playerctl position 10-"))
{:description "Previous 10s playback" :group "audio"})
(awful.key [] "F7" (fn [] (awful.spawn "playerctl position 10+"))
(awful.key [] "XF86AudioNext" (fn [] (awful.spawn "playerctl position 10+"))
{:description "Previous 10s playback" :group "audio"})
(awful.key [] "F8" (fn [] (awful.spawn "getplayerstatus"))
{:description "Get status audio" :group "audio"})