commit 3a47530b30065b361fae31d186fa1f9574443741
parent 8c83485607018de9a773c7383010d97d97b13fb8
Author: regexghost <dev@regexghost.com>
Date: Sun, 31 May 2026 17:46:08 +0100
trimed spaces in output of lemonbar-bar, cleaned quotes and changed background.sh to wallpaper.sh
Diffstat:
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc
@@ -99,6 +99,7 @@ alias clearlogs='sudo journalctl --vacuum-time=2d'
alias q='trim_history && exit'
alias reload='. ~/.bashrc'
alias pong='ping -c 2 -W 2'
+alias wp='feh --bg-fill --no-fehbg ~/.config/regexghost/wallpaper.jpg'
# Git Aliases
diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh
@@ -41,7 +41,7 @@ update_vol () {
}
update_wifi () {
- con="$(nmcli -t -f NAME c show --active | grep -v "^lo$" | head -c 6)"
+ con="$(nmcli -t -f NAME c show --active | grep -v "^lo$" | head -c 6 | sed 's/ $//g')"
if [ "$con" = "" ]; then
wifi="${wifi_down_colour} N/A${COLOUR_RESET}"
@@ -80,7 +80,7 @@ update_weather () {
update_music () {
state="$(mocp -i)"
- song="$(echo "$state" | grep -e "SongTitle" -e "Artist" | tac | paste -sd "-" | sed 's/-Artist: / - /g' | sed 's/^SongTitle: //g' | head -c 16)"
+ song="$(echo "$state" | grep -e "SongTitle" -e "Artist" | tac | paste -sd "-" | sed 's/-Artist: / - /g' | sed 's/^SongTitle: //g; s/"//g' | head -c 16 | sed 's/ $//g')"
pause="$(echo "$state" | grep -e "State" | cut -d " " -f 2)"
if [ "$song" = "" ]; then
music="${music_stopped_colour} N/A${COLOUR_RESET}"
diff --git a/wm-scripts/jwm-xinit.sh b/wm-scripts/jwm-xinit.sh
@@ -4,7 +4,7 @@
(sleep 10 && ~/.local/share/regexghost/panel/lemonbar-runner.sh) &
# Wallpaper
-(sleep 8 && feh --bg-fill --no-fehbg ~/.config/regexghost/background.jpg) &
+(sleep 8 && feh --bg-fill --no-fehbg ~/.config/regexghost/wallpaper.jpg) &
# Compositor
(sleep 6 && xcompmgr -n) &