ElCanut@jlai.lu to linuxmemes@lemmy.world · 10 months agoOh no ...jlai.luimagemessage-square332fedilinkarrow-up11.8Karrow-down1112
arrow-up11.69Karrow-down1imageOh no ...jlai.luElCanut@jlai.lu to linuxmemes@lemmy.world · 10 months agomessage-square332fedilink
minus-squarectr1@fl0w.cclinkfedilinkEnglisharrow-up1arrow-down1·edit-210 months agoThis is always the first thing I get set up: # focus next available workspace on this output bindsym $mod+q exec --no-startup-id ws=$(i3-msg -t get_workspaces | jq ‘.[] | select(.focused) | .num’) && ofs=$(i3-msg -t get_outputs | jq ‘map(select(.active)) | length’) && i3-msg workspace $(($ws-$ofs)) bindsym $mod+w exec --no-startup-id ws=$(i3-msg -t get_workspaces | jq ‘.[] | select(.focused) | .num’) && ofs=$(i3-msg -t get_outputs | jq ‘map(select(.active)) | length’) && i3-msg workspace $(($ws+$ofs)) # move window to next available workspace on this output bindsym $mod+Shift+q exec --no-startup-id ws=$(i3-msg -t get_workspaces | jq ‘.[] | select(.focused) | .num’) && ofs=$(i3-msg -t get_outputs | jq ‘map(select(.active)) | length’) && dest=$(($ws-$ofs)) && i3-msg move workspace $dest && i3-msg workspace $dest bindsym $mod+Shift+w exec --no-startup-id ws=$(i3-msg -t get_workspaces | jq ‘.[] | select(.focused) | .num’) && ofs=$(i3-msg -t get_outputs | jq ‘map(select(.active)) | length’) && dest=$(($ws+$ofs)) && i3-msg move workspace $dest && i3-msg workspace $dest Works with sway if you replace i3-msg with swaymsg (and remove --no-startup-id, since it’s not needed for Wayland). Edit: ampersand issues, trying quote instead of code block
This is always the first thing I get set up:
# focus next available workspace on this output
# move window to next available workspace on this output
Works with sway if you replace i3-msg with swaymsg (and remove --no-startup-id, since it’s not needed for Wayland).
Edit: ampersand issues, trying quote instead of code block