Compare commits

..

2 Commits

Author SHA1 Message Date
Trevor Vallender be47278110 Update eww volume meter to work with Pipewire 2024-03-19 17:54:14 +00:00
Trevor Vallender 475fab115d Setup for new job 2024-03-19 17:53:37 +00:00
5 changed files with 7 additions and 14 deletions

View File

@ -9,6 +9,7 @@ LC_ALL="en_GB.UTF-8"
export DIP=false
export HYPRSHOT_DIR=/home/tsv/img/screenshots
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openssl-1.0.2u/lib
# Sane defaults for history
HISTFILE=$XDG_STATE_HOME/.bash_history

View File

@ -43,7 +43,7 @@
# section for how to disable this if necessary
idle_threshold = 120
font = Monospace 14
font = Monospace 12
line_height = 0
# Possible values are:

View File

@ -7,8 +7,8 @@
(defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
(metric :label "󰕾"
:value volume
:onchange "amixer -D pulse sset Master {}%")
:value { volume * 100 }
:onchange "VOL=$(bc -l <<<\"scale=2; {} / 100\") ; wpctl set-volume @DEFAULT_AUDIO_SINK@ $VOL")
(metric :label "󰍛"
:value {EWW_RAM.used_mem_perc}
:onchange "")

View File

@ -1,12 +1,3 @@
#!/bin/sh
#!/usr/bin/env bash
if command -v pamixer &>/dev/null; then
if [ true == $(pamixer --get-mute) ]; then
echo 0
exit
else
pamixer --get-volume
fi
else
amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}'
fi
wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}'

View File

@ -8,6 +8,7 @@ windowrule = workspace 2, thunderbird
exec-once = eww daemon && eww open bar
exec-once = qutebrowser
exec-once = firefox
exec-once = thunderbird
exec-once = dunst & hyprpaper & kitty