Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
biocoderh committed Oct 30, 2023
1 parent 7da5457 commit 177c306
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .config/bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ bspc config gapless_monocle true

xsetroot -solid "#000000"

for i in /sys/class/hwmon/hwmon*/temp*_input; do
if [ "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*}))" = "coretemp: Package id 0" ]; then
export HWMON_PATH="$i"
fi
for i in /sys/class/hwmon/hwmon*/temp*_input; do
# shellcheck disable=all
if [ "$(cat $(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*}))" = "coretemp: Package id 0" ]; then
export HWMON_PATH="$i"
fi
done

pgrep -x sxhkd > /dev/null || sxhkd &
pgrep -x polybar > /dev/null || polybar -r &
pgrep -x polybar > /dev/null || polybar &

0 comments on commit 177c306

Please sign in to comment.