mirror of https://github.com/sgoudham/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
287 B
Bash
16 lines
287 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
OFF=0
|
||
|
ON=2
|
||
|
PATH=/sys/devices/platform/dell-laptop/leds/dell::kbd_backlight/brightness
|
||
|
PREVIOUS_SETTING=$(< $PATH)
|
||
|
|
||
|
if [[ $PREVIOUS_SETTING -eq $OFF ]]
|
||
|
then
|
||
|
echo $ON > $PATH
|
||
|
echo "Keyboard Backlighting: ON"
|
||
|
else
|
||
|
echo $OFF > $PATH
|
||
|
echo "Keyboard Backlighting: OFF"
|
||
|
fi
|