feat: wired notify

This commit is contained in:
Patrick Großmann 2023-10-15 22:09:08 +02:00
parent 060cde1148
commit c9b93095c0
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
7 changed files with 12 additions and 8 deletions

View file

@ -23,5 +23,6 @@
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
};
};
fileSystems."/state".neededForBoot = true;
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
}

View file

@ -86,6 +86,8 @@
entriesStr =
if value ? _ronType
then specialType indent value
else if !builtins.isAttrs value
then toRon indent value
else let
entries = mapAttrsToList toEntry value;
entriesStrSpace = concatStringsSep ", " entries;

View file

@ -36,8 +36,9 @@
''
);
"${cfg.modifier}+F10" = let
nsend = '' ${pkgs.libnotify}/bin/notify-send \
-h string:category:Screenshot\
nsend = ''
${pkgs.libnotify}/bin/notify-send \
-h string:category:Screenshot\
'';
in
"exec "

View file

@ -2,7 +2,7 @@
imports = [
#./deadd
./themes.nix
#./wired-notify.nix
./wired-notify.nix
];
home = {
packages = with pkgs; [

View file

@ -40,6 +40,9 @@ let
"2:d" = [
{class = "^firefox$";}
];
"1:1" = [
{class = "^spotify$";}
];
"3:u" = [
{class = "^thunderbird$";}
];

View file

@ -17,7 +17,7 @@
inherit (config.stylix) fonts;
# A global scaling factor to apply to all notifications.
globalScale = 1.2;
globalScale = 0.6;
# Ron format shorthands and helpers
unnamedStruct = struct "";
@ -418,7 +418,7 @@
]))
];
params = struct "NotificationBlock" (unnamedStruct {
monitor = 1;
monitor = 2;
border_width = globalScale * 2;
border_rounding = globalScale * 0;
background_color = colors.base00;

View file

@ -8,12 +8,9 @@
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
hidePodcasts
popupLyrics
fullAlbumDate
skipStats
showQueueDuration
history
volumePercentage
];
};
}