diff options
| -rw-r--r-- | i3/.config/i3/config | 1 | ||||
| -rwxr-xr-x | polybar/.config/polybar/scripts/mic-status.sh | 7 | ||||
| -rw-r--r-- | x11/.xprofile | 6 |
3 files changed, 9 insertions, 5 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config index ff00d0f..4c96f00 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -23,6 +23,7 @@ client.focused_inactive #16161d #16161d #c0caf5 #16161d #16161d client.unfocused #16161d #16161d #c0caf5 #16161d #16161d # --- Autostart --- +exec --no-startup-id picom --backend xrender --vsync --use-damage exec --no-startup-id pipewire exec --no-startup-id /usr/bin/openrazer-daemon exec --no-startup-id brightnessctl set 40% diff --git a/polybar/.config/polybar/scripts/mic-status.sh b/polybar/.config/polybar/scripts/mic-status.sh index aae580c..b068c27 100755 --- a/polybar/.config/polybar/scripts/mic-status.sh +++ b/polybar/.config/polybar/scripts/mic-status.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Loops until pactl can successfully connect and find the default source +while ! pactl get-source-mute @DEFAULT_SOURCE@ &>/dev/null; do + sleep 0.5 +done + # Function to check the default source's mute status get_mic_status() { # We look for the default source and check its 'Mute' field @@ -7,7 +12,7 @@ get_mic_status() { # Convert the volume to percentage mic_percentage=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F'/' '/Volume:/ {print $2}' | xargs) - + if [ "$STATUS" = "yes" ]; then #echo " Muted" # Use your preferred icon/text echo " $mic_percentage" diff --git a/x11/.xprofile b/x11/.xprofile index 176d4ad..f4af368 100644 --- a/x11/.xprofile +++ b/x11/.xprofile @@ -1,6 +1,6 @@ xrdb -merge ~/.Xresources -xrandr --output eDP-1 --auto +xrandr --output eDP-1 --auto #export GDK_SCALE=2 #export GDK_DPI_SCALE=0.5 @@ -9,6 +9,4 @@ export GDK_DPI_SCALE=1 export QT_AUTO_SCREEN_SCALE_FACTOR=1 export QT_ENABLE_HIGHDPI_SCALING=1 -export _JAVA_OPTIONS='-Dsun.java2d.uiScale=2' - -picom --backend xrender --vsync --use-damage & +export _JAVA_OPTIONS='-Dsun.java2d.uiScale=2'
\ No newline at end of file |
