diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-05-01 15:06:32 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 15:16:52 +0300 |
| commit | 041e7bdb372cf4875e4771255519af29e2f4f161 (patch) | |
| tree | 98c9a56c482353c0b1b0c9708add3bdfaa5820c3 /home-manager | |
| parent | 1382d9b8d16b3655a212315d7b823d73520f6d39 (diff) | |
fix(hyprland): make rules more general
Diffstat (limited to 'home-manager')
| -rwxr-xr-x[-rw-r--r--] | home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh | 2 | ||||
| -rw-r--r-- | home-manager/homeModules/hyprland.nix | 19 |
2 files changed, 11 insertions, 10 deletions
diff --git a/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh b/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh index a79ec90..7edd5f2 100644..100755 --- a/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh +++ b/home-manager/homeModules/attachments/hypr-scripts/bitwarden-float.sh @@ -2,7 +2,7 @@ windowtitlev2() { IFS=',' read -r -a args <<< "$1" args[0]="${args[0]#*>>}" - if [[ ${args[1]} == "Extension: (Bitwarden Password Manager) - — Mozilla Firefox" ]]; then + 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]}; \ diff --git a/home-manager/homeModules/hyprland.nix b/home-manager/homeModules/hyprland.nix index 01d0d58..b497773 100644 --- a/home-manager/homeModules/hyprland.nix +++ b/home-manager/homeModules/hyprland.nix @@ -25,6 +25,7 @@ kdePackages.xwaylandvideobridge wl-clipboard libnotify + socat ]; home.sessionVariables.XDG_CURRENT_DESKTOP = "Hyprland"; @@ -40,6 +41,7 @@ "emacs --daemon" "swww-daemon" "swww img ${config.wallpaper}" + "$scripts/bitwarden-float.sh" ]; monitor = ",preferred,auto,1,mirror,eDP-1"; @@ -93,12 +95,13 @@ "float, title:^(Firrfox — Sharing Indicator)$" "noborder, title:^(Firefox — Sharing Indicator)$" "rounding 0, title:^(Firefox — Sharing Indicator)$" - "float, class:^(firefox)$, title:^(Picture-in-Picture)$" - "pin, class:^(firefox)$, title:^(Picture-in-Picture)$" - "move 100%-w-20 100%-w-20, class:^(firefox)$, title:^(Picture-in-Picture)$" + "float, title:^(Picture-in-Picture)$" + "pin, title:^(Picture-in-Picture)$" + "move 100%-w-20 100%-w-20, title:^(Picture-in-Picture)$" + "noinitialfocus, title:^(Picture-in-Picture)$" "float, title:^(Save File)$" "pin, title:^(Save File)$" - "pin, class:^(dragon)$" + "pin, class:^(dragon-drop)$" "float, title:^(Torrent Options)$" "pin, title:^(Torrent Options)$" "opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$" @@ -108,8 +111,6 @@ "noblur,class:^(xwaylandvideobridge)$" ]; - # layerrule = "blur, waybar"; - bind = [ "$mainMod, V, togglefloating, " "$mainMod, P, pseudo," @@ -122,12 +123,12 @@ # Apps "$mainMod, D, exec, killall rofi || rofi -show-icons -show drun" "$mainMod, Q, exec, $terminal" - "$mainMod, B, exec, firefox" + "$mainMod, B, exec, zen-beta" "$mainMod, T, exec, telegram-desktop" "$mainMod, E, exec, emacsclient -c -a emacs" "$mainMod CONTROL, E, exec, emacs" "$mainMod SHIFT, Esc, exec, swww img ${config.wallpaper}" - ",XF86HangupPhone, exec, bash $scripts/toggle_vpn.sh" + ",XF86HangupPhone, exec, bash $scripts/toggle-vpn.sh" # Screenshooting ", Print, exec, grimblast save screen" @@ -142,7 +143,7 @@ ",0x1008FF13,exec,wpctl set-volume @DEFAULT_SINK@ 5%+" ",0x1008FF12,exec,wpctl set-mute @DEFAULT_SINK@ toggle" ",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle" - ",XF86PickupPhone, exec, python3 $scripts/switch_sink.py" + ",XF86PickupPhone, exec, python3 $scripts/switch-sink.py" # Brightness ",XF86MonBrightnessUp,exec,brightnessctl s +5%" |
