AutoYADM commit: 2024-12-10 18:15:01

This commit is contained in:
Daniel Fichtinger 2024-12-10 18:15:01 -05:00
parent 8cff8cbc62
commit d2af5cfc3a
3 changed files with 15 additions and 12 deletions

View file

@ -498,8 +498,8 @@ set $warn #f79000
# set $complement #259797
# class border backgr. text indicator child_border
client.focused $bg2 $bg2 $fg $bg2 $bg2
client.focused_inactive $bg $bg $fg $bg $bg
client.focused $bg $bg $fg $bg $bg
client.focused_inactive $bg2 $bg2 $fg $bg2 $bg2
client.unfocused $bg $bg $fg $bg $bg
client.urgent $warn $warn $fg $warn $warn
client.placeholder $bg $bg $fg $bg $bg
@ -514,7 +514,8 @@ client.background $bg
# Start i3bar to display a workspace bar
# (plus the system information i3status finds out, if available)
bar {
font pango: Noto Sans Regular 10
# font pango: Noto Sans Regular 10
font pango: SauceCodePro Nerd Font Mono 11
status_command i3blocks -c ~/.config/i3/i3blocks.conf
position bottom
# i3bar_command i3bar --transparency

View file

@ -81,14 +81,15 @@ label=
instance=/
command=~/.config/i3/scripts/disk
interval=30
align=center
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=
command=~/.config/i3/scripts/memory
interval=2
# [memory]
# label=
# command=~/.config/i3/scripts/memory
# interval=2
[cpu_usage]
label=
@ -100,9 +101,9 @@ interval=2
label=
command=~/.config/i3/scripts/temperature
interval=30
#T_WARN=70
#T_CRIT=90
#SENSOR_CHIP=""
T_WARN=70
T_CRIT=90
# SENSOR_CHIP=""
# where SENSOR_CHIP can be find with sensors output
# can be used also for GPU temperature or other temperature sensors lm-sensors detects.
@ -133,6 +134,7 @@ interval=30
# command=pavucontrol
[volume-pulseaudio]
full_text=
command=~/.config/i3/scripts/volume
instance=Master
interval=1

View file

@ -21,7 +21,7 @@ ALERT_LOW="${ALERT_LOW:-10}" # color will turn red under this value (default: 10
LOCAL_FLAG="-l"
if [ "$1" = "-n" ] || [ "$2" = "-n" ]; then
LOCAL_FLAG=""
LOCAL_FLAG=""
fi
df -h -P $LOCAL_FLAG "$DIR" | awk -v label="$LABEL" -v alert_low=$ALERT_LOW '
@ -42,7 +42,7 @@ END {
gsub(/%$/,"",use)
if (100 - use < alert_low) {
# color
print "#FF0000"
print "#933737"
}
}
'