From 33e174f381ba60f2223cf3d33cddc8cb49c7ce74 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sun, 14 Nov 2021 00:13:17 +0100 Subject: [PATCH] Fixed issues and changed temperature probe for polybar temp Signed-off-by: Louis Vallat --- .config/bspwm/bspwmrc | 8 +++----- .config/polybar/config | 3 ++- .config/sxhkd/sxhkdrc | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index f55e042..a34678f 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -6,13 +6,10 @@ xrdb -load $HOME/.config/.Xresources & dunst -conf $HOME/.config/dunst/dunstrc & picom & feh --bg-fill ~/Pictures/nordic-obsession.png & -killall -q polybar - -# xrandr --output DisplayPort-2 --primary --mode 1920x1080 --rotate normal --output eDP --mode 1920x1080 --rotate normal --right-of DisplayPort-2 xset -b -DISPLAYS=$(bspc query -M --names) +DISPLAYS=$(xrandr -q | grep -w 'connected' | cut -d ' ' -f 1) EXT_PRIMARY="" for DISP in ${DISPLAYS}; do @@ -21,7 +18,8 @@ for DISP in ${DISPLAYS}; do fi done -if [ -n ${EXT_PRIMARY} ]; then +killall -q polybar +if [ ${EXT_PRIMARY} != "" ]; then xrandr --output ${EXT_PRIMARY} --primary --output eDP --right-of ${EXT_PRIMARY} bspc monitor ${EXT_PRIMARY} -d I II III IV V bspc monitor eDP -d VI VII VIII IX X diff --git a/.config/polybar/config b/.config/polybar/config index 29210cc..ab9b3c6 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -332,7 +332,7 @@ animation-discharging-framerate = 750 [module/temperature] type = internal/temperature thermal-zone = 0 -warn-temperature = 60 +warn-temperature = 85 format =