eww: remove clipboard

This commit is contained in:
Simon Gardling 2025-09-17 13:00:32 -04:00
parent 8cd7d14a2c
commit 183d351cea
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 0 additions and 20 deletions

View File

@ -1,14 +0,0 @@
#!/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

View File

@ -17,7 +17,6 @@
(box :space-evenly false :halign 'end' :class 'padded'
(brightness-ctl)
(brightness-ctl-opener)
; (clipboard)
(volume)
(battery)
(bluetooth)
@ -62,11 +61,6 @@
:onclick `${EWW_CMD} update brightnessctl-open=${!brightnessctl-open}`
"󰃠")))
(defwidget clipboard []
(label :text clipboard-short :tooltip clipboard :class "clipboard"))
(defpoll clipboard :interval "5s" `scripts/clipboardInfo.zsh all`)
(defpoll clipboard-short :interval "5s" `scripts/clipboardInfo.zsh head`)
(defwidget wifi []
(eventbox
:class "button ${wifi-strength.colour}"