Added desktop environments

This commit is contained in:
2025-05-08 14:46:36 +02:00
parent 1581a55e46
commit 1efa96105e
7 changed files with 71 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
{ currentSystemUser, ... }:
{ currentSystemUser, currentSystemDe, ... }:
{
imports = [
./nvim
@@ -7,12 +7,13 @@
./git.nix
./kitty.nix
./zoxide.nix
] ++ (if currentSystemDe == "hyprland" then [
./hyprland.nix
./wofi.nix
./hyprlock.nix
./waybar.nix
];
] else []
);
home.username = "${currentSystemUser}";

View File

@@ -3,8 +3,11 @@
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
fish_config theme choose Catppuccin\ Mocha
function fish_greeting
krabby random --no-title --padding-left 2
end
function weather
curl "wttr.in/Bolzano?0?Q?"

View File

@@ -1,16 +1,22 @@
{ currentSystemUser, ... }:
{
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "SUPER";
bind = [
"$mod, Return, exec, kitty"
"$mod, F, fullscreen"
"$mod, SPACE, exec, wofi --show run"
"$mod SHIFT, Q, killactive"
"$mod SHIFT, L, exec, hyprlock"
"$mod SHIFT, Q, killactive"
"$mod, F, fullscreen"
"$mod, H, movefocus, l"
"$mod, L, movefocus, r"
"$mod, K, movefocus, u"
@@ -19,6 +25,18 @@
"$mod SHIFT, L, movewindow, r"
"$mod SHIFT, K, movewindow, u"
"$mod SHIFT, J, movewindow, d"
"$mod SHIFT, right, resizeactive, 30 0"
"$mod SHIFT, left, resizeactive, -30 0"
"$mod SHIFT, up, resizeactive, 0 -30"
"$mod SHIFT, down, resizeactive, 0 30"
"$mod SHIFT, U, togglefloating"
",XF86MonBrightnessDown, exec, brightnessctl set 2%-"
",XF86MonBrightnessUp, exec, brightnessctl set +2%"
",XF86AudioLowerVolume, exec, pamixer -d 2"
",XF86AudioRaiseVolume, exec, pamixer -i 2"
"$mod, delete, exit"
] ++ (
builtins.concatLists (builtins.genList (i:
let ws = i + 1;
@@ -42,12 +60,16 @@
};
sensitivity = "0";
accel_profile = "flat";
};
exec-once = [
"waybar"
"hyprpaper"
];
exec = [
];
};
};