Add hyprland.

This commit is contained in:
Kevin Baensch 2024-02-21 21:53:58 +01:00
parent eb037456aa
commit cbcdccbdc7
Signed by: derped
GPG key ID: C0F1D326C7626543
2 changed files with 52 additions and 1 deletions

View file

@ -7,7 +7,12 @@
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
# activate window as focused to it is easy to switch to
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
# TODO: Resolve at build time.
if [ -n ''${HYPRLAND_INSTANCE_SIGNATURE} ]; then
${hyprland}/bin/hyprctl dispatch focusurgentorlast > /dev/null 2>&1;
else
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
fi
fi
exit 0;
'');