adding new notification daemon and menu thing
This commit is contained in:
parent
d26e8a696d
commit
380d407dd2
6 changed files with 74 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = with nix-config.homeModules; [
|
imports = with nix-config.homeModules; [
|
||||||
mako
|
# mako
|
||||||
mpv
|
mpv
|
||||||
yazi
|
yazi
|
||||||
hyprlock
|
hyprlock
|
||||||
|
|
|
@ -12,9 +12,31 @@
|
||||||
"network",
|
"network",
|
||||||
"wireplumber",
|
"wireplumber",
|
||||||
"power-profiles-daemon",
|
"power-profiles-daemon",
|
||||||
"upower"
|
"upower",
|
||||||
|
"custom/notification",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"custom/notification": {
|
||||||
|
"tooltip": false,
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"notification": "<span foreground='red'><sup></sup></span>",
|
||||||
|
"none": "",
|
||||||
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||||
|
"dnd-none": "",
|
||||||
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||||
|
"inhibited-none": "",
|
||||||
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||||
|
"dnd-inhibited-none": ""
|
||||||
|
},
|
||||||
|
"return-type": "json",
|
||||||
|
"exec-if": "which swaync-client",
|
||||||
|
"exec": "swaync-client -swb",
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d -sw",
|
||||||
|
"escape": true
|
||||||
|
},
|
||||||
|
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
|
|
|
@ -68,7 +68,6 @@
|
||||||
psutils
|
psutils
|
||||||
util-linux
|
util-linux
|
||||||
libgtop
|
libgtop
|
||||||
ulauncher
|
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
egl-wayland
|
egl-wayland
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
trayscale
|
trayscale
|
||||||
font-manager
|
font-manager
|
||||||
|
|
||||||
|
|
||||||
squirreldisk
|
squirreldisk
|
||||||
papers
|
papers
|
||||||
newsflash
|
newsflash
|
||||||
|
@ -145,6 +144,46 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.swaync = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
positionX = "right";
|
||||||
|
positionY = "top";
|
||||||
|
layer = "overlay";
|
||||||
|
control-center-layer = "top";
|
||||||
|
layer-shell = true;
|
||||||
|
cssPriority = "application";
|
||||||
|
control-center-margin-top = 0;
|
||||||
|
control-center-margin-bottom = 0;
|
||||||
|
control-center-margin-right = 0;
|
||||||
|
control-center-margin-left = 0;
|
||||||
|
notification-2fa-action = true;
|
||||||
|
notification-inline-replies = false;
|
||||||
|
notification-icon-size = 64;
|
||||||
|
notification-body-image-height = 100;
|
||||||
|
notification-body-image-width = 200;
|
||||||
|
};
|
||||||
|
style =
|
||||||
|
''
|
||||||
|
.notification-row {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-row:focus,
|
||||||
|
.notification-row:hover {
|
||||||
|
background: @noti-bg-focus;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification {
|
||||||
|
border-radius: 12px;
|
||||||
|
margin: 6px 12px;
|
||||||
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
|
||||||
|
0 2px 6px 2px rgba(0, 0, 0, 0.3);
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
eww = {
|
eww = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -153,6 +192,7 @@
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."halloy/config.toml".source = ../../homes/emenel/dotfiles/dot_config/halloy/config.toml;
|
xdg.configFile."halloy/config.toml".source =
|
||||||
|
../../homes/emenel/dotfiles/dot_config/halloy/config.toml;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ in {
|
||||||
{ command = ["clipse" "-listen"]; }
|
{ command = ["clipse" "-listen"]; }
|
||||||
{ command = ["swayosd-server"]; }
|
{ command = ["swayosd-server"]; }
|
||||||
{ command = ["waybar"]; }
|
{ command = ["waybar"]; }
|
||||||
{ command = [ "systemctl" "--user" "restart" "mako.service" "hypridle.service" "xwayland-satellite.service" ]; }
|
{ command = [ "systemctl" "--user" "restart" "hypridle.service" "xwayland-satellite.service" ]; }
|
||||||
];
|
];
|
||||||
|
|
||||||
workspaces = {
|
workspaces = {
|
||||||
|
@ -192,6 +192,7 @@ in {
|
||||||
"Mod+Ctrl+B".action = spawn "firefox";
|
"Mod+Ctrl+B".action = spawn "firefox";
|
||||||
"Mod+Ctrl+V".action = wezlaunch "clipse";
|
"Mod+Ctrl+V".action = wezlaunch "clipse";
|
||||||
"Mod+Ctrl+F".action = wez "yazi";
|
"Mod+Ctrl+F".action = wez "yazi";
|
||||||
|
"Mod+Ctrl+N".action = spawn "swaync-client" "-t";
|
||||||
|
|
||||||
"Mod+Shift+A".action = spawn "hyprlock";
|
"Mod+Shift+A".action = spawn "hyprlock";
|
||||||
|
|
||||||
|
|
|
@ -62,10 +62,15 @@ window#waybar {
|
||||||
#tray,
|
#tray,
|
||||||
#window,
|
#window,
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#clock {
|
#clock
|
||||||
|
#custom-notification {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-notification {
|
||||||
|
min-width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
#power-profiles-daemon {
|
#power-profiles-daemon {
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue