feat(x11): migrate to pure Xlibre + dwm/dmenu/st stack, fix fcitx5-t9 bottom bar, PM8909 PON shutdown, and remove Wayland
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
. sxmo_common.sh
|
||||
|
||||
unalias dmenu 2>/dev/null || true
|
||||
|
||||
case "$1" in
|
||||
"--show-over-lockscreen")
|
||||
SHOW_OVER_LOCKSCREEN_FLAG=1
|
||||
shift
|
||||
;;
|
||||
"isopen")
|
||||
exec pidof -s dmenu >/dev/null
|
||||
;;
|
||||
"close")
|
||||
pkill dmenu 2>/dev/null || true
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$SHOW_OVER_LOCKSCREEN_FLAG" ]; then
|
||||
if pidof -s smlock >/dev/null; then
|
||||
set -- "$@" -w smlock
|
||||
fi
|
||||
fi
|
||||
|
||||
lines="${SXMO_DMENU_PORTRAIT_LINES:-9}"
|
||||
# shellcheck disable=SC2086
|
||||
exec dmenu -i $SXMO_DMENU_OPTS -l "$lines" "$@"
|
||||
Reference in New Issue
Block a user