statusbar-scripts/sb-optimus
2023-08-23 19:45:38 +02:00

17 lines
277 B
Bash
Executable File

#!/bin/sh
mode=$(envycontrol -q | awk '{ print $5 }')
nv_screen="eDP-1-0"
screen="eDP"
. sb-theme
if [ "$mode" = "nvidia" ]; then
display "DGPU" $1
elif [ "$mode" = "integrated" ]; then
display "IGPU" $1
elif [ "$mode" = "hybrid" ]; then
display "HYBRID" $1
fi