nixos-config/home-manager/wayland/rofi/workspacemove.sh

9 lines
261 B
Bash
Raw Normal View History

2023-01-03 22:14:05 -05:00
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
swaymsg move container to workspace "$@" > /dev/null
else
swaymsg -t get_workspaces |
jq -r 'map(.name) + ["10:browser","20:terminal","30:code","40:files","50:discord","60:settings"] | unique | .[]'
fi