commit 3a335e91a01f543df92343ab5933873b1b41eb1d
parent 21efe7b49c0794343732d2b4a941ce772250c8fa
Author: regexghost <dev@regexghost.com>
Date: Mon, 13 Jul 2026 15:44:24 +0100
fixed crash in network.c when interface not present, other minor changes
Diffstat:
5 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/apt-install.sh b/apt-install.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-sudo apt install curl wget golang xorg xinit x11-xserver-utils bluetooth unzip git firefox mpv vlc tar moc fasd fonts-roboto fonts-firacode figlet jq xcompmgr picom trash-cli ncdu pulsemixer feh moc-ffmpeg-plugin keepassxc-full fzf libnotify-bin dunst texinfo xmlstarlet duf gh tidy w3m bluetooth xclip wbritish wbritish-huge rsync pup rename ifuse libimobiledevice-utils chromium groff zathura zathura-pdf-poppler zathura-ps xdotool pulseaudio-module-bluetooth sqlite3 expect
+sudo apt install curl wget golang xorg xinit x11-xserver-utils bluetooth unzip git firefox mpv vlc tar moc fasd fonts-roboto fonts-firacode figlet jq xcompmgr picom trash-cli ncdu pulsemixer feh moc-ffmpeg-plugin keepassxc-full fzf libnotify-bin dunst texinfo xmlstarlet duf gh tidy w3m bluetooth xclip wbritish wbritish-huge rsync pup rename ifuse libimobiledevice-utils chromium groff zathura zathura-pdf-poppler zathura-ps xdotool pulseaudio-module-bluetooth sqlite3 expect aria2
diff --git a/helpers/colours/make.sh b/helpers/colours/make.sh
@@ -40,6 +40,7 @@ if [ "$2" = "website" ]; then
fi
cp schemes/"$scheme".sh "$XDG_CONFIG_HOME/regexghost/current-theme.sh"
+echo "$scheme" > ~/.config/regexghost/current-theme.txt
for template in templates/*; do
outputFilename="$(echo "$template" | sed "s|Template|Colourscheme-Substitution-$scheme|g" | sed 's/templates/output/g')"
diff --git a/lists/dotfiles b/lists/dotfiles
@@ -19,7 +19,6 @@
~/.config/gtk2rc
~/.config/boomer/config
~/.config/alacritty/alacritty.toml
-~/.inputrc
~/.profile
~/.kshrc
~/.xinitrc
diff --git a/panel-scripts/network.c b/panel-scripts/network.c
@@ -34,6 +34,11 @@ int main() {
FILE *f;
f = fopen(BYTES_FILE_LOC, "r");
+ if (f == NULL) {
+ printf("0.00 MiB/s\n");
+ return 0;
+ }
+
char buf[100] = {0};
fgets(buf, 100, f);
fclose(f);
diff --git a/panel-scripts/sunrise.sh b/panel-scripts/sunrise.sh
@@ -25,6 +25,7 @@ if [[ "$1" == "--sunrise" ]]; then
#json_tomorrow=$(curl -s "https://api.sunrisesunset.io/json?lat=${lat}&lng=${lon}&date=tomorrow&time_format=24")
json_tomorrow=$(curl --connect-timeout 5 -s "https://api.sunrise-sunset.org/json?lat=${lat}&lng=${lon}&date=tomorrow&formatted=0")
sunrise=$(echo "$json_tomorrow" | jq -r .results.sunrise | sed 's/.*T//g' | sed 's/:[0-9]*+.*//g')
+ [ "$sunrise" = "" ] && sunrise="?"
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}"
@@ -37,6 +38,7 @@ elif [[ "$1" == "--sunset" ]]; then
#json_today=$(curl -s "https://api.sunrisesunset.io/json?lat=${lat}&lng=${lon}&time_format=24")
json_today=$(curl --connect-timeout 5 -s "https://api.sunrise-sunset.org/json?lat=${lat}&lng=${lon}&date=today&formatted=0")
sunset=$(echo "$json_today" | jq -r .results.sunset | sed 's/.*T//g' | sed 's/:[0-9]*+.*//g')
+ [ "$sunset" = "" ] && sunset="?"
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}"