Commit 4288bb0c authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Improvement using set variable.

parent a6efeffa
......@@ -203,9 +203,10 @@ bindsym $mod+minus scratchpad show
# move window to mark (by workspace)
# requires jq
bindsym $mod+Tab exec --no-startup-id "wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num'); i3-msg \\"[con_mark=\\"$wn\\"] focus, focus child\\""
bindsym $mod+Shift+Tab exec --no-startup-id "wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num'); mwn=$(echo \\"m$wn\\"); i3-msg \\"mark $mwn, [con_mark=\\"$mwn\\"] move window to mark $wn, unmark $mwn\\"
bindsym $mod+$mod_next+Tab exec --no-startup-id "wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num'); i3-msg \\"focus parent, mark --add --toggle $wn, focus child\\"
set $setwn wn=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num');
bindsym $mod+Tab exec --no-startup-id "$setwn i3-msg \\"[con_mark=\\"$wn\\"] focus, focus child\\""
bindsym $mod+Shift+Tab exec --no-startup-id "$setwn mwn=$(echo \\"m$wn\\"); i3-msg \\"mark $mwn, [con_mark=\\"$mwn\\"] move window to mark $wn, unmark $mwn\\"
bindsym $mod+$mod_next+Tab exec --no-startup-id "$setwn i3-msg \\"focus parent, mark --add --toggle $wn, focus child\\"
# mark and focus
bindsym $mod+Ctrl+1 mark --add --toggle 1
......
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