calcite: add notification center and kdeconnect
This commit is contained in:
parent
854f450677
commit
f1079f3095
9 changed files with 65 additions and 22 deletions
|
@ -43,8 +43,14 @@ in
|
||||||
# Theme
|
# Theme
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
accent = "peach";
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
};
|
};
|
||||||
|
# Missing from catppuccin module
|
||||||
|
services.swaync.style = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/catppuccin/swaync/releases/download/v0.2.3/mocha.css";
|
||||||
|
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
|
||||||
|
};
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -50,4 +50,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wireshark-qt;
|
package = pkgs.wireshark-qt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.kdeconnect = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.valent;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
BIN
modules/home-manager/gui/bwmountains.jpg
Executable file
BIN
modules/home-manager/gui/bwmountains.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 655 KiB |
|
@ -1,3 +1,8 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
cfg = config.custom-hm.gui;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./niri.nix
|
./niri.nix
|
||||||
|
@ -5,4 +10,11 @@
|
||||||
./gtklock.nix
|
./gtklock.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
options.custom-hm.gui = {
|
||||||
|
wallpaper = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = ./bwmountains.jpg;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ in
|
||||||
fields = "filename,name,exec,generic";
|
fields = "filename,name,exec,generic";
|
||||||
y-margin = 30;
|
y-margin = 30;
|
||||||
width = 40;
|
width = 40;
|
||||||
|
font = "Ubuntu";
|
||||||
use-bold = true;
|
use-bold = true;
|
||||||
line-height = 30;
|
line-height = 30;
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,7 +62,14 @@ in
|
||||||
str
|
str
|
||||||
path
|
path
|
||||||
];
|
];
|
||||||
default = "";
|
default = pkgs.writeText "gtklock-style.css" ''
|
||||||
|
window {
|
||||||
|
background-image: url("${config.custom-hm.gui.wallpaper}");
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
The css file to be used for gtklock.
|
The css file to be used for gtklock.
|
||||||
'';
|
'';
|
||||||
|
@ -79,7 +86,9 @@ in
|
||||||
|
|
||||||
modules = mkOption {
|
modules = mkOption {
|
||||||
type = listOf (either package str);
|
type = listOf (either package str);
|
||||||
default = [ ];
|
default = [
|
||||||
|
# "${pkgs.gtklock-playerctl-module.outPath}/lib/gtklock/playerctl-module.so"
|
||||||
|
];
|
||||||
description = ''
|
description = ''
|
||||||
A list of gtklock modulesto use. Can either be packages, absolute paths, or strings.
|
A list of gtklock modulesto use. Can either be packages, absolute paths, or strings.
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -7,10 +7,7 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkEnableOption getExe;
|
inherit (lib) mkIf mkEnableOption getExe;
|
||||||
cfg = config.custom-hm.gui.niri;
|
cfg = config.custom-hm.gui.niri;
|
||||||
wallpaper = pkgs.fetchurl {
|
wallpaper = config.custom-hm.gui.wallpaper;
|
||||||
url = "https://github.com/NixOS/nixos-artwork/blob/master/wallpapers/nixos-wallpaper-catppuccin-mocha.png?raw=true";
|
|
||||||
hash = "sha256-fmKFYw2gYAYFjOv4lr8IkXPtZfE1+88yKQ4vjEcax1s=";
|
|
||||||
};
|
|
||||||
xwayland-satellite = pkgs.xwayland-satellite.overrideAttrs (drv: rec {
|
xwayland-satellite = pkgs.xwayland-satellite.overrideAttrs (drv: rec {
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "Supreeeme";
|
owner = "Supreeeme";
|
||||||
|
@ -69,21 +66,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.swaync = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
custom-hm.gui.gtklock = {
|
custom-hm.gui.gtklock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
gtk-theme = "Catppuccin-GTK-Dark";
|
gtk-theme = "Catppuccin-GTK-Dark";
|
||||||
# style = pkgs.writeText "gtklock-style.css" ''
|
|
||||||
# window {
|
|
||||||
# background-size: cover;
|
|
||||||
# background-repeat: no-repeat;
|
|
||||||
# background-position: center;
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
# modules = [
|
|
||||||
# "${pkgs.gtklock-playerctl-module}/lib/gtklock/playerctl-module.so"
|
|
||||||
# "${pkgs.gtklock-userinfo-module}/lib/gtklock/userinfo-module.so"
|
|
||||||
# ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -93,10 +83,6 @@ in
|
||||||
swayidle = {
|
swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
timeouts = [
|
timeouts = [
|
||||||
# {
|
|
||||||
# timeout = 300;
|
|
||||||
# command = "/run/
|
|
||||||
# }
|
|
||||||
{
|
{
|
||||||
timeout = 900;
|
timeout = 900;
|
||||||
command = "/run/current-system/systemd/bin/systemctl suspend";
|
command = "/run/current-system/systemd/bin/systemctl suspend";
|
||||||
|
|
|
@ -49,7 +49,8 @@ window#waybar {
|
||||||
#network,
|
#network,
|
||||||
#backlight,
|
#backlight,
|
||||||
#battery,
|
#battery,
|
||||||
#tray {
|
#tray,
|
||||||
|
#custom-notification {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
#clock {
|
#clock {
|
||||||
|
|
|
@ -57,6 +57,8 @@ in
|
||||||
"battery"
|
"battery"
|
||||||
"custom/separator"
|
"custom/separator"
|
||||||
"tray"
|
"tray"
|
||||||
|
"custom/separator"
|
||||||
|
"custom/notification"
|
||||||
];
|
];
|
||||||
"niri/workspaces" = {
|
"niri/workspaces" = {
|
||||||
all-outputs = true;
|
all-outputs = true;
|
||||||
|
@ -158,6 +160,27 @@ in
|
||||||
icon-size = 18;
|
icon-size = 18;
|
||||||
spacing = 14;
|
spacing = 14;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"custom/notification" = {
|
||||||
|
escape = true;
|
||||||
|
exec = "swaync-client -swb";
|
||||||
|
exec-if = "which swaync-client";
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
dnd-inhibited-none = "";
|
||||||
|
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
dnd-none = "";
|
||||||
|
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
inhibited-none = "";
|
||||||
|
inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
none = "";
|
||||||
|
notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
};
|
||||||
|
on-click = "swaync-client -t -sw";
|
||||||
|
on-click-right = "swaync-client -d -sw";
|
||||||
|
return-type = "json";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue