From 1169f914945c117daa4b1eb450b8b7a9138f92ee Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 25 Mar 2025 01:33:47 +0800 Subject: [PATCH] feat(de): add clipse as clipboard history manager --- users/modules/programs/clipse.nix | 7 +++++++ users/modules/programs/hyprland.nix | 10 ++++++++-- users/modules/sh.nix | 1 + users/modules/utils.nix | 5 ----- 4 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 users/modules/programs/clipse.nix diff --git a/users/modules/programs/clipse.nix b/users/modules/programs/clipse.nix new file mode 100644 index 0000000..149d79d --- /dev/null +++ b/users/modules/programs/clipse.nix @@ -0,0 +1,7 @@ +{ + services.clipse = { + enable = true; + historySize = 1000; + imageDisplay.type = "kitty"; + }; +} diff --git a/users/modules/programs/hyprland.nix b/users/modules/programs/hyprland.nix index ccaae82..241fccd 100644 --- a/users/modules/programs/hyprland.nix +++ b/users/modules/programs/hyprland.nix @@ -8,14 +8,17 @@ "$mainMonitor" = "desc:OOO AN-270W04K"; "$vertMonitor" = "desc:Philips Consumer Electronics Company PHL 246V5 AU11330000086"; "$mainMod" = "SUPER"; - "$terminal" = "kitty -1 -e zellij"; + "$terminal" = "kitty -1"; + "$multiplexer" = "$terminal -e zellij"; "$browser" = "firefox"; "$music" = "spotify"; "$launcher" = "fuzzel"; + "$clipboard" = "$terminal --class clipse -e clipse"; # Programs to run at startup exec-once = [ "hyprlock" + "clipse -listen" ]; env = [ @@ -50,6 +53,8 @@ windowrulev2 = [ "float, class:firefox, title:Picture-in-Picture" + "float, class:(clipse)" + "size 622 652,class:(clipse)" ]; animation = [ @@ -58,7 +63,7 @@ # Keybinds bind = [ - "$mainMod, return, exec, $terminal" + "$mainMod, return, exec, $multiplexer" "$mainMod, W, killactive" "$mainMod, O, exec, $browser" "$mainMod, Escape, exec, hyprlock" @@ -66,6 +71,7 @@ # Launch utilities "$mainMod_SHIFT, A, exec, hyprpicker -a" + "$mainMod, V, exec, $clipboard" # move between windows "$mainMod, H, cyclenext, visible" diff --git a/users/modules/sh.nix b/users/modules/sh.nix index 6574f38..d7af8bc 100644 --- a/users/modules/sh.nix +++ b/users/modules/sh.nix @@ -14,6 +14,7 @@ ./programs/zsh.nix ./programs/zoxide.nix ./programs/thefuck.nix + ./programs/clipse.nix ./scripts ]; home.shell.enableShellIntegration = true; diff --git a/users/modules/utils.nix b/users/modules/utils.nix index 43ddb1f..6c9869a 100644 --- a/users/modules/utils.nix +++ b/users/modules/utils.nix @@ -10,9 +10,4 @@ ttyper hyprpicker ]; - - services = { - # clipboard history (depends on wl-clipboard) - cliphist.enable = true; - }; }