nixos-config/common/home-manager/wayland/rofi/workspace.sh
2022-09-25 00:00:32 -04:00

13 lines
185 B
Bash
Executable file

#!/usr/bin/env bash
if [ $# -ne 0 ]; then
swaymsg workspace "$@"
# Hack to get around weird bug
pkill rofi
exit 0
fi
swaymsg -t get_workspaces |
jq -r '.[].name'