commit 280a77027c30c8b1be8b8d48d5443a6b74f32dfa parent a87cb198662aa75a55231b30c99e6220542e38f2 Author: Riaz <riaz@riazj.com> Date: Sun, 3 Aug 2025 17:39:55 -0700 Switch from clipmenu to custom shell script Diffstat:
M | .config/xinitrc | | | 4 | ++-- |
A | .local/bin/clip | | | 7 | +++++++ |
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.config/xinitrc b/.config/xinitrc @@ -1,3 +1,3 @@ while status; do sleep 1m; done | lemonbar -d -F '#ccc' & -setxkbmap -option 'compose:menu' -option 'caps:swapescape' & sxhkd & -winwatch & xhidecursor & clipmenud +setxkbmap -option 'compose:menu' -option 'caps:swapescape' & +sxhkd & xhidecursor & winwatch diff --git a/.local/bin/clip b/.local/bin/clip @@ -0,0 +1,7 @@ +#!/bin/sh -e + +CLIPS="$XDG_RUNTIME_DIR/clip" +clip="$(dmenu -i -l 10 < "$CLIPS" | tr '\034' '\n')" +[ -z "$clip" ] && exit 1 + +printf "%s" "$clip" | xsel -b