services.user: migrate to deadd notification daemon

This commit is contained in:
Daniella / Tove 2024-11-12 15:13:13 +01:00
parent 56e1c256fe
commit 29ae403d7d
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 157 additions and 2 deletions

140
deadd.css Normal file
View file

@ -0,0 +1,140 @@
i
/* Notification center */
.blurredBG, #main_window, .blurredBG.low, .blurredBG.normal {
background: rgba(0, 0, 0, 0.7);
}
.noti-center.time {
font-size: 32px;
}
/* Notifications */
.notification.content {
margin-left: 15px;
margin-right: 15px;
}
.title {
font-weight: bold;
font-size: 16px;
}
.appname {
font-size: 12px;
}
.time {
font-size: 12px;
}
.blurredBG.notification {
background: rgba(0, 0, 0, 0.5);
}
.blurredBG.notification.critical {
background: rgba(255, 0, 0, 0.7);
}
.notificationInCenter.critical {
background: rgba(155, 0, 20, 0.7);
}
/* Labels */
label {
color: #ecc;
}
label.notification {
color: #ecc;
}
label.critical {
color: #fff;
}
.notificationInCenter label.critical {
color: #fff;
}
/* Buttons */
button {
background: transparent;
color: #ecc;
border-radius: 3px;
border-width: 0px;
background-position: 0px 0px;
text-shadow: none;
}
button:hover {
border-radius: 3px;
background: rgba(0, 20, 20, 0.2);
border-width: 0px;
border-top: transparent;
border-color: #f00;
color: #fee;
}
/* Custom Buttons */
.userbutton {
background: rgba(20,0,0, 0.15);
}
.userbuttonlabel {
color: #222;
font-size: 12px;
}
.userbutton:hover {
background: rgba(20, 0, 0, 0.2);
}
.userbuttonlabel:hover {
color: #111;
}
button.buttonState1 {
background: rgba(20,0,0,0.5);
}
.userbuttonlabel.buttonState1 {
color: #fff;
}
button.buttonState1:hover {
background: rgba(20,0,0, 0.4);
}
.userbuttonlabel.buttonState1:hover {
color: #111;
}
button.buttonState2 {
background: rgba(255,255,255,0.3);
}
.userbuttonlabel.buttonState2 {
color: #111;
}
button.buttonState2:hover {
background: rgba(20,0,0, 0.3);
}
.userbuttonlabel.buttonState2:hover {
color: #000;
}
/* Images */
image.deadd-noti-center.notification.image {
margin-left: 20px;
}

View file

@ -52,6 +52,7 @@ in
nmap nmap
qemu_full qemu_full
qpaeq qpaeq
deadd-notification-center
#marker.pkgs.end# #marker.pkgs.end#
(import ./traewelling.script.nix) (import ./traewelling.script.nix)
(import ./plans.script.nix) (import ./plans.script.nix)
@ -131,6 +132,7 @@ in
clear clear
exec $SHELL exec $SHELL
end end
alias gitlog="git log --all --oneline --graph"
''; '';
programs.alacritty.enable = true; programs.alacritty.enable = true;
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
@ -139,7 +141,10 @@ in
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;
package = pkgs.i3-gaps; package = pkgs.i3-gaps;
extraConfig = "exec feh --bg-fill .background-image"; extraConfig = ''
exec feh --bg-fill .background-image
exec deadd-notification-center
'';
config = { config = {
keybindings = lib.mkOptionDefault { keybindings = lib.mkOptionDefault {
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
@ -150,6 +155,7 @@ in
"XF86MonBrightnessDown" = "exec --no-startup-id bright down"; "XF86MonBrightnessDown" = "exec --no-startup-id bright down";
"Print" = "exec --no-startup-id maim -s screenshot.png && xclip -selection clipboard -target image/png screenshot.png"; "Print" = "exec --no-startup-id maim -s screenshot.png && xclip -selection clipboard -target image/png screenshot.png";
"Mod4+q" = "exec sl"; "Mod4+q" = "exec sl";
"Mod4+p" = "exec killall -USR1 deadd-notification-center";
}; };
terminal = "alacritty"; terminal = "alacritty";
modifier = "Mod4"; modifier = "Mod4";
@ -178,7 +184,7 @@ in
services.picom.enable = true; services.picom.enable = true;
programs.alacritty.settings.window.opacity = 0.7; programs.alacritty.settings.window.opacity = 0.7;
programs.alacritty.settings.font.normal.family = "Monocraft"; programs.alacritty.settings.font.normal.family = "Monocraft";
services.dunst.enable = true; #services.dunst.enable = true;
gtk.enable = true; gtk.enable = true;
gtk.theme = { gtk.theme = {
name = "Arc-Dark"; name = "Arc-Dark";
@ -188,5 +194,14 @@ in
name = "Breeze-Dark"; name = "Breeze-Dark";
package = pkgs.breeze-icons; package = pkgs.breeze-icons;
}; };
xdg.enable = true;
xdg.configFile."deadd/deadd.yml".text = ''
width: 700
notification:
popup:
default-timeout: 10000
'';
xdg.configFile."deadd/deadd.css".source = ./deadd.css;
}; };
} }