Files
sxmo-utils/scripts/core/sxmo_tabbed.sh
hazardchem a73741f643 sxmo_tabbed.sh: Added urxvt launcher
Signed-off-by: hazardchem <hazardchem@disroot.org>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2024-11-25 19:28:38 +01:00

34 lines
499 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2024 Sxmo Contributors
# Tabbed options for various programs
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
OPTIONS="
alacritty --embed
st -w
surf -e
urxvt -embed
zathura -e
"
LIST="$(grep . <<-EOF | sxmo_dmenu.sh -p "Tabbed Embed"
$OPTIONS
Nothing
Close
EOF
)"
case "$LIST" in
"Close"|"") exit 0 ;;
"Nothing") tabbed ;;
*)
# shellcheck disable=SC2086
tabbed $LIST
;;
esac