dotfiles/scripts/window-menu

21 lines
361 B
Bash
Executable File

#!/bin/bash
options="Close\nToggle floating\nToggle sticky\nToggle fullscreen"
selected=$(echo -e $options | rofi -p Window -dmenu -theme appsmenu)
case $selected in
"Close")
i3-msg "kill"
;;
"Toggle floating")
i3-msg "floating toggle"
;;
"Toggle sticky")
i3-msg "sticky toggle"
;;
"Toggle fullscreen")
i3-msg "fullscreen toggle"
;;
esac