dotfiles

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

commit a91f3efea86a9077bec1a327f3d2a037e4efca7c
parent a6df1105cfdd24d7a1f59bbcec19cde275df9c0f
Author: regexghost <dev@regexghost.com>
Date:   Sun,  5 Jul 2026 23:28:37 +0100

added more to init.sh, other changes due to moving from Pi to normal PC

Diffstat:
Mhelpers/colours/templates/Template-config.def.h | 4++--
Minit.sh | 19+++++++++++++++++++
Mpanel-scripts/lemonbar-bar.sh | 3++-
Mpanel-scripts/network.c | 4++--
Mterminal-scripts/github_latest_release.sh | 15++++++++++-----
5 files changed, 35 insertions(+), 10 deletions(-)

diff --git a/helpers/colours/templates/Template-config.def.h b/helpers/colours/templates/Template-config.def.h @@ -5,12 +5,12 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "FONT_FAMILY:pixelsize=13:antialias=true:autohint=true"; +static char *font = "FONT_FAMILY:pixelsize=14:antialias=true:autohint=true"; /* Spare fonts */ static char *font2[] = { /* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */ /* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ - "Font Awesome 7 Free Solid:pixlesize=13:antialias=true:autohint=true", + "Font Awesome 7 Free Solid:pixlesize=14:antialias=true:autohint=true", }; static int borderpx = 2; diff --git a/init.sh b/init.sh @@ -1,6 +1,25 @@ #!/bin/sh +set -e + +# Install programs +sudo apt install xorg xinit x11-xserver-utils bluetooth unzip git firefox mpv vlc tar moc fasd fonts-roboto fonts-firacode figlet jq xcompmgr picom trash-cli + +# Install dotfile scripts cd panel-scripts; make; cd .. cd terminal-scripts; make; cd .. cd other; make; cd .. cd wm-scripts; make; cd .. +cd helpers/subgo; make full; cd ../.. + +# Compile programs +./otherPrograms.sh mine +./otherPrograms.sh notmine + +# Create empty wgetrc to stop error +touch ~/.config/wgetrc + +# Shell stuf +cp /etc/shells ~/Downloads/shells_backup +echo "/usr/local/bin/oksh" | sudo tee -a /etc/shells +chsh diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh @@ -58,7 +58,8 @@ update_mem () { } update_cpu_temp () { - cpu_temp="${cpu_temp_colour} "$(vcgencmd measure_temp | cut -d "=" -f 2 | cut -d "." -f 1)°C"${COLOUR_RESET}" + temp=$(($(cat /sys/class/thermal/thermal_zone2/temp)/1000)) + cpu_temp="${cpu_temp_colour} "{temp}°C"${COLOUR_RESET}" } update_uptime () { 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/wlan0/statistics/tx_bytes" +#define BYTES_FILE_LOC "/sys/class/net/wlx3460f9198188/statistics/tx_bytes" #else #define PREV_FILE_LOC "/tmp/network_down_previous" -#define BYTES_FILE_LOC "/sys/class/net/wlan0/statistics/rx_bytes" +#define BYTES_FILE_LOC "/sys/class/net/wlx3460f9198188/statistics/rx_bytes" #endif int get_previous_value() { diff --git a/terminal-scripts/github_latest_release.sh b/terminal-scripts/github_latest_release.sh @@ -1,8 +1,13 @@ #!/usr/bin/env bash -user_name="$1" -repo_name="$2" +site="$1" +user_name="$2" +repo_name="$3" -latest_tag=$(curl -w "%{redirect_url}" https://github.com/${user_name}/${repo_name}/releases/latest/ | sed 's/.*\///g') - -echo https://github.com/${user_name}/${repo_name}/archive/refs/tags/${latest_tag}.zip +if [[ "$site" == "github" ]] || [[ "$site" == "gh" ]]; then + latest_tag=$(curl -w "%{redirect_url}" https://github.com/${user_name}/${repo_name}/releases/latest/ | sed 's/.*\///g') + echo https://github.com/${user_name}/${repo_name}/archive/refs/tags/${latest_tag}.zip +elif [[ "$site" == "codeberg" ]] || [[ "$site" == "cb" ]]; then + latest_tag=$(curl -w "%{redirect_url}" https://codeberg.org/${user_name}/${repo_name}/releases/latest/ | sed -nE 's/.*tag\/([^"]*)">.*/\1/p') + echo https://codeberg.org/${user_name}/${repo_name}/archive/${latest_tag}.zip +fi