Integrate dmenu as a preloaded zero-lag DWM plugin (dmenu.so)

This commit is contained in:
Luxferre
2026-10-21 17:37:51 +03:00
parent 7da7352a6d
commit d240f25131
34 changed files with 2835 additions and 1232 deletions
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
dwm-plugin
Binary file not shown.
Binary file not shown.
+10
View File
@@ -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
+3 -4
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
dwm-plugin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.