Added small screen brightness script instead of having code inside .config/i3/config
Also added small func to generate a rndpasswordclean_emacs
parent
978482a94c
commit
59de189dda
|
@ -129,8 +129,8 @@ bindsym $mod+Shift+q kill
|
||||||
bindsym $mod+d exec --no-startup-id rofi -X -show run
|
bindsym $mod+d exec --no-startup-id rofi -X -show run
|
||||||
|
|
||||||
# Screen brightness controls
|
# Screen brightness controls
|
||||||
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; a=$(xbacklight | cut -d\. -f1)%; dunstify -r 1 'brightness up'\ \($a\)"
|
bindsym XF86MonBrightnessUp exec --no-startup-id ~/.scripts/screen.sh up
|
||||||
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; a=$(xbacklight | cut -d\. -f1)%; dunstify -r 1 'brightness down'\ \($a\)"
|
bindsym XF86MonBrightnessDown exec --no-startup-id ~/.scripts/screen.sh down
|
||||||
|
|
||||||
# Pulse Audio controls
|
# Pulse Audio controls
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.scripts/sound.sh down
|
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.scripts/sound.sh down
|
||||||
|
|
|
@ -9,4 +9,4 @@ t:/home/tuan/Templates
|
||||||
w:/home/tuan/workspace_l/Projects
|
w:/home/tuan/workspace_l/Projects
|
||||||
k:/home/tuan/Documents/Protokolle/FSE
|
k:/home/tuan/Documents/Protokolle/FSE
|
||||||
q:/home/tuan/.nextcloud/Quick Drop
|
q:/home/tuan/.nextcloud/Quick Drop
|
||||||
':/home/tuan/.scripts
|
':/home/tuan
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
"up"*)
|
||||||
|
xbacklight -inc 10 &
|
||||||
|
currentBrightness=$(xbacklight | cut -d\. -f1);
|
||||||
|
dunstify -r 1 'brightness up'\ \($currentBrightness%\);
|
||||||
|
;;
|
||||||
|
"down"*)
|
||||||
|
xbacklight -dec 10 &
|
||||||
|
currentBrightness=$(xbacklight | cut -d\. -f1);
|
||||||
|
dunstify -r 1 'brightness down'\ \($currentBrightness%\);
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -18,6 +18,8 @@ plugins=(
|
||||||
history
|
history
|
||||||
)
|
)
|
||||||
|
|
||||||
|
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
|
||||||
|
|
||||||
# History
|
# History
|
||||||
HISTORY_IGNORE='sudo veracrypt *|veracrypt *'
|
HISTORY_IGNORE='sudo veracrypt *|veracrypt *'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue