summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-10-10 11:03:04 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-10-10 11:03:04 +0200
commitda5908fe194a2036dcd1b1d9af70159acca63063 (patch)
tree7ca9628b3345c1888b0f340a40ab3e6ff1d52054
parent4f126573a547b5430962be6051b8705af281ff5a (diff)
checkpoint
-rwxr-xr-xbin/menuscripts/mpower30
-rw-r--r--config/essentials/shell/aliases.sh5
-rwxr-xr-xconfig/home/.xprofile4
3 files changed, 27 insertions, 12 deletions
diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower
index 8cbf1d0..8886cfd 100755
--- a/bin/menuscripts/mpower
+++ b/bin/menuscripts/mpower
@@ -1,29 +1,41 @@
#!/bin/sh
choice="$(
-cat <<EOF | commander -c -w 1 -y 7
+cat <<EOF | commander -c -w 1 -y 8
poweroff
suspend
reboot
firmware
hibernate
+windows
EOF
)"
+# Same on both
+case "$choice" in
+ "windows")
+ doas efibootmgr --bootnext "$(efibootmgr -u | grep 'Windows' | grep '^Boot[0-9]\{4\}' | cut -c 5-8)"
+ doas reboot
+ exit
+ ;;
+ "firmware") rebootfw; exit ;;
+esac
+
+# Winter
if [ "$(hostname)" = "winter" ]; then
- if [ "$choice" = "firmware" ]; then
- systemctl reboot --firmware-setup
- elif [ "$choice" = "suspend" ]; then
- systemctl hybrid-sleep
- else
- systemctl "$choice"
- fi
+ case "$choice" in
+ "suspend") systemctl hybrid-sleep ;;
+ "") exit 1 ;;
+ *) systemctl "$choice" ;;
+ esac
+# Spring
elif [ "$(hostname)" = "spring" ]; then
case "$choice" in
"suspend") doas /usr/sbin/zzz -H ;;
"hibernate") doas /usr/sbin/zzz -Z ;;
"poweroff") doas /usr/sbin/poweroff ;;
"reboot") doas /usr/sbin/reboot ;;
- "firmware") rebootfw ;;
+ "windows")
+ ;;
"") exit 1 ;;
*) ;;
esac
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh
index c115b41..fb5b2b1 100644
--- a/config/essentials/shell/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -140,7 +140,7 @@ alias ss4='ss -tln4p'
alias mdb='mariadb -u admin -ppass admindb'
alias mdbw='mariadb -h 0.0.0.0 -u padmin -pbulbizarre padmindb'
alias mdbwa='mariadb -h 10.3.50.5 -u padmin -pbulbizarre padmindb'
-alias tmux='{ tmux list-sessions > /dev/null 2>&1 && tmux attach || tmux new-session; }'
+alias tm='{ tmux list-sessions > /dev/null 2>&1 && tmux attach || tmux new-session; }'
# ssh
alias sha='ssh-add'
@@ -331,7 +331,8 @@ then
else
alias pkg_list_files='pacman -Ql'
alias pkg_search_local='pacman -Qs'
- alias pkg_search_online='pacman -Ss'
+ alias pkg_search='pacman -Ss'
alias pkg_install='doas pacman -S'
alias pkg_search_owned='pkgfile'
+ alias pkg_info='pacman -Si'
fi
diff --git a/config/home/.xprofile b/config/home/.xprofile
index 69388de..a2b55d8 100755
--- a/config/home/.xprofile
+++ b/config/home/.xprofile
@@ -37,11 +37,13 @@ then
keyadd spacehb.net &
fi
+noisetorch -i &
+
gpu-screen-recorder \
-w screen \
-f 60 \
-c mkv \
- -a "default_output" \
+ -a "default_output|default_input" \
-r 60 \
-replay-storage ram \
-restart-replay-on-save yes \