mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 01:11: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``
|
For Fish, create the file ``~/.config/fish/conf.d/sway.fish``
|
||||||
```bash
|
```fish
|
||||||
# If running from tty1 start sway
|
# If running from tty1 start sway
|
||||||
set TTY1 (tty)
|
set TTY1 (tty)
|
||||||
[ "$TTY1" = "/dev/tty1" ] && exec sway
|
[ "$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:
|
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:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
#!/usr/bin/bash
|
#!/bin/sh
|
||||||
if grep -q open /proc/acpi/button/lid/LID/state; then
|
if grep -q open /proc/acpi/button/lid/LID/state; then
|
||||||
swaymsg output <LAPTOP> enable
|
swaymsg output <LAPTOP> enable
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue