Updated Home (markdown)

Mohammed Anas 2023-07-02 11:37:47 +01:00
parent 734904f6fd
commit b26609856e

@ -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