Fix some more scripts
This commit is contained in:
parent
1e53e4cf91
commit
982cf42fc5
2 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/env sh
|
#!/bin/env zsh
|
||||||
|
|
||||||
volume() {
|
volume() {
|
||||||
pactl get-sink-volume @DEFAULT_SINK@ | rg 'Volume: front-left:\s+\d+\s+/\s+(\d+)%' -or '$1' --color=never
|
pactl get-sink-volume @DEFAULT_SINK@ | rg 'Volume: front-left:\s+\d+\s+/\s+(\d+)%' -or '$1' --color=never
|
||||||
|
@ -35,22 +35,22 @@ get_ids() {
|
||||||
|
|
||||||
audio_sink() {
|
audio_sink() {
|
||||||
case "$(pactl get-default-sink)" in
|
case "$(pactl get-default-sink)" in
|
||||||
"$HEADPHONES") echo $HEADPHONES_ICON
|
"$HEADPHONES") echo "$HEADPHONES_ICON"
|
||||||
;;
|
;;
|
||||||
"$SPEAKERS") echo $SPEAKERS_ICON
|
"$SPEAKERS") echo "$SPEAKERS_ICON"
|
||||||
;;
|
;;
|
||||||
*) echo $UNKNOWN_ICON
|
*) echo "$UNKNOWN_ICON"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_source() {
|
audio_source() {
|
||||||
case "$(pactl get-default-source)" in
|
case "$(pactl get-default-source)" in
|
||||||
"$HEADPHONE_MIC") echo $HEADPHONE_MIC_ICON
|
"$HEADPHONE_MIC") echo "$HEADPHONE_MIC_ICON"
|
||||||
;;
|
;;
|
||||||
"$BLUE_MIC") echo $BLUE_MIC_ICON
|
"$BLUE_MIC") echo "$BLUE_MIC_ICON"
|
||||||
;;
|
;;
|
||||||
*) echo $UNKNOWN_ICON
|
*) echo "$UNKNOWN_ICON"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/env sh
|
#!/bin/env sh
|
||||||
|
|
||||||
# From: https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#eww
|
# Modified from: https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#eww
|
||||||
|
|
||||||
spaces (){
|
spaces (){
|
||||||
ACTIVE_ID="$(hyprctl activeworkspace -j | jq -Mc '.id')"
|
ACTIVE_ID="$(hyprctl activeworkspace -j | jq -Mc '.id')"
|
||||||
|
@ -10,6 +10,6 @@ spaces (){
|
||||||
}
|
}
|
||||||
|
|
||||||
spaces
|
spaces
|
||||||
socat -u UNIX-CONNECT:"$XDG_RUNTIME_DIR"/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r line; do
|
socat -u UNIX-CONNECT:"$XDG_RUNTIME_DIR"/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r _line; do
|
||||||
spaces
|
spaces
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue