Commit 518a0a84 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Added dynamic workspace create with bindsym $mod+grave.

parent 4657224c
...@@ -291,7 +291,6 @@ bindsym $mod+Ctrl+l workspace next ...@@ -291,7 +291,6 @@ bindsym $mod+Ctrl+l workspace next
# to display names or symbols instead of plain workspace numbers you can use # to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail # something like: set $ws1 1:mail
# set $ws2 2: # set $ws2 2:
set $wsg number 0:`
set $ws1 number 1:1 set $ws1 number 1:1
set $ws2 number 2:2 set $ws2 number 2:2
set $ws3 number 3:3 set $ws3 number 3:3
...@@ -315,7 +314,9 @@ bindsym $mod+5 workspace $ws5 ...@@ -315,7 +314,9 @@ bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6 bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7 bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8 bindsym $mod+8 workspace $ws8
bindsym $mod_next+grave workspace $wsg set $workspace_dynamic $(($(i3-msg -t get_workspaces | tr , '\n' | grep '\\"num\\":' | cut -d : -f 2 | sort -rn | head -1) + 1))
bindsym $mod+grave exec --no-startup-id "i3-msg workspace $workspace_dynamic"
# Move focused container to workspace # Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+1 move container to workspace $ws1
...@@ -326,6 +327,7 @@ bindsym $mod+Shift+5 move container to workspace $ws5 ...@@ -326,6 +327,7 @@ bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+grave exec --no-startup-id "i3-msg move container to workspace $workspace_dynamic"
# Move focused container to workspace, and switch to that workspace # Move focused container to workspace, and switch to that workspace
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1 bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
...@@ -336,10 +338,11 @@ bindsym $mod+$mod_next+5 move container to workspace $ws5; workspace $ws5 ...@@ -336,10 +338,11 @@ bindsym $mod+$mod_next+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+$mod_next+6 move container to workspace $ws6; workspace $ws6 bindsym $mod+$mod_next+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7 bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+$mod_next+grave exec --no-startup-id "i3-msg move container to workspace $workspace_dynamic, workspace $workspace_dynamic"
# Move to wsg workspace # Move to wsg workspace
bindsym $mod+grave move container to workspace $wsg #bindsym $mod+grave move container to workspace $wsg
bindsym $mod+$mod_next+grave [workspace="`"] move container to workspace current #bindsym $mod+$mod_next+grave [workspace="`"] move container to workspace current
# Open applications on specific workspaces # Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1 # assign [class="Thunderbird"] $ws1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment