From b26609856e7eb799e645b02ee31d35ed2875ea89 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Sun, 2 Jul 2023 11:37:47 +0100 Subject: [PATCH] Updated Home (markdown) --- Home.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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