Gitiles
Code Review
Sign In
git.clicks.codes
/
Minion
/
NixFiles
/
71918f08c198059ba36affd8a1fced08ce4b050e
/
.
/
src
/
apps
/
personal
/
sway
/
toggle-backlight.sh
blob: 22ab2c18a6dd7c7b457670651861c6c10b5c2251 [
file
] [
log
] [
blame
]
Skyler Grey
5b96058
2022-05-24 16:36:47 +0100
[
diff
] [
blame
]
1
#!/bin/sh
2
read lcd
<
/
tmp
/
lcd
3
4
if
[
"$lcd"
-
eq
"0"
];
then
5
swaymsg
"output * dpms on"
6
echo
1
>
/
tmp
/
lcd
7
else
8
swaymsg
"output * dpms off"
9
echo
0
>
/
tmp
/
lcd
10
fi