From 326b550b2fa4013c121e2080f217841b5faa722a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega=20Froysa?= Date: Fri, 14 Apr 2023 11:57:50 +0200 Subject: [PATCH 1/3] setbg: no arguments resets wallpaper Also with some minor improvements of the code. --- setbg | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setbg b/setbg index 42300af..a261975 100755 --- a/setbg +++ b/setbg @@ -1,8 +1,12 @@ #!/bin/sh -[ $# -ne 1 ] && - echo "Requires an image argument." && +if [ $# -gt 1 ] +then + echo "Too many arguments" exit 1 +fi + +[ $# -eq 1 ] && + cp $1 $HOME/.local/share/wallpaper.jpg -cp $1 $HOME/.local/share/wallpaper.jpg xwallpaper --zoom $HOME/.local/share/wallpaper.jpg From 6c238989f8177ba5b14094bc2ff26c46c650a73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 31 May 2022 22:03:27 +0200 Subject: [PATCH 2/3] Switch to using file. --- status-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status-update b/status-update index 067076d..20ec9b8 100755 --- a/status-update +++ b/status-update @@ -6,5 +6,5 @@ SPACE="$(cat $HOME/.cache/free-space)" vol_status="$(cat $HOME/.cache/audio-control/vol_status)" vol_level="$(cat $HOME/.cache/audio-control/vol_level)%" VOLUME="$vol_status $vol_level" -UPDATES="Upd: $(checkupdates -n | wc -l)" +UPDATES="Upd: $(cat $HOME/.cache/update_count)" xsetroot -name "$VOLUME | $NETWORK | $SPACE | $UPDATES | $DATE" From f5c30419a82c09af4bb448985aaeedbba5efeb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Fri, 10 Jun 2022 21:11:58 +0200 Subject: [PATCH 3/3] Change music directory. --- space-usage-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/space-usage-update b/space-usage-update index d8dccd1..f32f55c 100755 --- a/space-usage-update +++ b/space-usage-update @@ -1,2 +1,2 @@ #!/bin/bash -df -h | awk '{ if ($6 == "/") printf "/: " $4; if ($6 == "/home") printf " home: " $4; if ($6 == "/home/music") printf " music: " $4; }' > $HOME/.cache/free-space +df -h | awk '{ if ($6 == "/") printf "/: " $4; if ($6 == "/home") printf " home: " $4; if ($6 == "/media/music") printf " music: " $4; }' > $HOME/.cache/free-space