Replace custom clipboard manager with nwg-clipman

This commit is contained in:
Aleksey Samoilov 2025-06-04 10:30:56 +04:00
parent f44092cc90
commit 53151b82fd
3 changed files with 3 additions and 10 deletions

View file

@ -40,10 +40,10 @@ trap session_cleanup EXIT INT TERM
riverctl spawn "/usr/bin/mate-polkit"
# Wallpaper
riverctl spawn $HOME/.azotebg
riverctl spawn "$HOME"/.azotebg
# Include keybindings
riverctl spawn $HOME/.config/river/keybindings.sh
riverctl spawn "$HOME"/.config/river/keybindings.sh
# Keybindings help overlay
riverctl spawn /usr/share/river/scripts/help.sh & disown

View file

@ -97,8 +97,7 @@
"format": "",
"interval": "once",
"return-type": "json",
"on-click": "/usr/share/river/scripts/clipboard.sh --list; pkill -RTMIN+9 waybar",
"on-click-right": "/usr/share/river/scripts/clipboard.sh --del; pkill -RTMIN+9 waybar",
"on-click": "nwg-clipman; pkill -RTMIN+9 waybar",
"on-click-middle": "rm -f ~/.cache/cliphist/db; pkill -RTMIN+9 waybar",
"exec": "printf '{\"tooltip\":\"%s\"}' $(cliphist list | wc -l)' item(s) in the clipboard\r(Mid click to clear)'",
"exec-if": "[ -x \"$(command -v cliphist)\" ] && [ $(cliphist list | wc -l) -gt 0 ]",

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
case "$1" in
--list) cliphist list | rofi -dmenu -p "Select item to copy:" -lines 10 -width 35 | cliphist decode | wl-copy;;
--del) cliphist list | rofi -dmenu -p "Select item to delete:" -lines 10 -width 35 | cliphist delete;;
esac