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

9 lines
243 B
Bash
Executable file

#!/usr/bin/env bash
if [ $# -ne 0 ]; then
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 | .[]'
fi