feat: hypr changes, notifications, power button, vpn

This commit is contained in:
2026-02-19 12:05:51 -05:00
parent 7e6d382408
commit c46ccff5c9
8 changed files with 73 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ in
(import ./hyprland/wallpaper.nix { inherit pkgs scripts; })
(import ./hyprland/hyprlock.nix { inherit pkgs scripts; })
(import ./hyprland/hypridle.nix { inherit pkgs scripts; })
./hyprland/notifications.nix
];
home.file.".config/waybar/config.jsonc".source = ./hyprland/waybar/config.jsonc;

View File

@@ -55,13 +55,18 @@
];
env = [
"XCURSOR_SIZE,20"
"XCURSOR_THEME,macOS"
"HYPRCURSOR_THEME,macOS"
"HYPRCURSOR_SIZE,20"
];
# env = [
# "XCURSOR_SIZE,20"
# "XCURSOR_THEME,macOS"
# ];
general = {
gaps_in = 5;
gaps_out = 20;
gaps_in = 0;
gaps_out = 0;
border_size = 2;
@@ -222,8 +227,8 @@
"$mainMod SHIFT, K, swapwindow, u"
"$mainMod SHIFT, J, swapwindow, d"
"$mainMod ALT, H, resizeactive, -40 0"
"$mainMod ALT, L, resizeactive, 40 0"
# "$mainMod ALT, H, resizeactive, -40 0"
# "$mainMod ALT, L, resizeactive, 40 0"
# Switch workspaces with mainMod + [0-9]
"$mainMod, 1, workspace, 1"
@@ -256,8 +261,15 @@
# Scroll through existing workspaces with mainMod + scroll
# "$mainMod, mouse_down, workspace, e+1"
# "$mainMod, mouse_up, workspace, e-1"
", Prior, exec, ${pkgs.ydotool}/bin/ydotool click --next-delay 0 0x40"
", Next, exec, ${pkgs.ydotool}/bin/ydotool click --next-delay 0 0x41"
];
bindr = [
", Prior, exec, ${pkgs.ydotool}/bin/ydotool click --next-delay 0 0x80"
", Next, exec, ${pkgs.ydotool}/bin/ydotool click --next-delay 0 0x81"
];
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = [
@@ -295,6 +307,16 @@
"$mainMod, X, Universal cut, sendshortcut, CTRL, X,"
"$mainMod, A, Universal select all, sendshortcut, CTRL, A,"
"$mainMod, T, Universal new tab, sendshortcut, CTRL, T,"
"$mainMod ALT, H, Universal left, sendshortcut, , Left,"
"$mainMod ALT, J, Universal down, sendshortcut, , Down,"
"$mainMod ALT, K, Universal up, sendshortcut, , Up,"
"$mainMod ALT, L, Universal right, sendshortcut, , Right,"
"$mainMod SHIFT ALT, H, Universal left, sendshortcut, SHIFT, Left,"
"$mainMod SHIFT ALT, J, Universal down, sendshortcut, SHIFT, Down,"
"$mainMod SHIFT ALT, K, Universal up, sendshortcut, SHIFT, Up,"
"$mainMod SHIFT ALT, L, Universal right, sendshortcut, SHIFT, Right,"
];
windowrule = [

View File

@@ -17,12 +17,12 @@
background = {
monitor = "";
color = "$color";
path = "~/Downloads/wallpaper.png";
# path = "~/Downloads/wallpaper.png";
blur_passes = 3;
};
animations = {
enabled = false;
enabled = true;
};
input-field = {

View File

@@ -0,0 +1,31 @@
{
services.swaync = {
enable = true;
settings = {
notification-window-width = 350;
};
# Taken from:
# https://github.com/ErikReider/SwayNotificationCenter/blob/2083415ee6441acc272f46f8a43ebccae215f69a/data/style/style.scss#L4
style = ''
:root {
--cc-bg: rgba(46, 46, 46, 0.7);
--noti-border-color: rgba(255, 255, 255, 0.15);
--noti-bg: 48, 48, 48;
--noti-bg-alpha: 1;
--border-radius: 0;
--font-size-body: 13px;
--font-size-summary: 14px;
}
.close-button {
min-width: 18px;
min-height: 18px;
}
'';
};
}

View File

@@ -12,4 +12,6 @@
withUWSM = true;
xwayland.enable = true;
};
programs.ydotool.enable = true;
}

View File

@@ -39,8 +39,14 @@
};
services.upower.enable = true;
services.logind.settings.Login.HandlePowerKey = "ignore";
networking.networkmanager.enable = true;
networking.networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openconnect
];
};
hardware.bluetooth = {
enable = true;

View File

@@ -6,7 +6,7 @@
users.users.max = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.max-password.path;
extraGroups = [ "wheel" "networkmanager" "video" "kvm" "docker" ];
extraGroups = [ "wheel" "networkmanager" "video" "kvm" "docker" "ydotool" ];
packages = with pkgs; [ tree ];
shell = pkgs.zsh;
};

Submodule secrets updated: 7bf9979dac...b5647c0094