Replace custom clipboard manager with nwg-clipman
This commit is contained in:
parent
f44092cc90
commit
53151b82fd
3 changed files with 3 additions and 10 deletions
|
@ -40,10 +40,10 @@ trap session_cleanup EXIT INT TERM
|
||||||
riverctl spawn "/usr/bin/mate-polkit"
|
riverctl spawn "/usr/bin/mate-polkit"
|
||||||
|
|
||||||
# Wallpaper
|
# Wallpaper
|
||||||
riverctl spawn $HOME/.azotebg
|
riverctl spawn "$HOME"/.azotebg
|
||||||
|
|
||||||
# Include keybindings
|
# Include keybindings
|
||||||
riverctl spawn $HOME/.config/river/keybindings.sh
|
riverctl spawn "$HOME"/.config/river/keybindings.sh
|
||||||
|
|
||||||
# Keybindings help overlay
|
# Keybindings help overlay
|
||||||
riverctl spawn /usr/share/river/scripts/help.sh & disown
|
riverctl spawn /usr/share/river/scripts/help.sh & disown
|
||||||
|
|
|
@ -97,8 +97,7 @@
|
||||||
"format": "",
|
"format": "",
|
||||||
"interval": "once",
|
"interval": "once",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"on-click": "/usr/share/river/scripts/clipboard.sh --list; pkill -RTMIN+9 waybar",
|
"on-click": "nwg-clipman; pkill -RTMIN+9 waybar",
|
||||||
"on-click-right": "/usr/share/river/scripts/clipboard.sh --del; pkill -RTMIN+9 waybar",
|
|
||||||
"on-click-middle": "rm -f ~/.cache/cliphist/db; 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": "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 ]",
|
"exec-if": "[ -x \"$(command -v cliphist)\" ] && [ $(cliphist list | wc -l) -gt 0 ]",
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Reference in a new issue