# seach/tools/wlan/display
bindsym XF86WLAN exec --no-startup-id toggle_rfkill
#bindsym XF86Display exec presentation_mode
-bindsym $mod+minus exec "sh -c 'xscreensaver-command -lock; xautolock -locknow'"
+bindsym $mod+minus exec "sh -c 'loginctl lock-session || xscreensaver-command -lock || xautolock -locknow'"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
cp -f .Xauthority .Xauthority.bak
fi
-if cmd_exists slock && cmd_exists xautolock; then
+if [ -e ~/bin/screensaver ]; then
+ ~/bin/screensaver on;
+elif cmd_exists i3lock && cmd_exists xss-lock; then
+ fork xss-lock -l -- ~/bin/locker
+elif cmd_exists slock && cmd_exists xautolock; then
fork xautolock -notifier true -bell 0 -locker slock;
+ if cmd_exists xss-lock; then
+ fork xss-lock -- xautolock -locknow;
+ fi;
elif cmd_exists xscreensaver && [ -e ~/.xscreensaver ]; then
fork XENVIRONMENT=~/.xscreensaver /usr/bin/xscreensaver;
elif cmd_exists xautolock; then
fork xautolock -notifier true -bell 0;
+ if cmd_exists xss-lock; then
+ fork xss-lock -- xautolock -locknow;
+ fi;
fi;
if cmd_exists redshift; then