dotfiles

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

commit ea1970983d0e06f8d151453b8abb02a9ff534409
parent 655cc1cdeba6a00a8e355d7f437daa891a98f4dc
Author: regexghost <regexghost@protonmail.com>
Date:   Fri,  8 May 2026 19:24:37 +0100

minor changes

Diffstat:
Mpanel-scripts/network.c | 4++--
Mpanel-scripts/sunrise.sh | 4++++
Mwm-scripts/volume.sh | 5+++++
3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/panel-scripts/network.c b/panel-scripts/network.c @@ -2,10 +2,10 @@ #ifdef UP_SPEED #define PREV_FILE_LOC "/tmp/network_up_previous" -#define BYTES_FILE_LOC "/sys/class/net/wlp0s20f3/statistics/tx_bytes" +#define BYTES_FILE_LOC "/sys/class/net/wlan0/statistics/tx_bytes" #else #define PREV_FILE_LOC "/tmp/network_down_previous" -#define BYTES_FILE_LOC "/sys/class/net/wlp0s20f3/statistics/rx_bytes" +#define BYTES_FILE_LOC "/sys/class/net/wlan0/statistics/rx_bytes" #endif int get_previous_value() { diff --git a/panel-scripts/sunrise.sh b/panel-scripts/sunrise.sh @@ -28,6 +28,8 @@ if [[ "$1" == "--sunrise" ]]; then astro_twilight=$(echo "$json_tomorrow" | jq -r .results.astronomical_twilight_begin | sed 's/.*T//g' | sed 's/:[0-9]*+.*//g') if [[ "$2" == "--conky" ]]; then echo "\${color #$sunriseColour}$astro_twilight - $sunrise \${color}" + elif [[ "$2" == "--blank" ]]; then + echo "$sunrise" else echo "<span font='Font Awesome 7 Free Solid 9' foreground='#$sunriseColour'> </span> <span foreground='#$sunriseColour'>$astro_twilight - $sunrise </span>" fi @@ -38,6 +40,8 @@ elif [[ "$1" == "--sunset" ]]; then astro_twilight=$(echo "$json_today" | jq -r .results.astronomical_twilight_end | sed 's/.*T//g' | sed 's/:[0-9]*+.*//g') if [[ "$2" == "--conky" ]]; then echo "\${color #$sunsetColour}$sunset - $astro_twilight \${color}" + elif [[ "$2" == "--blank" ]]; then + echo "$sunset" else echo "<span font='Font Awesome 7 Free Solid 9' foreground='#$sunsetColour'> </span> <span foreground='#$sunsetColour'>$sunset - $astro_twilight </span>" fi diff --git a/wm-scripts/volume.sh b/wm-scripts/volume.sh @@ -34,3 +34,8 @@ elif [ "$1" = "--down" ]; then elif [ "$1" = "--toggle-mute" ]; then toggle_mute fi + +barpid=$(cat ~/.cache/bar_pid) +if ! [ $barpid = "" ]; then + kill -34 $barpid +fi