Compare commits

..

3 Commits

Author SHA1 Message Date
1cf86b8bd0 eww: improve getSink.sh 2025-09-17 13:11:14 -04:00
0a53c6933e update currentWorkspace 2025-09-17 13:09:14 -04:00
183d351cea eww: remove clipboard 2025-09-17 13:01:07 -04:00
5 changed files with 5 additions and 26 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

@@ -1,3 +0,0 @@
#!/usr/bin/env fish
niri msg workspaces | rg "^ \*" | sed -E 's/[[:space:]]+\* //g'

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env fish
niri msg --json workspaces | jq -r '.[] | select(.is_focused == true) | .["id"]'

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env sh #!/usr/bin/env sh
wpctl inspect @DEFAULT_SINK@ | rg "node.description" | cut -d' ' -f6- wpctl inspect @DEFAULT_SINK@ | grep -E "^ +\* node\.description" | cut -d' ' -f6- | tr -d '"'

View File

@@ -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}"
@@ -134,5 +128,4 @@
(label :text "${volumevalue.count}" :class {volumevalue.color}))) (label :text "${volumevalue.count}" :class {volumevalue.color})))
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.fish`) (defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.sh`)