frues-clan/users/pedro/home-configuration/hyprland/utils.nix
Pedro Rey Anca 7606f9e051
Some checks failed
Update `flake.lock` / update_lockfile (push) Waiting to run
Flake check / check (push) Has been cancelled
Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
2025-09-08 18:59:28 +02:00

49 lines
1.2 KiB
Nix

{pkgs, ...}: {
services.hyprpolkitagent.enable = true;
programs.fuzzel = {
enable = true;
settings = {
main = {
use-bold = true;
line-height = 25;
fields = "name,generic,comment,categories,filename,keywords";
terminal = "kitty";
prompt = "'🔍 '";
layer = "top";
lines = 10;
width = 35;
horizontal-pad = 25;
inner-pad = 5;
dpi-aware = false;
};
border = {
radius = 15;
width = 3;
};
};
};
services.cliphist = {
enable = true;
allowImages = true;
};
home.packages = [
(pkgs.writeShellApplication
{
# From https://github.com/emersion/mako/wiki/Volume-change-notification#1-create-the-notifier-script
name = "wp-vol";
runtimeInputs = with pkgs; [wireplumber gawk bc];
text = ''
# Get the volume level and convert it to a percentage
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume=$(echo "$volume" | awk '{print $2}')
volume=$(echo "( $volume * 100 ) / 1" | bc)
notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%"
'';
})
];
}