Ticket created by ~ecocode on ~exec64/imv
Hi,
when I have an imv instance running, I can open and view files with
imv-msg PID open "/home/user/pathWithoutSpaces/filename"
followed by
imv-msg PID goto -1
However
imv-msg
can't open the file if there is a space in the path or in the filename i.e.
imv-msg PID open "/home/user/path With Spaces/filename"
and
imv-msg PID open "/home/user/pathWithoutSpaces/filename with spaces"
both fail
Comment by ~ecocode on ~tsdh/swayr
this is the script (unfinished) that I use... example project names:
- 25126-Sambre
- 40687-Mol
- 39047-Lampen
#!/usr/bin/bash # Get regular workspaces workspaces=$(swaymsg -t get_tree | jq -c '.nodes[].nodes[] | select(.type | . and contains("workspace")) | select(.name | . and contains("__i3") | not) | .name? ' | grep -E '[[:digit:]]{5}-.*' | tr -d '"' ) # Select window with rofi selected=$(echo "$workspaces" | wofi --show dmenu -i --sort-order=alphabetical | awk '{print $1}') # TODO: check if the selected workspace is the current one. then don't switch ! # TODO: if nothing selected -> cancel # Tell sway to focus said workspace # swaymsg [workspace="$selected"] focus swaymsg workspace "$selected"
Ticket created by ~ecocode on ~tsdh/swayr
Hi, In sway I create workspaces named by my projects. My project names can be filtered using a regex (they all start with 5 numbers followed by a dash). I wrote a bash script which handles this, but as swayr is adding functionalities, this could be a nice addition ;)
You could add this as a
--filter
option toswitch-workspace
Also, this might be nice to add to
switch-window
too.
Comment by ~ecocode on ~tsdh/swayr
works great!
Comment by ~ecocode on ~tsdh/swayr
checked it, and empty workspaces are listed correctly.
"nodes": []
and"representation": "H[]"
are also correctly showing there are no windows in the empty workspace.
Comment by ~ecocode on ~tsdh/swayr
works! nice feature :) still, when having multiple monitors (sway calls these "outputs"), the empty workspaces on other monitors are not listed. So I cannot switch to another monitor if the workspace is empty. switching to another monitor when the workspace is not empty is ok.
Comment by ~ecocode on ~tsdh/swayr
What about empty workspaces on different output ?
On Sat, 30 Oct 2021, at 13:33, ~tsdh wrote:
That's international, it can only list what's already in the tree. What non-existent workspaces should it list? I mean, workspaces can have arbitrary names and come into existence not before you switch or move a window to them.
30.10.2021 12:24:37 ~ecocode outgoing@sr.ht:
swayr switch-workspace
does not seem to list empty workspaces. I don't know if this is a bug or meant-to-be-feature. It would be great to at least add an option to also list empty workspaces.-- View on the web: https://todo.sr.ht/~tsdh/swayr/7#event-103150
Attachments:
- signature.asc
-- erik colson
Ticket created by ~ecocode on ~tsdh/swayr
swayr switch-workspace
does not seem to list empty workspaces. I don't know if this is a bug or meant-to-be-feature. It would be great to at least add an option to also list empty workspaces.