helm/os/arch/bin/rofi_bspwm.sh

11 lines
213 B
Bash
Raw Normal View History

2016-11-03 11:00:40 -07:00
#!/usr/bin/env bash
shopt -s nullglob globstar
desktops=($(cat /tmp/bspwm-monitor-*))
desktop=$(printf '%s\n' "${desktops[@]}" | rofi -dmenu -p bspwm: "$@")
[[ -n $desktop ]] || exit
bspc desktop -f $desktop