diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-10 22:57:02 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-10 22:57:02 +0200 |
| commit | 3cd9138c9d8fb9be248c75330cca9da47f4d2e8a (patch) | |
| tree | b3b677a9c1a474589f45d20953028a987fa73b80 /clipwipe | |
| parent | 83f7fe4b8402bab171d110703a1b1115efbc9b28 (diff) | |
| download | bin-3cd9138c9d8fb9be248c75330cca9da47f4d2e8a.tar.gz bin-3cd9138c9d8fb9be248c75330cca9da47f4d2e8a.zip | |
added a whole bunch of scripts
Diffstat (limited to 'clipwipe')
| -rwxr-xr-x | clipwipe | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clipwipe b/clipwipe new file mode 100755 index 0000000..88cb88c --- /dev/null +++ b/clipwipe @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Wipe X selections and clipmenud history in one shot. +set -eu + +xsel -bc 2>/dev/null || true +xsel -pc 2>/dev/null || true + +# Full reset beats clipdel due to upstream tmpdir bug (#133) +if pgrep -x clipmenud >/dev/null; then + pkill clipmenud + sleep 0.2 +fi +rm -rf "/run/user/$(id -u)/clipmenu."* +setsid clipmenud >/dev/null 2>&1 & +disown 2>/dev/null || true + +command -v notify-send >/dev/null 2>&1 && notify-send -u low "clipwipe" "Clipboard and history cleared" |
