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

9 lines
243 B
Bash
Raw Normal View History

2022-09-23 23:33:11 -04:00
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
2023-01-03 22:14:05 -05:00
swaymsg 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 | .[]'
2022-09-23 23:33:11 -04:00
fi