Skip to content

Commit

Permalink
feat: signallify wl-paste watch
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Oct 23, 2021
1 parent cd83088 commit 876e6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exec {
'[ -x "$(command -v foot)" ] && /usr/share/sway/scripts/foot.sh --server'
'[ -x "$(command -v nwg-wrapper)" ] && [ -f $HOME/.config/nwg-wrapper/help.sh ] && /usr/share/sway/scripts/help.sh --restore'
'[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && (wl-paste --watch cliphist store; rm -f ~/.cache/cliphist/db)'
'[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && (wl-paste --watch pkill -RTMIN+9 waybar; rm -f ~/.cache/cliphist/db)'
}
exec_always {
'[ -x "$(command -v spice-vdagent)" ] && spice-vdagent'
Expand Down
4 changes: 2 additions & 2 deletions community/sway/usr/share/sway/templates/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@
},
"custom/clipboard": {
"format": "",
"interval": "once",
"return-type": "json",
"on-click": "swaymsg -q exec '$clipboard'",
"on-click": "swaymsg -q exec '$clipboard'; pkill -RTMIN+9 waybar",
"on-click-right": "rm -f ~/.cache/cliphist/db; pkill -RTMIN+9 waybar",
"exec": "printf '{\"tooltip\":\"%s\"}' $(cliphist list | wc -l)",
"exec-if": "[ -x \"$(command -v cliphist)\" ] && [ $(cliphist list | wc -l) -gt 0 ]",
"interval": 60,
"signal": 9
},
"custom/weather": {
Expand Down

0 comments on commit 876e6ce

Please sign in to comment.