From 6e9aa26548e2d7197edffb3d20572a4c6da49b34 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Tue, 16 Nov 2021 16:17:54 +0100 Subject: [PATCH] Changed window gap in bspwmrc and added shortcuts for functions keys --- .config/bspwm/bspwmrc | 2 +- .config/sxhkd/sxhkdrc | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 3ee7eac..ef2735d 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -32,6 +32,6 @@ fi bspc config border_width 0 bspc config top_padding 34 -bspc config window_gap 16 +bspc config window_gap 8 bspc config split_ratio 0.6 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index d198998..ad23e84 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -12,7 +12,7 @@ super + l betterlockscreen -l #Nautilus super + p - dolphin + nautilus #Quit/restart bspwm super + alt + {q,r} bspc {quit,wm -r} @@ -46,3 +46,21 @@ super + alt + shift + {h,j,k,l} #Move a floating window super + {Left,Down,Up,Right} bspc node -v {-20 0,0 20,0 -20,20 0} + +XF86AudioMute + pactl set-sink-mute @DEFAULT_SINK@ toggle + +XF86AudioRaiseVolume + if [ (pacmd list-sinks| grep -A 15 '* index'| awk '/volume: front/\{ print $5 \}' | sed 's/[%|,]//g') -le "98" ] ; pactl set-sink-volume @DEFAULT_SINK@ +2%; end; + +XF86AudioLowerVolume + pactl set-sink-volume @DEFAULT_SINK@ -2% + +XF86AudioMicMute + pactl set-source-mute @DEFAULT_SOURCE@ toggle + +XF86MonBrightnessDown + echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness + +XF86MonBrightnessUp + echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness