aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/hypr/hyprland.lua7
-rw-r--r--.config/hypr/source/keybinds.lua2
-rw-r--r--packages/pkg_utils.sh1
3 files changed, 6 insertions, 4 deletions
diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua
index e57e527..689e6ac 100644
--- a/.config/hypr/hyprland.lua
+++ b/.config/hypr/hyprland.lua
@@ -10,13 +10,14 @@ HOME = os.getenv("HOME")
-- Theme (pywal)
-dofile(HOME .. "/.cache/wal/colors.lua")
+dofile(HOME .. "/.cache/wal/hyprland-colors.lua")
-- -----------------------------------------------------
-- Autostart
-- -----------------------------------------------------
-
hl.on("hyprland.start", function()
+ hl.exec_cmd("wl-paste --type text --watch cliphist store")
+ hl.exec_cmd("wl-paste --type image --watch cliphist store")
hl.exec_cmd("hyprpm reload -n")
hl.exec_cmd("kanshi")
hl.exec_cmd("waybar")
@@ -30,7 +31,6 @@ end)
--------------------------------------------------
-- Plugins
--------------------------------------------------
-
package.path = package.path .. ";./?.lua;./?/init.lua"
smw = require("plugins.split-monitor-workspaces")
smw.setup({
@@ -50,7 +50,6 @@ require("source.keybinds")
--------------------------------------------------
-- Window rules
--------------------------------------------------
-
hl.window_rule({
name = "suppress-maximize-events",
diff --git a/.config/hypr/source/keybinds.lua b/.config/hypr/source/keybinds.lua
index b16b299..7a1f11e 100644
--- a/.config/hypr/source/keybinds.lua
+++ b/.config/hypr/source/keybinds.lua
@@ -57,6 +57,8 @@ hl.bind(mainMod .. " + l", hl.dsp.window.resize({ x = 30, y = 0, relative = true
hl.bind(mainMod .. " + k", hl.dsp.window.resize({ x = 0, y = -30, relative = true }), { repeating = true })
hl.bind(mainMod .. " + j", hl.dsp.window.resize({ x = 0, y = 30, relative = true }), { repeating = true })
+-- Clipboard menu (cliphist)
+hl.bind(mainMod .. " + v", hl.dsp.exec_cmd("sh -c \"cliphist list | fuzzel --dmenu --with-nth 2 | cliphist decode | wl-copy\""))
-- -----------------------------------------------------
-- Workspace switching
diff --git a/packages/pkg_utils.sh b/packages/pkg_utils.sh
index a9fffbf..5ba8ce1 100644
--- a/packages/pkg_utils.sh
+++ b/packages/pkg_utils.sh
@@ -13,6 +13,7 @@ export pkg_utils=(
"brightnessctl"
"chafa"
"clang"
+ "cliphist"
"cmake"
"cpio"
"cryptsetup"