[bin] Rework thinkpad-dock again to try and show proper notifications

This commit is contained in:
Sebastian Schulze 2022-12-06 11:47:01 +01:00
parent ed8bc1e411
commit 6d2d1de8c2
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 2 additions and 3 deletions

View File

@ -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\"'