Added swaync
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
./screenshot.nix
|
./screenshot.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
./swaync.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
./walker.nix
|
./walker.nix
|
||||||
./wallpaper.nix
|
./wallpaper.nix
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
"systemctl --user enable --now hyprpolkitagent.service"
|
"systemctl --user enable --now hyprpolkitagent.service"
|
||||||
"systemctl --user enable app-com.mitchellh.ghostty.service"
|
"systemctl --user enable app-com.mitchellh.ghostty.service"
|
||||||
"wpaperd -d"
|
"wpaperd -d"
|
||||||
|
"swaync"
|
||||||
"pypr"
|
"pypr"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,9 @@
|
|||||||
", XF86AudioMute, exec, pamixer -t"
|
", XF86AudioMute, exec, pamixer -t"
|
||||||
"ALT, XF86AudioMute, exec, pamixer --default-source -t"
|
"ALT, XF86AudioMute, exec, pamixer --default-source -t"
|
||||||
|
|
||||||
|
# Notification Center
|
||||||
|
"$mod, n, exec, swaync-client -t -sw"
|
||||||
|
|
||||||
# Scratchpads
|
# Scratchpads
|
||||||
"$mod, TAB, exec, pypr toggle term"
|
"$mod, TAB, exec, pypr toggle term"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
foot.enable = true;
|
foot.enable = true;
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
|
swaync.enable = true;
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
104
modules/home/swaync.nix
Normal file
104
modules/home/swaync.nix
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.swaync = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
positionX = "right";
|
||||||
|
positionY = "top";
|
||||||
|
cssPriority = "user"; # "application"
|
||||||
|
|
||||||
|
control-center-width = 380;
|
||||||
|
control-center-height = 860;
|
||||||
|
control-center-margin-top = 10;
|
||||||
|
control-center-margin-bottom = 10;
|
||||||
|
control-center-margin-right = 10;
|
||||||
|
control-center-margin-left = 10;
|
||||||
|
|
||||||
|
notification-window-width = 400;
|
||||||
|
notification-icon-size = 48;
|
||||||
|
notification-body-image-height = 100;
|
||||||
|
notification-body-image-width = 200;
|
||||||
|
|
||||||
|
timeout = 4;
|
||||||
|
timeout-low = 2;
|
||||||
|
timeout-critical = 6;
|
||||||
|
|
||||||
|
fit-to-screen = false;
|
||||||
|
keyboard-shortcuts = true;
|
||||||
|
image-visibility = "when-available";
|
||||||
|
transition-time = 200;
|
||||||
|
hide-on-clear = false;
|
||||||
|
hide-on-action = false;
|
||||||
|
script-fail-notify = true;
|
||||||
|
scripts = {
|
||||||
|
example-script = {
|
||||||
|
exec = "echo 'Do something...'";
|
||||||
|
urgency = "Normal";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
notification-visibility = {
|
||||||
|
example-name = {
|
||||||
|
state = "muted";
|
||||||
|
urgency = "low";
|
||||||
|
app-name = "Spotify";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
widgets = [
|
||||||
|
"label"
|
||||||
|
"buttons-grid"
|
||||||
|
"mpris"
|
||||||
|
"dnd"
|
||||||
|
"title"
|
||||||
|
"notifications"
|
||||||
|
];
|
||||||
|
widget-config = {
|
||||||
|
title = {
|
||||||
|
text = "Notifications";
|
||||||
|
clear-all-button = true;
|
||||||
|
button-text = " ";
|
||||||
|
};
|
||||||
|
dnd = {
|
||||||
|
text = "Do Not Disturb";
|
||||||
|
};
|
||||||
|
label = {
|
||||||
|
max-lines = 1;
|
||||||
|
text = " ";
|
||||||
|
};
|
||||||
|
mpris = {
|
||||||
|
image-size = 96;
|
||||||
|
image-radius = 12;
|
||||||
|
};
|
||||||
|
volume = {
|
||||||
|
label = "";
|
||||||
|
show-per-app = true;
|
||||||
|
};
|
||||||
|
buttons-grid = {
|
||||||
|
actions = [
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
command = "pamixer -t";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
command = "pamixer --default-source -t";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "";
|
||||||
|
command = "nmtui";
|
||||||
|
}
|
||||||
|
# {
|
||||||
|
# label = "";
|
||||||
|
# command = "blueman-manager";
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# label = "";
|
||||||
|
# command = "nwg-look";
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user