Integrate dmenu as a preloaded zero-lag DWM plugin (dmenu.so)
This commit is contained in:
Binary file not shown.
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,16 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
if [ "${1:-}" = "--fallback" ]; then
|
||||
shift
|
||||
elif [ -p /tmp/dwm_plugin_dmenu.fifo ]; then
|
||||
case "${1:-}" in
|
||||
""|sys|applications|scripts|modem|config|power|sthotkeys)
|
||||
exec dmenu "${1:-ctx}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# include common definitions
|
||||
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||
. sxmo_hook_icons.sh
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
. sxmo_common.sh
|
||||
|
||||
unalias dmenu 2>/dev/null || true
|
||||
|
||||
case "$1" in
|
||||
@@ -12,10 +10,11 @@ case "$1" in
|
||||
shift
|
||||
;;
|
||||
"isopen")
|
||||
exec pidof -s dmenu >/dev/null
|
||||
[ -e /tmp/dwm_plugin_dmenu.active ]
|
||||
exit $?
|
||||
;;
|
||||
"close")
|
||||
pkill dmenu 2>/dev/null || true
|
||||
dmenu close 2>/dev/null || true
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user