Add i3locking
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
+ Editor: emacs
|
+ Editor: emacs
|
||||||
+ Image-Viewer: sxiv
|
+ Image-Viewer: sxiv
|
||||||
+ Launcher: [dmenu](https://github.com/crammk/dmenu)
|
+ Launcher: [dmenu](https://github.com/crammk/dmenu)
|
||||||
+ Lock: [slock](https://github.com/crammk/slock)
|
+ Lock: i3lock-color
|
||||||
+ Mouse-Settings: piper
|
+ Mouse-Settings: piper
|
||||||
+ Pdf-Viewer: zathura with mupdf
|
+ Pdf-Viewer: zathura with mupdf
|
||||||
+ Screenshots: flameshot
|
+ Screenshots: flameshot
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
font pango:SFMono Nerd Font Mono 10
|
font pango:SFMono Nerd Font Mono 10
|
||||||
|
|
||||||
|
# correct locking
|
||||||
|
exec --no-startup-id xss-lock --transfer-sleep-lock -- lock.sh
|
||||||
|
bindsym $mod+Shift+BackSpace exec "loginctl lock-session"
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
|
|||||||
19
files/scripts/lock.sh
Executable file
19
files/scripts/lock.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ `hostname` == "nazarick" ];then
|
||||||
|
pic=$HOME/data/nextcloud/wallpaper/lock219.png
|
||||||
|
else
|
||||||
|
pic=$HOME/data/nextcloud/wallpaper/lock169.png
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $USER == "marc" ];then
|
||||||
|
i3lock --nofork \
|
||||||
|
-i ${pic} \
|
||||||
|
--inside-color=#373445ff --ring-color=ffffffff --line-uses-inside \
|
||||||
|
--keyhl-color=d23c3dff --bshl-color=d23c3dff --separator-color=00000000 \
|
||||||
|
--insidever-color=fecf4dff --insidewrong-color=d23c3dff \
|
||||||
|
--ringver-color=ffffffff --ringwrong-color=ffffffff --ind-pos="x+86:y+1003" \
|
||||||
|
--radius=15 --verif-text="" --wrong-text="" --noinput-text=""
|
||||||
|
else
|
||||||
|
xlock -mode blank
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user