This commit is contained in:
Derek Taylor
2025-12-03 11:18:49 -06:00
parent 1764608c79
commit 777960ac7b
758 changed files with 6 additions and 37421 deletions

View File

@@ -1,12 +0,0 @@
#!/bin/sh
XBEL_PATH=~/.local/share/recently-used.xbel
MAX_ITEMS=20
if [[ -e $XBEL_PATH ]];then
ITEMS=$(sed -rn 's_.*file://([^"]*).*_<Program label="\1">rox -s "\1"</Program>_ p' "$XBEL_PATH")
else
ITEMS="<Program label=\"File ${XBEL_PATH##*/} not found!\"></Program>"
fi
echo "<JWM>"
echo -e "${ITEMS//%/\\x}" | tail -n $MAX_ITEMS
echo "</JWM>"

View File

@@ -1,25 +0,0 @@
#!/bin/sh
DIALOG=Xdialog
$DIALOG --allow-close\
--stdout\
--title 'Exit'\
--menu 'Choose action..'\
15 50 10 \
'Shutdown' "" \
'Reboot' "" \
'Suspend to RAM' "" \
'Suspend to Disk' "" \
1> /tmp/exitval.$$ 2> /dev/null
ACTION=`cat /tmp/exitval.$$`
rm -f /tmp/exitval.$$
case $ACTION in
'Shutdown') sudo halt ;;
'Reboot') sudo reboot ;;
'Suspend to RAM') sudo s2ram ;;
'Suspend to Disk') sudo s2disk ;;
*) exit ;;
esac