eww
This commit is contained in:
14
home-manager/progs/eww/config/scripts/clipboardInfo.zsh
Executable file
14
home-manager/progs/eww/config/scripts/clipboardInfo.zsh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env zsh
|
||||
if wl-paste | iconv -f UTF8 > /dev/null; then
|
||||
case $1 in
|
||||
head)
|
||||
wl-paste 2> /dev/null |
|
||||
head -1 |
|
||||
awk 'length > 20{$0 = substr($0, 1, 17) "..."} {printf "%s", $0}' |
|
||||
sed 's/^[[:space:]]*//g'
|
||||
echo "";;
|
||||
all)
|
||||
wl-paste 2> /dev/null
|
||||
true;;
|
||||
esac
|
||||
fi
|
||||
Reference in New Issue
Block a user