Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
518a0a84
Commit
518a0a84
authored
Jul 03, 2022
by
Jay Ta'ala
Browse files
Added dynamic workspace create with bindsym $mod+grave.
parent
4657224c
Changes
1
Hide whitespace changes
Inline
Side-by-side
i3/config
View file @
518a0a84
...
...
@@ -291,7 +291,6 @@ bindsym $mod+Ctrl+l workspace next
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
set $wsg number 0:`
set $ws1 number 1:1
set $ws2 number 2:2
set $ws3 number 3:3
...
...
@@ -315,7 +314,9 @@ bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
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
bindsym $mod+Shift+1 move container to workspace $ws1
...
...
@@ -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+7 move container to workspace $ws7
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
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
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+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
bindsym $mod+grave move container to workspace $wsg
bindsym $mod+$mod_next+grave [workspace="`"] move container to workspace current
#
bindsym $mod+grave move container to workspace $wsg
#
bindsym $mod+$mod_next+grave [workspace="`"] move container to workspace current
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment