From 6d2d1de8c24582f9868c67386b9cd67a9748c439 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Tue, 6 Dec 2022 11:47:01 +0100 Subject: [PATCH] [bin] Rework thinkpad-dock again to try and show proper notifications --- bin/executable_thinkpad-dock | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/executable_thinkpad-dock b/bin/executable_thinkpad-dock index a75355b..619d1ad 100644 --- a/bin/executable_thinkpad-dock +++ b/bin/executable_thinkpad-dock @@ -24,7 +24,7 @@ export ICON sleep 0.5 # Home and at my main desk -if swaymsg -t get_inputs | grep "ErgoDox EZ"; then +if (swaymsg -t get_inputs | grep "ErgoDox EZ"); then doas /run/current-system/sw/bin/networkctl down wifi doas /run/current-system/sw/bin/networkctl reconfigure ethernet @@ -49,5 +49,4 @@ else fi; TITLE="${ACTION} ${NAME}" -export TITLE -swaymsg exec -- sh -c "/home/bascht/.nix-profile/bin/notify-send -t 3000 --icon=\"${ICON}\" \"Docking event\" \"$TITLE\"" +swaymsg exec -- sh -c '/home/bascht/.nix-profile/bin/notify-send -t 3000 --icon=\"${ICON}\" \"Docking event\" \"$TITLE\"'