clipboard history via wofi
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
c4e1acccff48735efa23a5e5b1f889743a682ff3- Parents
-
94bba4c - Tree
db2fd61
c4e1acc
c4e1acccff48735efa23a5e5b1f889743a682ff394bba4c
db2fd61| Status | File | + | - |
|---|---|---|---|
| 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 & | ||
| 24 | 24 | |
| 25 | 25 | # ## Idle configuration |
| 26 | 26 | 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), | ||
| 15 | 15 | bindd = $mainMod SHIFT, RETURN, Open terminal & attach/create tmux:main, exec, $terminal -e bash -lc 'tmux new -As main' |
| 16 | 16 | bindd = $mainMod, E, Opens your preferred filemanager ($filemanager), exec, $filemanager |
| 17 | 17 | 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 | |
| 18 | 19 | bindd = $mainMod SHIFT, M, Exits Hyprland by terminating the user sessions, exec, loginctl terminate-user "" |
| 19 | 20 | |
| 20 | 21 | 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 | |