diff --git a/env/wm/sxhkdrc b/env/wm/sxhkdrc index 7fe9e1b..46c8e1c 100755 --- a/env/wm/sxhkdrc +++ b/env/wm/sxhkdrc @@ -153,8 +153,8 @@ super + shift + t compton-trans -c -o 100 # swap sxhkx config with an alternate file and reload the new one -super + shift + alt + ctrl + r - if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi +# super + shift + alt + ctrl + r +# if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi # spawn a terminal super + Return @@ -170,7 +170,7 @@ super + space # lock the desktop super + ctrl + shift + l - slock + $SHELL -c '$DOTFILES_PATH/env/x/screensaver/lock.sh' # spawn gui file explorer super + e diff --git a/env/x/screensaver/lock.sh b/env/x/screensaver/lock.sh new file mode 100755 index 0000000..a72de64 --- /dev/null +++ b/env/x/screensaver/lock.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +source "$DOTFILES_PATH/variables.bash" + +scrot "$IMG_PATH/.lock/.lock-bg-img.png" +convert "$IMG_PATH/.lock/.lock-bg-img.png" -blur 0x12 "$IMG_PATH/.lock/.lock-bg-img_blurred.png" +rm "$IMG_PATH/.lock/.lock-bg-img.png" +# xscreensaver-command --lock +i3lock -i "$IMG_PATH/.lock/.lock-bg-img_blurred.png" diff --git a/env/x/screensaver/setup.sh b/env/x/screensaver/setup.sh new file mode 100755 index 0000000..6fb8e9d --- /dev/null +++ b/env/x/screensaver/setup.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +source "$DOTFILES_PATH/variables.bash" + +mkdir -p "$IMG_PATH/.lock" diff --git a/os/arch_linux/3-utils.bash b/os/arch_linux/3-utils.bash index 032f498..429f523 100755 --- a/os/arch_linux/3-utils.bash +++ b/os/arch_linux/3-utils.bash @@ -51,6 +51,7 @@ pacaur -S \ qt5-webengine \ ruby \ xorg-xbacklight \ + i3lock-blur \ --noconfirm --noedit # sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome diff --git a/variables.bash b/variables.bash index a92bb06..21dc3bc 100755 --- a/variables.bash +++ b/variables.bash @@ -22,6 +22,7 @@ export BLACKLISTED_BAR_MODULES="" # than a little bit ashamed # TODO: use /tmp ? export REPOSITORY_PATH="$NICE_HOME/code/open-source" +export IMG_PATH="$NICE_HOME/img" # the width of the border around the bspwm windows export BORDER_WIDTH=0