dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit 4294236a3616968558973fd5c42aab69ee669419
parent 8a6836c89f4ac78cbc87e57d405723ff6e56f30a
Author: regexghost <dev@regexghost.com>
Date:   Fri, 19 Jun 2026 14:19:13 +0100

shutdown commands, changed to XDG_CACHE_HOME in volume.sh, no root menu on left click on desktop, and removed muted text from bar

Diffstat:
Mdotfiles/Power_Management-Substitution-jwm-pi-.kshrc | 15+++++++++++----
Mjwm/.config/jwm/jwmrc | 2+-
Mpanel-scripts/lemonbar-bar.sh | 2+-
Mwm-scripts/volume.sh | 13++++++++-----
4 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/dotfiles/Power_Management-Substitution-jwm-pi-.kshrc b/dotfiles/Power_Management-Substitution-jwm-pi-.kshrc @@ -1,11 +1,18 @@ #### Start Substitute - Power_Management ## Shutdown with confirmation +shutdown_commands () { + mocp -M "$XDG_CONFIG_HOME/moc" --stop + rm -rf "$XDG_CACHE_HOME/reddit-rss" + cp /tmp/reddit-rss "$XDG_CACHE_HOME/reddit-rss" + tmux send-keys -t buffer_tmux.o C-s + tmux send-keys -t buffer_tmux.o C-q + tmux kill-session -t buffer_tmux +} + shutdown () { read yesOrNoShutdown"?Shutdown? (y/N) " if [[ "$yesOrNoShutdown" == "y" ]]; then - mocp -M "$XDG_CONFIG_HOME/moc" --stop - rm -rf "$XDG_CACHE_HOME/reddit-rss" - cp /tmp/reddit-rss "$XDG_CACHE_HOME/reddit-rss" + shutdown_commands /usr/sbin/shutdown -h 0 fi } @@ -14,7 +21,7 @@ shutdown () { reboot () { read yesOrNoReboot"?Reboot? (y/N) " if [[ "$yesOrNoReboot" == "y" ]]; then - mocp -M "$XDG_CONFIG_HOME/moc" --stop + shutdown_commands /usr/sbin/reboot fi } diff --git a/jwm/.config/jwm/jwmrc b/jwm/.config/jwm/jwmrc @@ -2,7 +2,7 @@ <JWM> <!-- The root menu. --> - <RootMenu onroot="12"> + <RootMenu onroot="3"> <Program icon="utilities-terminal" label="Terminal">st</Program> <Menu icon="folder" label="Applications"> <Program icon="sound" label="Audacious">audacious</Program> diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh @@ -37,7 +37,7 @@ update_network_down () { update_vol () { if [ $(cat ~/.cache/muted) = "yes" ]; then - vol="${muted_colour} Muted${COLOUR_RESET}" + vol="${muted_colour} ${COLOUR_RESET}" else vol="${volume_colour} $(cat ~/.cache/volume)%%${COLOUR_RESET}" fi diff --git a/wm-scripts/volume.sh b/wm-scripts/volume.sh @@ -1,13 +1,16 @@ #!/bin/sh +VOLUME_CACHE_FILE="$XDG_CACHE_HOME/volume" +MUTED_CACHE_FILE="$XDG_CACHE_HOME/muted" + volume_up () { current_volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk ' /Volume/ {print $5}' | sed 's/%//g') if [ $current_volume -gt 97 ]; then pactl set-sink-volume @DEFAULT_SINK@ 100% - echo "100" > ~/.cache/volume + echo "100" > "$VOLUME_CACHE_FILE" else pactl set-sink-volume @DEFAULT_SINK@ +3% - echo $((current_volume+3)) > ~/.cache/volume + echo $((current_volume+3)) > "$VOLUME_CACHE_FILE" fi } @@ -15,16 +18,16 @@ volume_down () { current_volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk ' /Volume/ {print $5}' | sed 's/%//g') if [ $current_volume -lt 3 ]; then pactl set-sink-volume @DEFAULT_SINK@ 0% - echo "0" > ~/.cache/volume + echo "0" > "$VOLUME_CACHE_FILE" else pactl set-sink-volume @DEFAULT_SINK@ -3% - echo $((current_volume-3)) > ~/.cache/volume + echo $((current_volume-3)) > "$VOLUME_CACHE_FILE" fi } toggle_mute () { pactl set-sink-mute @DEFAULT_SINK@ toggle - pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}' > ~/.cache/muted + pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}' > "$MUTED_CACHE_FILE" } if [ "$1" = "--up" ]; then