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