build status notifications for volume and brightness
This commit is contained in:
parent
41aaa02156
commit
78dce1ecfa
11 changed files with 188 additions and 93 deletions
8
.local/scripts/brightnessnotify.fish
Executable file
8
.local/scripts/brightnessnotify.fish
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set brightness (brightnessctl --class=backlight get)
|
||||
set max_brightness (brightnessctl --class=backlight max)
|
||||
|
||||
set brightness (math --scale 0 --scale-mode round "($brightness / $max_brightness) * 100")
|
||||
|
||||
notify-send -c 'status' -h int:value:$brightness "Brightness: $brightness%"
|
||||
Loading…
Add table
Add a link
Reference in a new issue