diff --git a/home/features/desktop/hyprland/waybar/default.nix b/home/features/desktop/hyprland/waybar/default.nix index 77ec6636..48c562ff 100644 --- a/home/features/desktop/hyprland/waybar/default.nix +++ b/home/features/desktop/hyprland/waybar/default.nix @@ -524,10 +524,16 @@ in font-weight: bold; } + #disk { + margin: 0px; + padding: 0 10px 0 10px; + font-size: 13px; + color: #ffffff; + } + #cpu, #memory, - #custom-gpu, - #disk { + #custom-gpu { margin: 0px; padding: 0 10px 0 10px; font-size: 14px; diff --git a/home/features/desktop/hyprland/waybar/scripts/mic.nix b/home/features/desktop/hyprland/waybar/scripts/mic.nix deleted file mode 100644 index 6fec48df..00000000 --- a/home/features/desktop/hyprland/waybar/scripts/mic.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ pkgs }: - -pkgs.writeShellScriptBin "microphone" '' - set -e - - # https://blog.dhampir.no/content/sleeping-without-a-subprocess-in-bash-and-how-to-sleep-forever - snore() { - local IFS - [[ -n "${_snore_fd:-}" ]] || exec {_snore_fd}<> <(:) - read -r ${1:+-t "$1"} -u $_snore_fd || : - } - - DELAY=0.2 - - while snore $DELAY; do - WP_OUTPUT=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@) - - if [[ $WP_OUTPUT =~ ^Volume:[[:blank:]]([0-9]+)\.([0-9]{2})([[:blank:]].MUTED.)?$ ]]; then - if [[ -n ${BASH_REMATCH[3]} ]]; then - printf "\n" - else - VOLUME=$((10#${BASH_REMATCH[1]}${BASH_REMATCH[2]})) - ICON=( - "" - ) - - if [[ $VOLUME -gt 0 ]]; then - printf "%s" "${ICON[0]} " - fi - printf "$VOLUME%%\n" - fi - fi - done - - exit 0 -''