From 767a9086bfd4d9b1763f100a7847d01d170cd1a7 Mon Sep 17 00:00:00 2001 From: tiynger Date: Sat, 5 Oct 2019 11:48:22 +0200 Subject: [PATCH] changing setbg script to be more minimal --- .local/bin/tools/setbg | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.local/bin/tools/setbg b/.local/bin/tools/setbg index 487f784..5c5e8a3 100755 --- a/.local/bin/tools/setbg +++ b/.local/bin/tools/setbg @@ -1,25 +1,5 @@ #!/bin/sh -# Sets the background. If given an argument, will set file as background. -if [ $(date | awk '{print $1}') = "Mon" ]; then - wallDir=~/.config/wallpaper/mon -fi -if [ $(date | awk '{print $1}') = "Tue" ]; then - wallDir=~/.config/wallpaper/tue -fi -if [ $(date | awk '{print $1}') = "Wed" ]; then - wallDir=~/.config/wallpaper/wed -fi -if [ $(date | awk '{print $1}') = "Thu" ]; then - wallDir=~/.config/wallpaper/thu -fi -if [ $(date | awk '{print $1}') = "Fri" ]; then - wallDir=~/.config/wallpaper/fri -fi -if [ $(date | awk '{print $1}') = "Sat" ]; then - wallDir=~/.config/wallpaper/sat -fi -if [ $(date | awk '{print $1}') = "Sun" ]; then - wallDir=~/.config/wallpaper/sun -fi +# Sets the background. +wallDir=~/.config/wallpaper/$(date | awk '{print $1}') currWall=$wallDir/$(ls $wallDir | shuf -n 1) xwallpaper --zoom $currWall