diff --git a/Home.md b/Home.md index 15391a8..732aa84 100644 --- a/Home.md +++ b/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 enable else