commit 2123285b5bc475afc6fe5696d491d37c8ed2522a
parent 3af185724c50698c46fb54a6862577e3ba3a5ac6
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 6 Sep 2024 00:49:19 +0200
users/vincent: playing with mako.
I'll need to refine this configuration and also nixify it.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 48 insertions(+), 26 deletions(-)
diff --git a/nix/packages/my/scripts/bin/shot b/nix/packages/my/scripts/bin/shot
@@ -16,4 +16,6 @@ else
esac
}
fi
-notify-send -i accessories-screenshot 'Screenshot Taken' "Saved to $to"
+notify-send --category=recording \
+ --icon=$to \
+ 'Screenshot Taken' "Saved to $to"
diff --git a/nix/packages/my/scripts/bin/shotf b/nix/packages/my/scripts/bin/shotf
@@ -16,4 +16,6 @@ maim -d | {
esac
}
fi
-notify-send -i accessories-screenshot 'Screenshot Taken' "Saved to $to"
+notify-send --category=recording \
+ --icon=$to \
+ 'Screenshot Taken' "Saved to $to"
diff --git a/users/vincent/desktop/sway.nix b/users/vincent/desktop/sway.nix
@@ -163,7 +163,7 @@ in
{ command = "dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY DBUS_SESSION_BUS_ADDRESS SWAYSOCK XDG_SESSION_TYPE XDG_SESSION_DESKTOP XDG _CURRENT_DESKTOP"; } #workaround
# { command = "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
{ command = "systemctl --user restart kanshi"; always = true; }
- { command = "${pkgs.pa-notify}/bin/pa-notify -u 2"; always = true;}
+ { command = "${pkgs.pa-notify}/bin/pa-notify"; always = true;}
];
};
extraConfig =
diff --git a/users/vincent/desktop/wayland.nix b/users/vincent/desktop/wayland.nix
@@ -78,38 +78,56 @@
}
];
};
- # FIXME: replace by rotification
mako = {
enable = true;
font = "JetBrains Mono 12";
- defaultTimeout = 5000; # 5s timeout
+ defaultTimeout = 8000; # 5s timeout
groupBy = "app-name,summary";
+ # FIXME: hide pulseaudio notifications (maybe they don't show up without pasystray)
extraConfig = ''
- on-button-left=dismiss
- on-button-middle=invoke-default-action
- on-button-right=dismiss
- border-radius=3
- border-size=3
- border-color=#db7508
+on-button-left=dismiss
+on-button-middle=invoke-default-action
+on-button-right=dismiss
+border-radius=6
+border-size=3
+border-color=#db7508
+format=<b>%s</b>\n%b\n<i>%a</i>
- [urgency=low]
- background-color=#282c30
- text-color=#888888
- default-timeout=20000
+[urgency=low]
+background-color=#282c30
+text-color=#888888
+default-timeout=2000
- [urgency=normal]
- background-color=#282c30
- text-color=#ffffff
- default-timeout=30000
+[urgency=normal]
+background-color=#282c30
+text-color=#ffffff
+default-timeout=5000
- [urgency=high]
- background-color=#900000
- text-color=#ffffff
- border-color=#ff0000
- default-timeout=0
+[urgency=high]
+background-color=#900000
+text-color=#ffffff
+border-color=#ff0000
- [mode=do-not-disturb]
- invisible=1
+[app-name="pa-notify"]
+background-color=#0080ff
+text-color=#333333
+anchor=bottom-right
+format=<b>%s</b>\n%b
+
+[category="build"]
+anchor=bottom-right
+format=<b>%s</b>\n%b
+
+[category="recording"]
+anchor=bottom-right
+format=<b>%s</b>\n%b
+
+[category="info"]
+anchor=center
+format=<b>%s</b> %b
+
+[mode=do-not-disturb]
+invisible=1
'';
};
swayidle = {