From 46a5341546fd57aac03715806824389600bf4f73 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 29 Nov 2017 17:44:58 -0800 Subject: Add workspace numbering and renaming --- home/.config/i3/config | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'home/.config/i3/config') diff --git a/home/.config/i3/config b/home/.config/i3/config index 60366a4..72b8214 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -92,16 +92,16 @@ set $workspace9 "9" set $workspace10 "10" # switch to workspace -bindsym $mod+1 workspace $workspace1 -bindsym $mod+2 workspace $workspace2 -bindsym $mod+3 workspace $workspace3 -bindsym $mod+4 workspace $workspace4 -bindsym $mod+5 workspace $workspace5 -bindsym $mod+6 workspace $workspace6 -bindsym $mod+7 workspace $workspace7 -bindsym $mod+8 workspace $workspace8 -bindsym $mod+9 workspace $workspace9 -bindsym $mod+0 workspace $workspace10 +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $workspace1 @@ -115,6 +115,11 @@ bindsym $mod+Shift+8 move container to workspace $workspace8 bindsym $mod+Shift+9 move container to workspace $workspace9 bindsym $mod+Shift+0 move container to workspace $workspace10 +#bindsym $mod+n exec i3-input -F 'rename workspace to "'$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')':%s"' -P 'Rename workspace to ' +bindsym $mod+n exec i3-msg rename workspace to "$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num'):$(dmenu -p 'Rename workspace to ')" + +bindsym $mod+Shift+n exec i3-msg rename workspace to "$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')" + # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode -- cgit v1.2.3