From 29c4152ffa3b2570b653f274a3f4cac9f10c4c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 16 Jan 2019 10:52:22 +0100 Subject: i3: use xss-lock to lock screen and migrate to elogind --- config/i3/config | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'config/i3') diff --git a/config/i3/config b/config/i3/config index 1d850f4..1d2b356 100644 --- a/config/i3/config +++ b/config/i3/config @@ -107,11 +107,11 @@ bindsym $mod+Shift+r restart set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown mode "$mode_system" { - bindsym l exec --no-startup-id myi3lock, mode "default" + bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" - bindsym s exec --no-startup-id sudo pm-suspend, mode "default" - bindsym r exec --no-startup-id sudo reboot, mode "default" - bindsym Shift+s exec --no-startup-id ~/.config/i3/scripts/shutdown, mode "default" + bindsym s exec --no-startup-id loginctl suspend, mode "default" + bindsym r exec --no-startup-id loginctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default" bindsym Return mode "default" bindsym Escape mode "default" @@ -178,13 +178,14 @@ bindsym $mod+Shift+m exec urxvt -title "Music player daemon client" -e ncmpcpp # Start i3blocks to display a workspace bar bar { - position top - status_command i3blocks - tray_output primary + position top + status_command i3blocks + tray_output primary } # Start daemons exec --no-startup-id dunst +exec --no-startup-id xss-lock -- myi3lock # Set background exec --no-startup-id i3background # Start pidgin -- cgit v1.2.3