diff --git a/.config/scripts/backlight_dec.sh b/.config/scripts/backlight_dec.sh new file mode 100755 index 0000000..4ac1378 --- /dev/null +++ b/.config/scripts/backlight_dec.sh @@ -0,0 +1,13 @@ +#!/bin/sh +b=$(cat /sys/class/backlight/amdgpu_bl0/brightness) + +a=0 + +if [ $b -gt 0 ]; then + while [ $a -lt 10 -a $b -gt 0 ]; do + b=`expr $b - 1` + echo $b | sudo tee /sys/class/backlight/amdgpu_bl0/brightness + a=`expr $a + 1` + done +fi + diff --git a/.config/scripts/backlight_inc.sh b/.config/scripts/backlight_inc.sh new file mode 100755 index 0000000..8d8ee3a --- /dev/null +++ b/.config/scripts/backlight_inc.sh @@ -0,0 +1,13 @@ +#!/bin/sh +b=$(cat /sys/class/backlight/amdgpu_bl0/brightness) + +a=0 + +if [ $b -lt 255 ]; then + while [ $a -lt 10 -a $b -lt 255 ]; do + b=`expr $b + 1` + echo $b | sudo tee /sys/class/backlight/amdgpu_bl0/brightness + a=`expr $a + 1` + done +fi + diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 263aa00..a3d57d6 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -137,4 +137,8 @@ super + alt + shift + {h,j,k,l} super + {Left,Down,Up,Right} bspc node -v {-20 0,0 20,0 -20,20 0} +XF86MonBrightnessUp + $HOME/.config/scripts/backlight_inc.sh +XF86MonBrightnessDown + $HOME/.config/scripts/backlight_dec.sh diff --git a/README.md b/README.md index f3c4d4e..2dbbf07 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ Source: [https://www.atlassian.com/git/tutorials/dotfiles] ## Alacritty Download from here: [https://github.com/jwilm/alacritty/releases] ```sh -dpkg -i Alacri* +apt install ./Alacri* +apt install libxcursor ``` ## bspwm ## sxhkd