Add modem/networks DWM plugins, Dual-SIM & PIN/PUK support, built-in dmenu views, and game UX fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Bananarchy Bluetooth menu wrapper — routes to native xnetworks Bluetooth tab
|
||||
if command -v xnetworks >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
|
||||
exec xnetworks bluetooth
|
||||
fi
|
||||
exec /usr/bin/dwm-plugin networks bluetooth
|
||||
@@ -98,7 +98,7 @@ checkforfinishedcalls() {
|
||||
|
||||
sxmo_notifs.sh new \
|
||||
-g "incoming-call-$FINISHEDNUMBER" \
|
||||
"TERMNAME='$NOTIFMSG' sxmo_terminal.sh sh -c \"echo '$NOTIFMSG at $(date)' && read\"" \
|
||||
"xcalllog" \
|
||||
"Missed $icon_phn $CONTACT ($FINISHEDNUMBER)"
|
||||
fi
|
||||
|
||||
@@ -280,7 +280,7 @@ checkfornewtexts() {
|
||||
if [ -z "$SXMO_DISABLE_SMS_NOTIFS" ]; then
|
||||
sxmo_notifs.sh new \
|
||||
-g "incoming-message-$NUM" \
|
||||
"sxmo_hook_tailtextlog.sh '$NUM'" \
|
||||
"xsms tailtextlog '$NUM'" \
|
||||
"$CONTACTNAME: $TEXT"
|
||||
|
||||
fi
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
if command -v xmodem >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
|
||||
exec xmodem info
|
||||
fi
|
||||
. sxmo_common.sh
|
||||
sxmo_terminal.sh sh -c "mmcli -m any && read"
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
if command -v xmodem >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
|
||||
exec xmodem log
|
||||
fi
|
||||
. sxmo_common.sh
|
||||
sxmo_terminal.sh sh -c "tail -n9999 -f $SXMO_LOGDIR/modemlog.tsv"
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Bananarchy Networks wrapper — routes to native xnetworks DWM plugin
|
||||
if command -v xnetworks >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
|
||||
exec xnetworks "$@"
|
||||
fi
|
||||
exec /usr/bin/dwm-plugin networks "$@"
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Bananarchy SIM PIN/PUK unlock wrapper — routes to native xmodem plugin UI
|
||||
|
||||
if command -v xmodem >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
|
||||
exec xmodem unlock
|
||||
fi
|
||||
|
||||
# Fallback if X11 plugin is not running
|
||||
. sxmo_common.sh
|
||||
SIM="$(mmcli -m any 2>/dev/null | grep -oE 'SIM/([0-9]+)' | head -n1 | cut -d'/' -f2 || true)"
|
||||
[ -z "$SIM" ] && exit 0
|
||||
LOCKSTATE="$(mmcli -m any -K 2>/dev/null | grep 'modem.generic.unlock-required' | cut -d':' -f2 | tr -d ' ' || true)"
|
||||
case "$LOCKSTATE" in
|
||||
sim-pin)
|
||||
PIN="$(printf "0000\n1234\nCancel" | sxmo_dmenu.sh -p "PIN")"
|
||||
[ -z "$PIN" ] || [ "$PIN" = "Cancel" ] && exit 0
|
||||
mmcli -i "$SIM" --pin="$PIN"
|
||||
;;
|
||||
sim-puk)
|
||||
PUK="$(printf "Cancel\n" | sxmo_dmenu.sh -p "PUK (8 digits)")"
|
||||
[ -z "$PUK" ] || [ "$PUK" = "Cancel" ] && exit 0
|
||||
NEWPIN="$(printf "0000\n1234\nCancel" | sxmo_dmenu.sh -p "New PIN")"
|
||||
[ -z "$NEWPIN" ] || [ "$NEWPIN" = "Cancel" ] && exit 0
|
||||
mmcli -i "$SIM" --puk="$PUK" --pin="$NEWPIN"
|
||||
;;
|
||||
esac
|
||||
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Reference in New Issue
Block a user