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"})

View file

@ -25,6 +25,6 @@ osc=no
load-scripts=no
profile=low-latency
demuxer-lavf-format=video4linux2
demuxer-lavf-o-set=input_format=mjpeg
untimed=yes
demuxer-lavf-o-set=input_format=mjpeg,video_size=1920x1080,framerate=60
#untimed=yes
fps=60

View file

@ -100,11 +100,11 @@ fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
# fade-in-step = 0.028
fade-in-step = 0.08;
fade-in-step = 0.06;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
# fade-out-step = 0.03
fade-out-step = 0.08;
fade-out-step = 0.06;
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
# fade-delta = 10

View file

@ -1335,7 +1335,7 @@ c.fonts.default_family = ['VictorMono Nerd Font']
## either a float value with a "pt" suffix, or an integer value with a
## "px" suffix.
## Type: String
c.fonts.default_size = '11pt'
c.fonts.default_size = '10pt'
## Font used for the downloadbar.
## Type: Font

3
scripts/lightget Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
notify-send " $(light -G) ﯧ "

View file

@ -7,7 +7,7 @@ set update.lastnaggedversion 1.14.0
set update.checkintervalsecs 86400
set theme snazzy
set searchurls.gh https://github.com/search?utf8=✓&q=
set searchurls.y https://www.yewtu.be/search?q=
set searchurls.y https://www.yewtu.be/search?q=%s
set searchurls.aw https://wiki.archlinux.org/index.php?search=
set searchurls.qt https://doc.qt.io/qt-5/search-results.html?q=
set searchurls.mel https://melpa.org/#/?q=