new lock system
This commit is contained in:
parent
d711b8cdcb
commit
7b67754522
6
env/wm/sxhkdrc
vendored
6
env/wm/sxhkdrc
vendored
|
@ -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
|
||||
|
|
9
env/x/screensaver/lock.sh
vendored
Executable file
9
env/x/screensaver/lock.sh
vendored
Executable file
|
@ -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"
|
5
env/x/screensaver/setup.sh
vendored
Executable file
5
env/x/screensaver/setup.sh
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
source "$DOTFILES_PATH/variables.bash"
|
||||
|
||||
mkdir -p "$IMG_PATH/.lock"
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue