diff options
Diffstat (limited to 'qbc')
-rwxr-xr-x | qbc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -21,6 +21,19 @@ while getopts "hwxd:u:" o; do case "${o}" in esac done #}}} +#{{{ Check display server if -w or -x not provided +if [ -z "$DMENU" ]; then + if [ -n "$WAYLAND_DISPLAY" ]; then + DMENU="bemenu" + elif [ -n "$DISPLAY" ]; then + DMENU="dmene" + else + print "Can't tell if Wayland or X; what gives?\n" + exit 1 + fi +fi +#}}} + #{{{ Get Sessions SESSIONS=`qbpm list` [ -z "$SESSIONS" ] && qutebrowser $@ && exit |