diff options
Diffstat (limited to 'qbc')
-rwxr-xr-x | qbc | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -17,26 +17,13 @@ while getopts "hd:u:" o; do case "${o}" in esac done #}}} -#{{{ Check display server if -w or -x not provided -if [ -n "$WAYLAND_DISPLAY" ]; then - DMENU="tofi" - DEFARGS="-c $HOME/.config/tofi/themes/dmenu_vertical --prompt-text" -elif [ -n "$DISPLAY" ]; then - DMENU="dmenu" - DEFARGS="-l 15 -p" -else - print "Can't tell if Wayland or X; what gives?\n" - exit 1 -fi -#}}} - #{{{ Get Sessions SESSIONS=`qbpm list` [ -z "$SESSIONS" ] && qutebrowser $@ && exit #}}} #{{{ Select Session -CHOSEN=`printf "default\n$SESSIONS" | $DMENU $DEFARGS "qutebrowser" $DMENU_ARGS` +CHOSEN=`printf "default\n$SESSIONS" | dmenu -l 15 -p "qutebrowser" $DMENU_ARGS` [ -z "$CHOSEN" ] && exit 2 if [ -n "$CHOSEN" ]; then if [ "$CHOSEN" = "default" ]; then |