clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit f9ab57522de4e2f859a9d3a68493efe0df94d171
parent da1ccb7c709c96fecd5a0e56ada445a5fbebadcf
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 23 Mar 2020 17:50:43 +0000

clipmenud: Remove timeout_cmd, we already rely on coreutils for truncate

Diffstat:
Mclipmenud | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -23,14 +23,7 @@ session_lock_file=$cache_dir/session_lock lock_timeout=2 has_xdotool=0 -if command -v timeout >/dev/null 2>&1; then - timeout_cmd=(timeout 1) -else - echo "WARN: No timeout binary. Continuing without any timeout on xsel." >&2 - timeout_cmd=() -fi - -_xsel() { "${timeout_cmd[@]}" xsel --logfile /dev/null "$@"; } +_xsel() { timeout 1 xsel --logfile /dev/null "$@"; } error() { printf 'ERROR: %s\n' "${1?}" >&2; } info() { printf 'INFO: %s\n' "${1?}"; }