Krolyxon
Commit 7ed7c22

Branches

Refs →

aurora7ed7c22

hyprland: add cliphist as clipboard manager

Author
krolyxon
Date
2026-08-16 11:59 +0530
Parent
cf3613e
Commit
7ed7c220755162ef321e07eaf6634af27674e6e7

+6 −4

3 files changed

  1. M .config/hypr/hyprland.lua +3 −4
  2. M .config/hypr/source/keybinds.lua +2 −0
  3. M packages/pkg_utils.sh +1 −0
M .config/hypr/hyprland.lua View
@@ -10,13 +10,14 @@ HOME = os.getenv("HOME")
1010
1111
1212 -- Theme (pywal)
13−dofile(HOME .. "/.cache/wal/colors.lua")
13+dofile(HOME .. "/.cache/wal/hyprland-colors.lua")
1414
1515 -- -----------------------------------------------------
1616 -- Autostart
1717 -- -----------------------------------------------------
18−
1918 hl.on("hyprland.start", function()
19+ hl.exec_cmd("wl-paste --type text --watch cliphist store")
20+ hl.exec_cmd("wl-paste --type image --watch cliphist store")
2021 hl.exec_cmd("hyprpm reload -n")
2122 hl.exec_cmd("kanshi")
2223 hl.exec_cmd("waybar")
@@ -30,7 +31,6 @@ end)
3031 --------------------------------------------------
3132 -- Plugins
3233 --------------------------------------------------
33−
3434 package.path = package.path .. ";./?.lua;./?/init.lua"
3535 smw = require("plugins.split-monitor-workspaces")
3636 smw.setup({
@@ -50,7 +50,6 @@ require("source.keybinds")
5050 --------------------------------------------------
5151 -- Window rules
5252 --------------------------------------------------
53−
5453 hl.window_rule({
5554 name = "suppress-maximize-events",
5655
M .config/hypr/source/keybinds.lua View
@@ -57,6 +57,8 @@ hl.bind(mainMod .. " + l", hl.dsp.window.resize({ x = 30, y = 0, relative = true
5757 hl.bind(mainMod .. " + k", hl.dsp.window.resize({ x = 0, y = -30, relative = true }), { repeating = true })
5858 hl.bind(mainMod .. " + j", hl.dsp.window.resize({ x = 0, y = 30, relative = true }), { repeating = true })
5959
60+-- Clipboard menu (cliphist)
61+hl.bind(mainMod .. " + v", hl.dsp.exec_cmd("sh -c \"cliphist list | fuzzel --dmenu --with-nth 2 | cliphist decode | wl-copy\""))
6062
6163 -- -----------------------------------------------------
6264 -- Workspace switching
M packages/pkg_utils.sh View
@@ -13,6 +13,7 @@ export pkg_utils=(
1313 "brightnessctl"
1414 "chafa"
1515 "clang"
16+ "cliphist"
1617 "cmake"
1718 "cpio"
1819 "cryptsetup"