mabox-obstart

master
Daniel Napora 2021-09-08 00:45:45 +02:00
parent 3bbb004390
commit 60c35325a5
1 changed files with 8 additions and 7 deletions

View File

@ -40,13 +40,13 @@ if phwmonpid=$(pgrep -f phwmon.py); then
kill $phwmonpid
fi
. $HOME/.config/mabox/mabox.conf
if [ $phwmon_monitor == true ];then
if [ $phwmon_monitor = true ];then
[[ $phwmon_cpu == true ]] && cpu="--cpu" || cpu=""
[[ $phwmon_mem == true ]] && mem="--mem" || mem=""
[[ $phwmon_swap == true ]] && swap="--swap" || swap=""
[[ $phwmon_net == true ]] && net="--net" || net=""
[[ $phwmon_io == true ]] && io="--io" || io=""
[[ $phwmon_cpu = true ]] && cpu="--cpu" || cpu=""
[[ $phwmon_mem = true ]] && mem="--mem" || mem=""
[[ $phwmon_swap = true ]] && swap="--swap" || swap=""
[[ $phwmon_net = true ]] && net="--net" || net=""
[[ $phwmon_io = true ]] && io="--io" || io=""
phwmon.py ${cpu} ${mem} ${swap} ${net} ${io} --task_manager lxtask
@ -66,7 +66,7 @@ rsync -aq --ignore-existing /etc/xdg/autostart/ $config_dir/autostart
. $HOME/.config/mabox/mabox.conf
#Set config variables if not set or empty; ":" means do nothing
# NEW CONFIG VARIABLES - SET defaults at openbox start
[[ -v phwmon_monitor ]] && : || mb-setvar phwmon_monitor=false
[[ -v phwmon_monitor ]] && : || mb-setvar phwmon_monitor=true
[[ -v phwmon_cpu ]] && : || mb-setvar phwmon_cpu=true
[[ -v phwmon_mem ]] && :|| mb-setvar phwmon_mem=true
[[ -v phwmon_swap ]] && : || mb-setvar phwmon_swap=false
@ -75,6 +75,7 @@ rsync -aq --ignore-existing /etc/xdg/autostart/ $config_dir/autostart
[[ -v places_tint2pipe ]] && : || mb-setvar places_tint2pipe=true
[[ -v places_quicknav ]] && : || mb-setvar places_quicknav=true
[[ -v places_bookmarks ]] && : || mb-setvar places_bookmarks=true
[[ -v places_vboxes ]] && : || mb-setvar places_vboxes=false
virtualboxes
if command -v phwmon.py &>/dev/null; then