From fbf475fa8280e6b107eefddf1d43838854d366aa Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 12 Jun 2025 15:47:42 +0200 Subject: [PATCH] adds tofi clipboard management with cliphist --- .config/hypr/config/autostart.conf | 3 ++- .config/hypr/config/colors.conf | 38 +++++++++++++++--------------- .config/hypr/config/keybinds.conf | 2 ++ .config/tofi/config | 2 +- 4 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.config/hypr/config/autostart.conf b/.config/hypr/config/autostart.conf index d8f8fe8..9224895 100644 --- a/.config/hypr/config/autostart.conf +++ b/.config/hypr/config/autostart.conf @@ -26,4 +26,5 @@ exec-once = $idlehandler # Clipboard fix # https://github.com/hyprwm/Hyprland/issues/2319#issuecomment-2409983376 -exec-once = wl-paste -t text -w xclip -selection clipboard +exec-once = wl-paste -t text -w xclip -selection clipboard & +exec-once = wl-paste --watch cliphist store & diff --git a/.config/hypr/config/colors.conf b/.config/hypr/config/colors.conf index 7abba30..43f5a30 100644 --- a/.config/hypr/config/colors.conf +++ b/.config/hypr/config/colors.conf @@ -1,19 +1,19 @@ -$wallpaper = /usr/share/wallpapers/wallpaper/spaceship-start.jpg -$background = rgb(1C1E22) -$foreground = rgb(FAF5F2) -$color0 = rgb(424449) -$color1 = rgb(0A1F33) -$color2 = rgb(5F5352) -$color3 = rgb(486552) -$color4 = rgb(B87463) -$color5 = rgb(8D9E7F) -$color6 = rgb(F1E3DA) -$color7 = rgb(F0E9E4) -$color8 = rgb(A8A3A0) -$color9 = rgb(0A1F33) -$color10 = rgb(5F5352) -$color11 = rgb(486552) -$color12 = rgb(B87463) -$color13 = rgb(8D9E7F) -$color14 = rgb(F1E3DA) -$color15 = rgb(F0E9E4) \ No newline at end of file +$wallpaper = /usr/share/wallpapers/downloaded/pexels-lucadross-4129849.jpg +$background = rgb(111311) +$foreground = rgb(F6DBD0) +$color0 = rgb(3B3E3B) +$color1 = rgb(616371) +$color2 = rgb(9D7552) +$color3 = rgb(7D7E82) +$color4 = rgb(BE6B2C) +$color5 = rgb(868A94) +$color6 = rgb(E69879) +$color7 = rgb(EAC3B4) +$color8 = rgb(A4897E) +$color9 = rgb(616371) +$color10 = rgb(9D7552) +$color11 = rgb(7D7E82) +$color12 = rgb(BE6B2C) +$color13 = rgb(868A94) +$color14 = rgb(E69879) +$color15 = rgb(EAC3B4) \ No newline at end of file diff --git a/.config/hypr/config/keybinds.conf b/.config/hypr/config/keybinds.conf index 7e87939..7e7c97a 100644 --- a/.config/hypr/config/keybinds.conf +++ b/.config/hypr/config/keybinds.conf @@ -153,6 +153,8 @@ bind = $shiftMod, PRINT, exec, hyprshot -m region # ======= Additional Settings ======= +bind = $mainMod, c, exec, cliphist list | tofi --prompt-text="clip:" | cliphist decode | wl-copy + # https://wiki.hyprland.org/Configuring/Binds binds { allow_workspace_cycles = 1 diff --git a/.config/tofi/config b/.config/tofi/config index a199f9b..142cd00 100644 --- a/.config/tofi/config +++ b/.config/tofi/config @@ -3,7 +3,7 @@ font-size = 32 outline-width = 0 border-width = 0 -padding-left = 34% +padding-left = 25% padding-top = 22% padding-right = 0 padding-bottom = 0