vicinae: switch to vicinae
This commit is contained in:
parent
bb0e68d1aa
commit
708b190d2b
2 changed files with 35 additions and 22 deletions
|
|
@ -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}%"
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue