feat: wired notify
This commit is contained in:
parent
060cde1148
commit
c9b93095c0
|
@ -23,5 +23,6 @@
|
|||
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
|
||||
};
|
||||
};
|
||||
fileSystems."/state".neededForBoot = true;
|
||||
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
imports = [
|
||||
#./deadd
|
||||
./themes.nix
|
||||
#./wired-notify.nix
|
||||
./wired-notify.nix
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -40,6 +40,9 @@ let
|
|||
"2:d" = [
|
||||
{class = "^firefox$";}
|
||||
];
|
||||
"1:1" = [
|
||||
{class = "^spotify$";}
|
||||
];
|
||||
"3:u" = [
|
||||
{class = "^thunderbird$";}
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -8,12 +8,9 @@
|
|||
fullAppDisplay
|
||||
shuffle # shuffle+ (special characters are sanitized out of ext names)
|
||||
hidePodcasts
|
||||
popupLyrics
|
||||
fullAlbumDate
|
||||
skipStats
|
||||
showQueueDuration
|
||||
history
|
||||
volumePercentage
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue