Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/system-nvidia-bbswitch/system-nvidia-bbswitch.sh

8 lines
103 B
Bash

#!/bin/sh
if grep -q ON /proc/acpi/bbswitch; then
echo "# Active"
else
echo "# Inactive"
fi