Initial backup
This commit is contained in:
10
.xmonad/scripts/getdGPUStatus.sh
Executable file
10
.xmonad/scripts/getdGPUStatus.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
STATE="$(cat /proc/acpi/bbswitch | grep -o "ON\|OFF")"
|
||||
if [ "$STATE" == "ON" ];
|
||||
then
|
||||
LOAD="$(~/.xmonad/scripts/getdGPULoad.py)"
|
||||
echo "${STATE} (${LOAD}%)"
|
||||
else
|
||||
echo "OFF"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user