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
|
compton-trans -c -o 100
|
||||||
|
|
||||||
# swap sxhkx config with an alternate file and reload the new one
|
# swap sxhkx config with an alternate file and reload the new one
|
||||||
super + shift + alt + ctrl + r
|
# 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
|
# 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
|
# spawn a terminal
|
||||||
super + Return
|
super + Return
|
||||||
|
@ -170,7 +170,7 @@ super + space
|
||||||
|
|
||||||
# lock the desktop
|
# lock the desktop
|
||||||
super + ctrl + shift + l
|
super + ctrl + shift + l
|
||||||
slock
|
$SHELL -c '$DOTFILES_PATH/env/x/screensaver/lock.sh'
|
||||||
|
|
||||||
# spawn gui file explorer
|
# spawn gui file explorer
|
||||||
super + e
|
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 \
|
qt5-webengine \
|
||||||
ruby \
|
ruby \
|
||||||
xorg-xbacklight \
|
xorg-xbacklight \
|
||||||
|
i3lock-blur \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
||||||
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
||||||
|
|
|
@ -22,6 +22,7 @@ export BLACKLISTED_BAR_MODULES=""
|
||||||
# than a little bit ashamed
|
# than a little bit ashamed
|
||||||
# TODO: use /tmp ?
|
# TODO: use /tmp ?
|
||||||
export REPOSITORY_PATH="$NICE_HOME/code/open-source"
|
export REPOSITORY_PATH="$NICE_HOME/code/open-source"
|
||||||
|
export IMG_PATH="$NICE_HOME/img"
|
||||||
|
|
||||||
# the width of the border around the bspwm windows
|
# the width of the border around the bspwm windows
|
||||||
export BORDER_WIDTH=0
|
export BORDER_WIDTH=0
|
||||||
|
|
Reference in a new issue