Use more reliable way to move window to avail workspace
dblume

dblume commited on 2023-11-14 11:01:27
Showing 1 changed files, with 10 additions and 10 deletions.


Relying on "$_" works on desktop but not laptop. So using
"i3_ws_cached.py newest" now.
... ...
@@ -101,16 +101,16 @@ bindsym $mod+Ctrl+l workspace next
101 101
 bindsym $mod+Ctrl+h workspace prev
102 102
 bindsym $mod+Ctrl+Right workspace next
103 103
 bindsym $mod+Ctrl+Left workspace prev
104
-#bindsym $mod+Shift+Ctrl+l move window to workspace next; workspace next
105
-#bindsym $mod+Shift+Ctrl+h move window to workspace prev; workspace prev
106
-#bindsym $mod+Shift+Ctrl+Right move window to workspace next; workspace next
107
-#bindsym $mod+Shift+Ctrl+Left move window to workspace prev; workspace prev
108
-# Consider https://github.com/i3/i3/discussions/5536#discussioncomment-6267938
109
-bindsym $mod+Shift+o exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_avail_ws.py) && i3-msg workspace number $($HOME/bin/i3_ws.py newest)
110
-bindsym $mod+Shift+Ctrl+l exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $($HOME/bin/i3_ws.py newest)
111
-bindsym $mod+Shift+Ctrl+h exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $($HOME/bin/i3_ws.py newest)
112
-bindsym $mod+Shift+Ctrl+Right exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $($HOME/bin/i3_ws.py newest)
113
-bindsym $mod+Shift+Ctrl+Left exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $($HOME/bin/i3_ws.py newest)
104
+bindsym $mod+Shift+Ctrl+l move window to workspace next; workspace next
105
+bindsym $mod+Shift+Ctrl+h move window to workspace prev; workspace prev
106
+bindsym $mod+Shift+Ctrl+Right move window to workspace next; workspace next
107
+bindsym $mod+Shift+Ctrl+Left move window to workspace prev; workspace prev
108
+# From: https://github.com/i3/i3/discussions/5536#discussioncomment-6267938
109
+bindsym $mod+Shift+Ctrl+o exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws_cached.py) && i3-msg workspace number $($HOME/bin/i3_ws_cached.py newest)
110
+#bindsym $mod+Shift+Ctrl+l exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $_
111
+#bindsym $mod+Shift+Ctrl+h exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $_
112
+#bindsym $mod+Shift+Ctrl+Right exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $_
113
+#bindsym $mod+Shift+Ctrl+Left exec --no-startup-id i3-msg move window to workspace $($HOME/bin/i3_ws.py) && i3-msg workspace number $_
114 114
 
115 115
 # split in horizontal orientation
116 116
 bindsym $mod+s split h
117 117