This is a huge patch for Swmo, Sxmo over Sway. It is Dwm backward compatible so dwm users should not expect regressions. If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone. This commit also contains: * Make the modemmonitor bullet proof * various other smaller fixes Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
40 lines
731 B
Bash
Executable file
40 lines
731 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# We still use dmenu in dwm|worgs cause pointer/touch events
|
|
# are not implemented yet in the X11 library of bemenu
|
|
|
|
case "$1" in
|
|
isopen)
|
|
case "$(sxmo_wm.sh)" in
|
|
sway|ssh)
|
|
exec pgrep bemenu
|
|
;;
|
|
xorg|dwm)
|
|
exec pgrep dmenu
|
|
;;
|
|
esac
|
|
;;
|
|
close)
|
|
case "$(sxmo_wm.sh)" in
|
|
sway|ssh)
|
|
exec pkill bemenu
|
|
;;
|
|
xorg|dwm)
|
|
exec pkill dmenu
|
|
;;
|
|
esac
|
|
;;
|
|
esac > /dev/null
|
|
|
|
case "$(sxmo_wm.sh)" in
|
|
sway)
|
|
exec bemenu --scrollbar autohide -n -w -c -l "$(sxmo_rotate.sh isrotated && printf 7 || printf 23)" "$@"
|
|
;;
|
|
xorg|dwm)
|
|
exec dmenu -c -l "$(sxmo_rotate.sh isrotated && printf 7 || printf 23)" "$@"
|
|
;;
|
|
ssh)
|
|
export BEMENU_BACKEND=curses
|
|
exec bemenu "$@"
|
|
;;
|
|
esac
|