From 5b5fdc7fe83affea2dc0d78f17f7ee86482fbd6a Mon Sep 17 00:00:00 2001 From: odave Date: Sun, 5 Apr 2020 02:37:20 +0100 Subject: +lock command to abstract away constant arguments --- i3.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/i3.conf b/i3.conf index bd1d921..c27e161 100644 --- a/i3.conf +++ b/i3.conf @@ -2,6 +2,7 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 +set $lock i3lock --nofork -f -e # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -9,7 +10,7 @@ font pango:Waree 9 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork +exec --no-startup-id xss-lock --transfer-sleep-lock -- $lock # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. @@ -60,8 +61,9 @@ bindsym $mod+w exec rofi -show window -matching fuzzy daemon # show both bindsym $mod+space exec rofi -show combi -matching fuzzy daemon -# lock bind -bindsym $mod+Ctrl+l exec i3lock +# lock bind and rename bind +bindsym $mod+Ctrl+l exec $lock +bindsym $mod+Ctrl+r exec i3-input -F "rename workspace to %s" -P "New name: " # change focus bindsym $mod+h focus left -- cgit v1.2.3-13-gbd6f