mirror of
https://github.com/adi1090x/rofi.git
synced 2024-12-26 22:38:23 -05:00
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:
parent
9c4093c665
commit
df6dde18d6
@ -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=""
|
||||
|
@ -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=""
|
||||
|
@ -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=""
|
||||
|
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user