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

13 lines
185 B
Bash
Raw Normal View History

2022-09-23 23:33:11 -04:00
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
swaymsg workspace "$@"
2022-09-24 23:30:38 -04:00
# Hack to get around weird bug
pkill rofi
2022-09-23 23:33:11 -04:00
exit 0
fi
swaymsg -t get_workspaces |
jq -r '.[].name'