switch to dankmaterialshell

This commit is contained in:
Tyler Mayoff 2025-10-10 17:37:26 -04:00
parent 57bfa61e0b
commit e543d6cde6
2 changed files with 38 additions and 40 deletions

View file

@ -36,6 +36,11 @@
inputs.quickshell.follows = "quickshell"; inputs.quickshell.follows = "quickshell";
}; };
dankMaterialShell = {
url = "github:AvengeMedia/DankMaterialShell/v0.1.10";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# Theming # Theming
firefox-gnome-theme = { firefox-gnome-theme = {
url = "github:rafaelmardojai/firefox-gnome-theme"; url = "github:rafaelmardojai/firefox-gnome-theme";
@ -53,6 +58,7 @@
# helix, # helix,
niri, niri,
noctalia, noctalia,
dankMaterialShell,
quickshell, quickshell,
... ...
} @ inputs: let } @ inputs: let

View file

@ -2,18 +2,17 @@
pkgs, pkgs,
inputs, inputs,
config, config,
lib,
... ...
}: let }: {
noctalia = inputs.noctalia.packages.${pkgs.system}.default;
in {
imports = [ imports = [
./darkman.nix ./darkman.nix
# inputs.niri.homeModules.niri.default
inputs.dankMaterialShell.homeModules.dankMaterialShell.default
inputs.dankMaterialShell.homeModules.dankMaterialShell.niri
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
noctalia
inputs.quickshell.packages.${system}.default
glib glib
xdg-desktop-portal-gnome xdg-desktop-portal-gnome
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
@ -25,8 +24,11 @@ in {
wlsunset wlsunset
]; ];
home.shellAliases = { programs.dankMaterialShell = {
restart-shell = "${noctalia} kill && niri msg action spawn -- \"${noctalia}\""; enable = true;
quickshell.package = pkgs.unstable.quickshell;
niri.enableKeybinds = true;
niri.enableSpawn = true;
}; };
gtk = { gtk = {
@ -283,16 +285,6 @@ in {
# } # }
}; };
# Add lines like this to spawn processes at startup.
# Note that running niri as a session supports xdg-desktop-autostart,
# which may be more convenient to use.
# See the binds section below for more spawn examples.
# // This line starts waybar, a commonly used bar for Wayland compositors.
spawn-at-startup = [
{argv = ["noctalia-shell"];}
];
# Uncomment this line to ask the clients to omit their client-side decorations if possible. # Uncomment this line to ask the clients to omit their client-side decorations if possible.
# If the client will specifically ask for CSD, the request will be honored. # If the client will specifically ask for CSD, the request will be honored.
# Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. # Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
@ -409,27 +401,27 @@ in {
hotkey-overlay.title = "Open a Terminal: ghostty"; hotkey-overlay.title = "Open a Terminal: ghostty";
action = spawn "ghostty"; action = spawn "ghostty";
}; };
"Mod+Space" = { # "Mod+Space" = {
hotkey-overlay.title = "Application launcher"; # hotkey-overlay.title = "Application launcher";
action = spawn ["noctalia-shell" "ipc" "call" "launcher" "toggle"]; # action = spawn ["noctalia-shell" "ipc" "call" "launcher" "toggle"];
}; # };
"XF86AudioRaiseVolume" = { # "XF86AudioRaiseVolume" = {
allow-when-locked = true; # allow-when-locked = true;
action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"]; # action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"];
}; # };
"XF86AudioLowerVolume" = { # "XF86AudioLowerVolume" = {
allow-when-locked = true; # allow-when-locked = true;
action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"]; # action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"];
}; # };
"XF86AudioMute" = { # "XF86AudioMute" = {
allow-when-locked = true; # allow-when-locked = true;
action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"]; # action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
}; # };
XF86AudioMicMute = { # XF86AudioMicMute = {
allow-when-locked = true; # allow-when-locked = true;
action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"]; # action = spawn ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
}; # };
# Open/close the Overview: a zoomed-out view of workspaces and windows. # Open/close the Overview: a zoomed-out view of workspaces and windows.
# You can also move the mouse into the top-left hot corner, # You can also move the mouse into the top-left hot corner,
@ -606,7 +598,7 @@ in {
"Mod+BracketRight".action = consume-or-expel-window-right; "Mod+BracketRight".action = consume-or-expel-window-right;
# Consume one window from the right to the bottom of the focused column. # Consume one window from the right to the bottom of the focused column.
"Mod+Comma".action = consume-window-into-column; "Mod+Comma".action = lib.mkForce consume-window-into-column;
# Expel the bottom window from the focused column to the right. # Expel the bottom window from the focused column to the right.
"Mod+Period".action = expel-window-from-column; "Mod+Period".action = expel-window-from-column;
@ -645,7 +637,7 @@ in {
# Mod+Shift+Equal { set-window-height "+10%"; } # Mod+Shift+Equal { set-window-height "+10%"; }
# // Move the focused window between the floating and the tiling layout. # // Move the focused window between the floating and the tiling layout.
"Mod+V".action = toggle-window-floating; "Mod+V".action = lib.mkForce toggle-window-floating;
"Mod+Shift+V".action = switch-focus-between-floating-and-tiling; "Mod+Shift+V".action = switch-focus-between-floating-and-tiling;
# Toggle tabbed column display mode. # Toggle tabbed column display mode.