mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 15:31:28 +00:00
Updated Home (markdown)
parent
734904f6fd
commit
b26609856e
6
Home.md
6
Home.md
|
@ -28,7 +28,7 @@ You can start sway automatically without a login manager, for example, by adding
|
|||
```
|
||||
|
||||
For Fish, create the file ``~/.config/fish/conf.d/sway.fish``
|
||||
```bash
|
||||
```fish
|
||||
# If running from tty1 start sway
|
||||
set TTY1 (tty)
|
||||
[ "$TTY1" = "/dev/tty1" ] && exec sway
|
||||
|
@ -95,8 +95,8 @@ bindswitch --reload --locked lid:off output $laptop enable
|
|||
|
||||
However, when reloading sway while using clamshell mode, the displays may reset (i.e. both displays will be enabled). To stop this, save this bash script:
|
||||
|
||||
```
|
||||
#!/usr/bin/bash
|
||||
```sh
|
||||
#!/bin/sh
|
||||
if grep -q open /proc/acpi/button/lid/LID/state; then
|
||||
swaymsg output <LAPTOP> enable
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue