diff --git a/.config/compositor b/.config/compositor new file mode 120000 index 0000000..0cf094a --- /dev/null +++ b/.config/compositor @@ -0,0 +1 @@ +./compton \ No newline at end of file diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf new file mode 100644 index 0000000..d485fd2 --- /dev/null +++ b/.config/compton/compton.conf @@ -0,0 +1,4 @@ +backend = "glx"; +blur-method = "kawase"; +blur-strength = 6; +blur-background = true; diff --git a/.config/compton/launch.sh b/.config/compton/launch.sh new file mode 100755 index 0000000..968b680 --- /dev/null +++ b/.config/compton/launch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "$1" = "-k" ]; then + killall -q compton +elif ! pgrep -ax compton >/dev/null 2>&1; then + compton --config "${XDG_CONFIG_HOME:-$HOME/.config}/compton/compton.conf" -b +fi diff --git a/.config/i3/config b/.config/i3/config index 5bb5301..fa3d0c4 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -201,13 +201,13 @@ bindsym $mod+p exec ~/.config/rofi/powermenu.sh & exec --no-startup-id xss-lock -l ~/.config/xsecurelock/transfer-sleep-lock.sh & # Wallpaper -exec feh --bg-scale --no-fehbg ~/Pictures/Wallpapers/tractor-blur.png +exec_always feh --bg-scale --no-fehbg ~/Pictures/Wallpapers/wallpaper # Notify when toggling airplane mode bindsym XF86RFKill exec --no-startup-id ~/.config/i3/airplane-mode-notify.sh -# compositor for transparency -exec --no-startup-id compton -b +# compositor for transparency and blur +exec --no-startup-id ~/.config/compositor/launch.sh # scratchpad-terminal for_window [class="st-256color" title="^scratchpad-terminal$"] \ diff --git a/.config/xsecurelock/transfer-sleep-lock.sh b/.config/xsecurelock/transfer-sleep-lock.sh index ab1e654..aa3b17a 100755 --- a/.config/xsecurelock/transfer-sleep-lock.sh +++ b/.config/xsecurelock/transfer-sleep-lock.sh @@ -20,14 +20,14 @@ sleep_delay=1 # Run before starting the locker pre_lock() { playerctl pause - killall -q compton + "${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh" -k amixer -q -D pulse sset Master mute return } # Run after the locker exits post_lock() { - compton -b + "${XDG_CONFIG_HOME:-$HOME/.config}/compositor/launch.sh" return }