Add blur and make dotfiles more flexible
Add blur using the fork from https://github.com/tryone144/compton. picom seems to be very CPU heavy on my system, so until I figure out how to fix that I will use this outdated version. Make the dotfiles a bit more flexible by creating symlinks for stuff like the wallpaper or the compositor. When switching/exchanging these components only the symlinks have to be updated.
This commit is contained in:
1
.config/compositor
Symbolic link
1
.config/compositor
Symbolic link
@@ -0,0 +1 @@
|
||||
./compton
|
||||
4
.config/compton/compton.conf
Normal file
4
.config/compton/compton.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
backend = "glx";
|
||||
blur-method = "kawase";
|
||||
blur-strength = 6;
|
||||
blur-background = true;
|
||||
7
.config/compton/launch.sh
Executable file
7
.config/compton/launch.sh
Executable file
@@ -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
|
||||
@@ -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$"] \
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user