mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
fix: update dms
This commit is contained in:
parent
f7157b5a1f
commit
04c85ec904
12 changed files with 77 additions and 41 deletions
|
|
@ -46,12 +46,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
programs.dank-material-shell.default.settings = {
|
||||
programs.dank-material-shell.settings = {
|
||||
# Disables wallpaper management in DMS to avoid conflicts with Hyprpaper
|
||||
screenPreferences.wallpaper = [];
|
||||
};
|
||||
|
||||
programs.dank-material-shell.default.session = {
|
||||
programs.dank-material-shell.session = {
|
||||
# Attempt to set a default wallpaper on first run
|
||||
wallpaperPath = unknownPng;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
in {
|
||||
config = lib.mkIf config.fireproof.desktop.enable {
|
||||
fireproof.home-manager = {
|
||||
programs.dank-material-shell.default.settings = {
|
||||
programs.dank-material-shell.settings = {
|
||||
launcherLogoMode = "os";
|
||||
launcherLogoContrast = 1;
|
||||
launcherLogoSizeOffset = 3;
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@
|
|||
config,
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
pkgsUnstable,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./theme.nix
|
||||
./background.nix
|
||||
./bar.nix
|
||||
./plugins.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf config.fireproof.desktop.windowManager.enable {
|
||||
|
|
@ -25,10 +26,11 @@
|
|||
enableDynamicTheming = false;
|
||||
enableVPN = false;
|
||||
enableCalendarEvents = false;
|
||||
dgop.package = pkgsUnstable.dgop; # not available in stable nixpkgs yet (25.11)
|
||||
|
||||
systemd.enable = true;
|
||||
|
||||
default.settings = {
|
||||
settings = {
|
||||
# General Settings
|
||||
weatherCoordinates = "56.1496278,10.2134046";
|
||||
|
||||
|
|
@ -55,21 +57,6 @@
|
|||
powerMenuDefaultAction = "lock";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
# A hack to always serve fresh settings from default-settings.json
|
||||
dms-clean-settings = {
|
||||
Unit = {
|
||||
Description = "Delete DankMaterialShell settings before dms starts";
|
||||
Before = ["dms.service"];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.coreutils}/bin/rm -f %h/.config/DankMaterialShell/settings.json";
|
||||
};
|
||||
Install.WantedBy = ["dms.service"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
22
modules/desktop/dms/plugins.nix
Normal file
22
modules/desktop/dms/plugins.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.fireproof.desktop.enable {
|
||||
fireproof.home-manager = {
|
||||
imports = [
|
||||
inputs.dms-plugin-registry.modules.default
|
||||
];
|
||||
programs.dank-material-shell.plugins = {
|
||||
emojiLauncher = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ in {
|
|||
matugen_type = "scheme-expressive";
|
||||
};
|
||||
|
||||
programs.dank-material-shell.default.settings = {
|
||||
programs.dank-material-shell.settings = {
|
||||
# Color theme
|
||||
currentThemeName = "custom";
|
||||
customThemeFile = "/home/${username}/.config/DankMaterialShell/colors.json";
|
||||
|
|
|
|||
|
|
@ -131,6 +131,10 @@ in {
|
|||
action.spawn = ["dms" "ipc" "spotlight" "toggle"];
|
||||
hotkey-overlay.title = "Toggle Application Launcher";
|
||||
};
|
||||
"Mod+Semicolon" = {
|
||||
action.spawn = ["dms" "ipc" "spotlight" "toggleQuery" ":"];
|
||||
hotkey-overlay.title = "Toggle Emoji Picker";
|
||||
};
|
||||
"Mod+P" = {
|
||||
action.spawn = ["dms" "ipc" "powermenu" "toggle"];
|
||||
hotkey-overlay.title = "Toggle Power Menu";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue