From e573b3020c032400eed60b649a2cbf55266e6bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:03:25 +0200 Subject: Add current configurations from old repository --- config/i3blocks/scripts/bbswitch | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 config/i3blocks/scripts/bbswitch (limited to 'config/i3blocks/scripts/bbswitch') diff --git a/config/i3blocks/scripts/bbswitch b/config/i3blocks/scripts/bbswitch new file mode 100755 index 0000000..a6ad24c --- /dev/null +++ b/config/i3blocks/scripts/bbswitch @@ -0,0 +1,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 -- cgit v1.2.3