mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
Useless cat
parent
90022eb6d1
commit
bd1bfe582f
2
Home.md
2
Home.md
|
@ -92,7 +92,7 @@ However, when reloading sway while using clamshell mode, the displays may reset
|
|||
|
||||
```
|
||||
#!/usr/bin/bash
|
||||
if cat /proc/acpi/button/lid/LID/state | grep -q open; then
|
||||
if grep -q open /proc/acpi/button/lid/LID/state; then
|
||||
swaymsg output <LAPTOP> enable
|
||||
else
|
||||
swaymsg output <LAPTOP> disable
|
||||
|
|
Loading…
Reference in a new issue