Don't enforce sh, nitpicking about HOME variable

* on some distributions sh is *not* bash, so don't enforce sh
 * it's not neccessarey to call the scripts with a shell because the
   permissions allow for direct execution
 * nitpicking: every part uses $HOME, so change ~ to $HOME for some
   calls
This commit is contained in:
Bobobo-bo-Bo-bobo 2021-07-10 11:37:26 +02:00
parent 9c4093c665
commit df6dde18d6
4 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/applets/configs/$style"
rofi_command="rofi -theme $dir/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
cpu=$(sh ~/.config/rofi/bin/usedcpu)
memory=$(sh ~/.config/rofi/bin/usedram)
cpu=$($HOME/.config/rofi/bin/usedcpu)
memory=$($HOME/.config/rofi/bin/usedram)
# Options
shutdown=""

View File

@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/menu/configs/$style"
rofi_command="rofi -theme $dir/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
cpu=$(sh ~/.config/rofi/bin/usedcpu)
memory=$(sh ~/.config/rofi/bin/usedram)
cpu=$($HOME/.config/rofi/bin/usedcpu)
memory=$($HOME/.config/rofi/bin/usedram)
# Options
shutdown=""

View File

@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/applets/configs/$style"
rofi_command="rofi -theme $dir/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
cpu=$(sh ~/.config/rofi/bin/usedcpu)
memory=$(sh ~/.config/rofi/bin/usedram)
cpu=$($HOME/.config/rofi/bin/usedcpu)
memory=$($HOME/.config/rofi/bin/usedram)
# Options
shutdown=""

View File

@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/menu/configs/$style"
rofi_command="rofi -theme $dir/powermenu.rasi"
uptime=$(uptime -p | sed -e 's/up //g')
cpu=$(sh ~/.config/rofi/bin/usedcpu)
memory=$(sh ~/.config/rofi/bin/usedram)
cpu=$($HOME/.config/rofi/bin/usedcpu)
memory=$($HOME/.config/rofi/bin/usedram)
# Options
shutdown=""