dotfiles: leviathan: arch-openbox-20231010
This commit is contained in:
14
.config/tint2/executor/temp
Executable file
14
.config/tint2/executor/temp
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
export LC_ALL=POSIX LANG=POSIX; . "${HOME}/.owl4ce_var"
|
||||
|
||||
LINUX_SYS='/sys/devices/virtual/thermal'
|
||||
|
||||
if [ -d "${LINUX_SYS}/${TEMP_DEV}" ]; then
|
||||
exec echo "$(expr $(<"${LINUX_SYS}/${TEMP_DEV}/temp") / 1000)"$'\xc2\xb0C'
|
||||
elif [ ! -d "$LINUX_SYS" ]; then
|
||||
exec echo "${LINUX_SYS} is an invalid path!"
|
||||
else
|
||||
exec echo "${TEMP_DEV} not found!"
|
||||
fi
|
||||
|
||||
exit ${?}
|
Reference in New Issue
Block a user