From 7b0da0f79f958fe8ec99e963f87e3d456de1b83e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 17 Jun 2025 21:37:20 +0200 Subject: [PATCH] Add clipboard persistence + manager --- config/hypr/hyprland.conf | 1 + default/hypr/bindings.conf | 3 +++ default/hypr/windows.conf | 6 ++++++ install/desktop.sh | 1 + 4 files changed, 11 insertions(+) diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 5929dcb..81e5ddf 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -5,6 +5,7 @@ source = ~/.config/hypr/hyprland-monitors.conf # Autostart necessary processes exec-once = hypridle & swaync & waybar & fcitx5 +exec-once = wl-clip-persist --clipboard regular & clipse -listen exec-once = ~/.local/share/omarchy/bin/swaybg-next exec-once = dropbox-cli start diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index f4d21aa..9bd1796 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -97,3 +97,6 @@ bindl = , XF86AudioPrev, exec, playerctl previous bind = , PRINT, exec, hyprshot -m region bind = SHIFT, PRINT, exec, hyprshot -m window bind = CTRL, PRINT, exec, hyprshot -m output + +# Clipse +bind = CTRL SUPER, V, exec, alacritty --class clipse -e clipse diff --git a/default/hypr/windows.conf b/default/hypr/windows.conf index 802b415..6c46248 100644 --- a/default/hypr/windows.conf +++ b/default/hypr/windows.conf @@ -14,4 +14,10 @@ windowrule = opacity 0.85 0.85, class:^(Spotify)$ # Fix some dragging issues with XWayland windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +# Proper background blur for wofi layerrule = blur,wofi + +# Float in the middle for clipse clipboard manager +windowrule = float, class:(clipse) +windowrule = size 622 652, class:(clipse) +windowrule = stayfocused, class:(clipse) diff --git a/install/desktop.sh b/install/desktop.sh index 67da7c9..23982c8 100644 --- a/install/desktop.sh +++ b/install/desktop.sh @@ -1,6 +1,7 @@ yay -S --noconfirm --needed \ brightnessctl playerctl wpctl pamixer wireplumber power-profiles-daemon blueberry \ fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool \ + wl-clip-persist clipse \ nautilus sushi gnome-calculator \ chromium google-chrome-dev vlc \ evince imv