diff --git a/home/lilith/hyprland/default.nix b/home/lilith/hyprland/default.nix index aef85483..8881edb1 100644 --- a/home/lilith/hyprland/default.nix +++ b/home/lilith/hyprland/default.nix @@ -35,6 +35,7 @@ exec-once = [ "hyprlock" "ags" + "clipse -listen" ]; exec = [ "[workspace special:keepass silent] keepassxc" ]; diff --git a/home/lilith/hyprland/hyprgrass.nix b/home/lilith/hyprland/hyprgrass.nix index 819c1ae9..926a3d93 100644 --- a/home/lilith/hyprland/hyprgrass.nix +++ b/home/lilith/hyprland/hyprgrass.nix @@ -14,18 +14,30 @@ sensitivity = 4.0; workspace_swipe = true; workspace_swipe_fingers = 3; - workspace_swipe_cancel_ratio = 0.15; + workspace_swipe_cancel_ratio = 0.9; long_press_delay = 400; resize_on_border_long_press = true; edge_margin = 30; + experimental.send_cancel = true; + hyprgrass-bind = [ - ", edge:r:u, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" - ", edge:r:d, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-" + # weird hack, because there is no explicit way to only show or hide special workplaces + ", swipe:3:u, togglespecialworkspace, _tmp" ", swipe:3:u, togglespecialworkspace, keepass" ", swipe:3:u, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi" - ", longpress:3, killactive" + + ", swipe:3:d, togglespecialworkspace, _tmp" + ", swipe:3:d, togglespecialworkspace, _tmp" + + ", swipe:3:ru, sendshortcut, CONTROL, C," + ", swipe:3:rd, sendshortcut, CONTROL, V," + + ", tap:5, killactive" + + ", longpress:2, resizewindow" + ", longpress:2, movewindow" ]; }; }; diff --git a/home/lilith/hyprland/keys.nix b/home/lilith/hyprland/keys.nix index 24ade55b..48288cc9 100644 --- a/home/lilith/hyprland/keys.nix +++ b/home/lilith/hyprland/keys.nix @@ -53,6 +53,8 @@ "SUPER, I, togglespecialworkspace, magic" "SUPER SHIFT, I, movetoworkspace, special:magic" + + "SUPER, V, exec, alacritty --class clipse -e 'clipse'" ]; bindm = [ diff --git a/home/lilith/hyprland/settings.nix b/home/lilith/hyprland/settings.nix index 9c6726f6..4155f4b6 100644 --- a/home/lilith/hyprland/settings.nix +++ b/home/lilith/hyprland/settings.nix @@ -5,13 +5,18 @@ "workspace special:keepass,class:org.keepassxc.KeePassXC,title:^(.*)(KeePassXC)(.*)$" # show database unlock prompt on all workspaces - "unset,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC," + "workspace unset silent,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC," "center,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC," "pin,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC," # show inline images with ueberzugpp "noanim, class:^ueberzugpp_(.*)$" + # clipboard manager clipse + "float,class:(clipse)" + "size 50% 50%,class:(clipse)" + "center, class:(clipse)" + # path of exile / poetrade hacks "tag +poe, class:^(steam_app_238960)$" "tag +poe, title:^(Path of Exile)$" diff --git a/home/lilith/packages.nix b/home/lilith/packages.nix index 3698ee3a..31477faf 100644 --- a/home/lilith/packages.nix +++ b/home/lilith/packages.nix @@ -16,6 +16,7 @@ networkmanagerapplet nh wl-clipboard + clipse xdg-utils hyprshot