aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/bbswitch
blob: a6ad24c55906e299187967eef5556a9bc5ccfb7e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

if [ -e /proc/acpi/bbswitch ]; then
	if [ -n "`cat /proc/acpi/bbswitch | grep ON`" ]; then
		echo OPTIMUS
		echo OP
		echo '#ffff00'
	fi
fi