Added small screen brightness script instead of having code inside .config/i3/config

Also added small func to generate a rndpassword
This commit is contained in:
TuDatTr
2020-01-30 15:50:41 +01:00
parent 978482a94c
commit 59de189dda
4 changed files with 20 additions and 3 deletions

View File

@@ -129,8 +129,8 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -X -show run
# Screen brightness controls
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; a=$(xbacklight | cut -d\. -f1)%; dunstify -r 1 'brightness up'\ \($a\)"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; a=$(xbacklight | cut -d\. -f1)%; dunstify -r 1 'brightness down'\ \($a\)"
bindsym XF86MonBrightnessUp exec --no-startup-id ~/.scripts/screen.sh up
bindsym XF86MonBrightnessDown exec --no-startup-id ~/.scripts/screen.sh down
# Pulse Audio controls
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.scripts/sound.sh down