AquaticOS/modules/programs/hyprland/config/scripts.nix

17 lines
No EOL
464 B
Nix

{ ... }:
{
flake.modules.homeManager.hyprland =
{
home.file.".config/hypr/scripts/goxlrMute.sh" = {
executable = true;
text = ''
#!/usr/bin/env bash
if [[ $(goxlr-client --status-json | grep \"state\" | cut -d ' ' -f 10 | sed 's/"//g; s/'"'"'//g') == "Unmuted" ]]; then
goxlr-client cough-button mute-state muted-to-x
else
goxlr-client cough-button mute-state unmuted
fi
'';
};
};
}