Compare commits
3 Commits
8cd7d14a2c
...
1cf86b8bd0
| Author | SHA1 | Date | |
|---|---|---|---|
|
1cf86b8bd0
|
|||
|
0a53c6933e
|
|||
|
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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
niri msg workspaces | rg "^ \*" | sed -E 's/[[:space:]]+\* //g'
|
|
||||||
3
home-manager/progs/eww/config/scripts/currentWorkspace.sh
Executable file
3
home-manager/progs/eww/config/scripts/currentWorkspace.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
niri msg --json workspaces | jq -r '.[] | select(.is_focused == true) | .["id"]'
|
||||||
@@ -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 '"'
|
||||||
|
|||||||
@@ -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`)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user