+lock command to abstract away constant arguments
This commit is contained in:
8
i3.conf
8
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
|
||||
|
||||
Reference in New Issue
Block a user