summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2020-12-01 17:32:27 -0800
committerFranck Cuny <franck@fcuny.net>2020-12-01 17:32:27 -0800
commit4d0780c4ee2d23beffeedb0899fac69a647ea870 (patch)
tree2efd63bce3e36dce0c097d786bf8cbd1e909a446 /config
parentx11: align variables (diff)
downloademacs.d-4d0780c4ee2d23beffeedb0899fac69a647ea870.tar.gz
i3: key bindings
- change the binding for locking the screen
- drop the one to change the focus (so we can re-use it for locking)
- assign some applications to specific workspaces
Diffstat (limited to '')
-rw-r--r--config/i3/config10
1 files changed, 7 insertions, 3 deletions
diff --git a/config/i3/config b/config/i3/config
index 22d16cf..b3c2e3a 100644
--- a/config/i3/config
+++ b/config/i3/config
@@ -15,7 +15,7 @@ set $Locker i3lock && sleep 1
 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
 
 # lock the screen with i3lock
-bindsym $mod+p exec --no-startup-id $Locker, mode "default"
+bindsym $mod+l exec --no-startup-id $Locker, mode "default"
 
 # Use pactl to adjust volume in PulseAudio.
 set $refresh_i3status killall -SIGUSR1 i3status
@@ -44,7 +44,6 @@ bindsym $mod+d exec dmenu_run
 # change focus
 bindsym $mod+j focus left
 bindsym $mod+k focus down
-bindsym $mod+l focus up
 bindsym $mod+semicolon focus right
 
 # alternatively, you can use the cursor keys:
@@ -160,7 +159,12 @@ mode "resize" {
         bindsym $mod+r mode "default"
 }
 
-bindsym $mod+r mode "resize"
+assign [class="URxvt"] 1
+assign [class="emacs"] 2
+assign [class="firefox"] 3
+
+# Moving workspaces between screens
+bindsym $mod+shift+p move workspace to output right
 
 # Start i3bar to display a workspace bar (plus the system information i3status
 # finds out, if available)