Random code snippets used in my environments (mostly i3)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
252 B

#!/bin/bash
TEMP=$(~/.bin/temp | sed 's/\..*°C//g')
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME plasma)/environ)";
if [ $TEMP -gt 95 ]
then
notify-send --urgency critical "High Temp" "$TEMP"°C
else
:
fi