Tweak notifications on AGS
This commit is contained in:
parent
d675225c83
commit
55a3387697
|
@ -99,8 +99,16 @@ export function NotificationPopups(monitor = 0) {
|
|||
|
||||
function onNotified(_, /** @type {number} */ id) {
|
||||
const n = notifications.getNotification(id)
|
||||
if (n)
|
||||
if (n) {
|
||||
list.children = [Notification(n), ...list.children]
|
||||
// Schedule a timeout to dismiss the notification
|
||||
setTimeout(() => {
|
||||
const n = notifications.getNotification(id)
|
||||
if (n) { // if the notification is still there
|
||||
n.dismiss()
|
||||
}
|
||||
}, notifications.popupTimeout)
|
||||
}
|
||||
}
|
||||
|
||||
function onDismissed(_, /** @type {number} */ id) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
libreoffice
|
||||
onlyoffice-bin
|
||||
telegram-desktop
|
||||
webcord
|
||||
devenv
|
||||
|
|
|
@ -105,8 +105,7 @@
|
|||
wget = ''wget --hsts-file = "$XDG_DATA_HOME/wget-hsts"'';
|
||||
python = "python3";
|
||||
vim = "nvim";
|
||||
v = ''
|
||||
nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
||||
v = ''echo $(pwd) > /tmp/oil_dir && nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
||||
cpr =
|
||||
"rsync --archive -hh --partial --info = stats1,progress2 --modify-window = 1";
|
||||
mvr =
|
||||
|
|
Loading…
Reference in New Issue