move some desktop i3 behaviour into different shell scripts
This commit is contained in:
4
usr/bin/x-brightness-down
Executable file
4
usr/bin/x-brightness-down
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/sh
|
||||
br=$(brightnessctl set 5%- |
|
||||
grep '%' | awk '{print $4}' | sed 's/[^0-9]//g')
|
||||
notify-send -u low -i display-brightness-symbolic -h int:value:"$br" -h string:x-dunst-stack-tag:'brightnessctl' -a 'brightnessctl' "brightness: $br%"
|
||||
4
usr/bin/x-brightness-up
Executable file
4
usr/bin/x-brightness-up
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/sh
|
||||
br=$(brightnessctl set 5%+ |
|
||||
grep '%' | awk '{print $4}' | sed 's/[^0-9]//g')
|
||||
notify-send -i display-brightness-symbolic -u low -h int:value:"$br" -h string:x-dunst-stack-tag:'brightnessctl' -a 'brightnessctl' "brightness: $br%"
|
||||
2
usr/bin/x-mic-mute
Executable file
2
usr/bin/x-mic-mute
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/sh
|
||||
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
2
usr/bin/x-volume-down
Executable file
2
usr/bin/x-volume-down
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/sh
|
||||
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && play -n synth 0.005 sine 1000 vol 0.2
|
||||
2
usr/bin/x-volume-mute
Executable file
2
usr/bin/x-volume-mute
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/sh
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
2
usr/bin/x-volume-up
Executable file
2
usr/bin/x-volume-up
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/sh
|
||||
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && play -n synth 0.005 sine 1000 vol 0.2
|
||||
Reference in New Issue
Block a user