vicinae: switch to vicinae

This commit is contained in:
Pedro Rey Anca 2026-01-05 15:05:02 +01:00
parent bb0e68d1aa
commit 708b190d2b
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
2 changed files with 35 additions and 22 deletions

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, config, ... }:
{
services.hyprpolkitagent.enable = true;
programs.fuzzel = {
@ -24,26 +25,34 @@
};
};
services.cliphist = {
programs.vicinae = {
enable = true;
allowImages = true;
systemd = {
enable = true;
autoStart = true;
};
settings = {
theme.iconTheme = "Default"; # Normal app icons in launcher
};
};
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)
(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}%"
'';
})
notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%"
'';
})
];
}