eww: remove clipboard
This commit is contained in:
parent
8cd7d14a2c
commit
183d351cea
@ -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
|
|
||||||
@ -17,7 +17,6 @@
|
|||||||
(box :space-evenly false :halign 'end' :class 'padded'
|
(box :space-evenly false :halign 'end' :class 'padded'
|
||||||
(brightness-ctl)
|
(brightness-ctl)
|
||||||
(brightness-ctl-opener)
|
(brightness-ctl-opener)
|
||||||
; (clipboard)
|
|
||||||
(volume)
|
(volume)
|
||||||
(battery)
|
(battery)
|
||||||
(bluetooth)
|
(bluetooth)
|
||||||
@ -62,11 +61,6 @@
|
|||||||
:onclick `${EWW_CMD} update brightnessctl-open=${!brightnessctl-open}`
|
: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 []
|
(defwidget wifi []
|
||||||
(eventbox
|
(eventbox
|
||||||
:class "button ${wifi-strength.colour}"
|
:class "button ${wifi-strength.colour}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user