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
4288bb0c
Commit
4288bb0c
authored
May 06, 2022
by
Jay Ta'ala
Browse files
Improvement using set variable.
parent
a6efeffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
i3/config
View file @
4288bb0c
...
...
@@ -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
...
...
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