Fixed issues and changed temperature probe for polybar temp

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-11-14 00:13:17 +01:00
parent e592d4b3dd
commit 33e174f381
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283
3 changed files with 20 additions and 21 deletions

View File

@ -6,13 +6,10 @@ xrdb -load $HOME/.config/.Xresources &
dunst -conf $HOME/.config/dunst/dunstrc & dunst -conf $HOME/.config/dunst/dunstrc &
picom & picom &
feh --bg-fill ~/Pictures/nordic-obsession.png & 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 xset -b
DISPLAYS=$(bspc query -M --names) DISPLAYS=$(xrandr -q | grep -w 'connected' | cut -d ' ' -f 1)
EXT_PRIMARY="" EXT_PRIMARY=""
for DISP in ${DISPLAYS}; do for DISP in ${DISPLAYS}; do
@ -21,7 +18,8 @@ for DISP in ${DISPLAYS}; do
fi fi
done done
if [ -n ${EXT_PRIMARY} ]; then killall -q polybar
if [ ${EXT_PRIMARY} != "" ]; then
xrandr --output ${EXT_PRIMARY} --primary --output eDP --right-of ${EXT_PRIMARY} xrandr --output ${EXT_PRIMARY} --primary --output eDP --right-of ${EXT_PRIMARY}
bspc monitor ${EXT_PRIMARY} -d I II III IV V bspc monitor ${EXT_PRIMARY} -d I II III IV V
bspc monitor eDP -d VI VII VIII IX X bspc monitor eDP -d VI VII VIII IX X

View File

@ -332,7 +332,7 @@ animation-discharging-framerate = 750
[module/temperature] [module/temperature]
type = internal/temperature type = internal/temperature
thermal-zone = 0 thermal-zone = 0
warn-temperature = 60 warn-temperature = 85
format = <ramp> <label> format = <ramp> <label>
format-underline = #f50a4d format-underline = #f50a4d
@ -347,6 +347,7 @@ ramp-0 = 
ramp-1 =  ramp-1 = 
ramp-2 =  ramp-2 = 
ramp-foreground = ${colors.foreground-alt} ramp-foreground = ${colors.foreground-alt}
hwmon-path = /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input
[module/powermenu] [module/powermenu]
type = custom/menu type = custom/menu