From b139fa9449de886748db2c53e91ba68421d5038e Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 Dec 2024 15:34:13 +0000 Subject: [PATCH 1/3] Remove capitalisation on power menu --- config/home/scripts/system/power.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/home/scripts/system/power.sh b/config/home/scripts/system/power.sh index 53e4d57..65121b5 100644 --- a/config/home/scripts/system/power.sh +++ b/config/home/scripts/system/power.sh @@ -1,18 +1,18 @@ #!/bin/bash -option=$(printf "Sleep\nLogout\nShutdown\nRestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18') +option=$(printf "sleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18') -if [ "$option" = "Sleep" ]; +if [ "$option" = "sleep" ]; then i3lock-fancy -g -t "System Locked" -f Hack-Regular systemctl suspend -elif [ "$option" = "Logout" ]; +elif [ "$option" = "logout" ]; then i3-msg exit -elif [ "$option" = "Shutdown" ]; +elif [ "$option" = "shutdown" ]; then poweroff -elif [ "$option" = "Restart" ]; +elif [ "$option" = "restart" ]; then reboot fi From b6337aaa0e718fed250fcd151311d882cc67a471 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 Dec 2024 15:35:50 +0000 Subject: [PATCH 2/3] Add rebuild alias --- system/shared.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/system/shared.nix b/system/shared.nix index 5105a21..c896fb0 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -115,6 +115,7 @@ gco = "git checkout"; s = "swallow"; + nrb = "sudo nixos-rebuild switch --flake /home/vylpes/flake#${HOST}"; }; }; From 10f6beba2a7bdd3ec4494eeb532cd919229cafb0 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 Dec 2024 15:36:25 +0000 Subject: [PATCH 3/3] Fix typo --- system/shared.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/shared.nix b/system/shared.nix index c896fb0..85c4655 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -115,7 +115,7 @@ gco = "git checkout"; s = "swallow"; - nrb = "sudo nixos-rebuild switch --flake /home/vylpes/flake#${HOST}"; + nrb = "sudo nixos-rebuild switch --flake /home/vylpes/flake#\${HOST}"; }; };