[bin] Rework thinkpad-dock again to try and show proper notifications
This commit is contained in:
parent
ed8bc1e411
commit
6d2d1de8c2
|
@ -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\"'
|
||||
|
|
Loading…
Reference in New Issue