mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-25 23:48:21 -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"
|
rofi_command="rofi -theme $dir/powermenu.rasi"
|
||||||
|
|
||||||
uptime=$(uptime -p | sed -e 's/up //g')
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
cpu=$($HOME/.config/rofi/bin/usedcpu)
|
||||||
memory=$(sh ~/.config/rofi/bin/usedram)
|
memory=$($HOME/.config/rofi/bin/usedram)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=""
|
shutdown=""
|
||||||
|
@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/menu/configs/$style"
|
|||||||
rofi_command="rofi -theme $dir/powermenu.rasi"
|
rofi_command="rofi -theme $dir/powermenu.rasi"
|
||||||
|
|
||||||
uptime=$(uptime -p | sed -e 's/up //g')
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
cpu=$($HOME/.config/rofi/bin/usedcpu)
|
||||||
memory=$(sh ~/.config/rofi/bin/usedram)
|
memory=$($HOME/.config/rofi/bin/usedram)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=""
|
shutdown=""
|
||||||
|
@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/applets/configs/$style"
|
|||||||
rofi_command="rofi -theme $dir/powermenu.rasi"
|
rofi_command="rofi -theme $dir/powermenu.rasi"
|
||||||
|
|
||||||
uptime=$(uptime -p | sed -e 's/up //g')
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
cpu=$($HOME/.config/rofi/bin/usedcpu)
|
||||||
memory=$(sh ~/.config/rofi/bin/usedram)
|
memory=$($HOME/.config/rofi/bin/usedram)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=""
|
shutdown=""
|
||||||
|
@ -11,8 +11,8 @@ dir="$HOME/.config/rofi/applets/menu/configs/$style"
|
|||||||
rofi_command="rofi -theme $dir/powermenu.rasi"
|
rofi_command="rofi -theme $dir/powermenu.rasi"
|
||||||
|
|
||||||
uptime=$(uptime -p | sed -e 's/up //g')
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
cpu=$($HOME/.config/rofi/bin/usedcpu)
|
||||||
memory=$(sh ~/.config/rofi/bin/usedram)
|
memory=$($HOME/.config/rofi/bin/usedram)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=""
|
shutdown=""
|
||||||
|
Loading…
Reference in New Issue
Block a user