From 87331ea13691ef9aa9f5ffb9f89b0a14c5b4dbc2 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Tue, 2 Jan 2024 22:09:02 -0500 Subject: [PATCH] maybe posix, maybe faster, maybe matters, maybe not --- bin/doorsbg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/doorsbg b/bin/doorsbg index 7df1de4..f589757 100755 --- a/bin/doorsbg +++ b/bin/doorsbg @@ -1,11 +1,11 @@ -#! /bin/bash +#!/bin/sh # Pick a random wallpaper and save a copy -wal -i ~/Pictures/Wallpapers && -cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg +wal -qi ~/Pictures/Wallpapers && +cp "$(awk "{print}" "$HOME/.cache/wal/wal")" ~/.cache/wal/bg && # Update themes for other stuff it it exists -[[ -x "$(command -v pywalfox)" ]] && pywalfox update & -[[ -x "$(command -v wal-telegram )" ]] && wal-telegram -g & -[[ -x "$(command -v pywal-discord)" ]] && pywal-discord && -[[ -x "$(command -v beautifuldiscord)" ]] && beautifuldiscord --css ~/.config/BetterDiscord/themes & +([ -x "$(command -v pywalfox)" ] && pywalfox update & +[ -x "$(command -v wal-telegram )" ] && wal-telegram -g & +[ -x "$(command -v pywal-discord)" ] && pywal-discord && + [ -x "$(command -v beautifuldiscord)" ] && beautifuldiscord --css ~/.config/BetterDiscord/themes) &