aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh')
-rwxr-xr-xhome-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh b/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh
deleted file mode 100755
index 7edd5f2..0000000
--- a/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-windowtitlev2() {
- IFS=',' read -r -a args <<< "$1"
- args[0]="${args[0]#*>>}"
-
- if [[ ${args[1]} =~ "Extension: (Bitwarden Password Manager)" ]]; then
- hyprctl --batch "\
- dispatch setfloating address:0x${args[0]}; \
- dispatch resizewindowpixel exact 20% 50%, address:0x${args[0]}; \
- dispatch centerwindow; \
- "
- fi
-}
-
-handle() {
- case $1 in
- windowtitlev2\>*) windowtitlev2 "$1" ;;
- esac
-}
-
-socat -U - UNIX-CONNECT:"/$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" \
- | while read -r line; do handle "$line"; done