aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-04-05 02:37:20 +0100
committerodave <aryadevchavali1@gmail.com>2020-04-05 02:39:35 +0100
commit5b5fdc7fe83affea2dc0d78f17f7ee86482fbd6a (patch)
tree7096f5de49c024ab8ad1e83b5a15bb64cd4e3ce4
parent119bf0642d74a383d20eb4e0a305a969a9611da0 (diff)
downloaddotfiles-5b5fdc7fe83affea2dc0d78f17f7ee86482fbd6a.tar.gz
dotfiles-5b5fdc7fe83affea2dc0d78f17f7ee86482fbd6a.tar.bz2
dotfiles-5b5fdc7fe83affea2dc0d78f17f7ee86482fbd6a.zip
+lock command to abstract away constant arguments
-rw-r--r--i3.conf8
1 files 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