tenseleyflow/ndotfiles / c4e1acc

Browse files

clipboard history via wofi

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
c4e1acccff48735efa23a5e5b1f889743a682ff3
Parents
94bba4c
Tree
db2fd61

3 changed files

StatusFile+-
M hypr/config/autostart.conf 4 0
M hypr/config/keybinds.conf 1 0
A service/cliphist.service 12 0
hypr/config/autostart.confmodified
@@ -24,3 +24,7 @@ exec-once = /usr/bin/lxqt-policykit &
2424
 
2525
 # ## Idle configuration
2626
 exec-once = $idlehandler
27
+
28
+# Clipboard History (Wayland + primary selection)
29
+exec-once = bash -lc "/usr/bin/wl-paste --watch /usr/bin/cliphist store &"
30
+exec-once = bash -lc "/usr/bin/wl-paste --primary --watch /usr/bin/cliphist store &"
hypr/config/keybinds.confmodified
@@ -15,6 +15,7 @@ bindd = $mainMod, RETURN, Opens your preferred terminal emulator ($terminal),
1515
 bindd = $mainMod SHIFT, RETURN, Open terminal & attach/create tmux:main, 			  exec, $terminal -e bash -lc 'tmux new -As main'
1616
 bindd = $mainMod, E, 		Opens your preferred filemanager ($filemanager), 		  exec, $filemanager
1717
 bindd = $mainMod, V, 		Switches current window between floating and tiling mode, togglefloating,
18
+bindd = $mainMod SHIFT, V, 	Open Clipboard manager,									  exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
1819
 bindd = $mainMod SHIFT, M, 	Exits Hyprland by terminating the user sessions, 		  exec, loginctl terminate-user ""
1920
 
2021
 bindd = $mainMod, X, 	Toggles flow (disables flashy animations), 	exec, ~/.config/hypr/scripts/toggle-flow.sh
service/cliphist.serviceadded
@@ -0,0 +1,12 @@
1
+[Unit]
2
+Description=Cliphist watchers (Wayland clipboard + primary selection)
3
+After=graphical-session.target
4
+
5
+[Service]
6
+Type=simple
7
+# Start the regular watcher in the background, then keep the primary watcher in the foreground
8
+ExecStart=/bin/sh -lc '/usr/bin/wl-paste --watch /usr/bin/cliphist store & exec /usr/bin/wl-paste --primary --watch /usr/bin/cliphist store'
9
+Restart=on-failure
10
+
11
+[Install]
12
+WantedBy=default.target