Better keys for move window to new workspace
dblume

dblume commited on 2023-11-12 23:02:57
Showing 1 changed files, with 10 additions and 6 deletions.

... ...
@@ -103,6 +103,10 @@ bindsym $mod+Ctrl+Right workspace next
103 103
 bindsym $mod+Ctrl+Left workspace prev
104 104
 bindsym $mod+Shift+Ctrl+l move window to workspace next; workspace next
105 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+o 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)
106 110
 
107 111
 # split in horizontal orientation
108 112
 bindsym $mod+s split h
... ...
@@ -172,6 +176,7 @@ bindsym $mod+Shift+c reload
172 176
 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
173 177
 bindsym $mod+Shift+r restart
174 178
 # exit i3 (logs you out of your X session)
179
+# https://www.reddit.com/r/i3wm/comments/uv9pyg/making_the_modshifte_exit_menu_more_useful/
175 180
 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3?' -B 'Exit now' 'i3-msg exit' -B 'Suspend' 'systemctl suspend && pkill i3-nagbar'"
176 181
 
177 182
 # resize window (you can also use the mouse for that)
... ...
@@ -204,14 +209,13 @@ bindsym $mod+r mode "resize"
204 209
 #default_border pixel 1
205 210
 #default_floating_border pixel 4
206 211
 
207
-set $bg-color 	         #2f343f
208
-set $inactive-bg-color   #2f343f
209
-set $text-color          #f3f4f5
210
-set $inactive-text-color #676E7D
211
-set $urgent-bg-color     #E53935
212
-
213 212
 # From https://github.com/bookercodes/dotfiles/blob/ubuntu/.i3/config
214 213
 # window colors
214
+#set $bg-color 	         #2f343f
215
+#set $inactive-bg-color   #2f343f
216
+#set $text-color          #f3f4f5
217
+#set $inactive-text-color #676E7D
218
+#set $urgent-bg-color     #E53935
215 219
 #                       border              background         text                 indicator
216 220
 #client.focused          $bg-color           $bg-color          $text-color          #00ff00
217 221
 #client.unfocused        $inactive-bg-color $inactive-bg-color $inactive-text-color  #00ff00
218 222