Compare commits

..

9 Commits

Author SHA1 Message Date
e28ccbd5ad Less annoying animations
Stole the setup from Omachry.
2025-08-29 13:57:47 +02:00
afb2fe70d7 Disable internal keyboard when external (Voyager) is connected 2025-08-29 13:40:19 +02:00
ec0b98795f Focus and rounded corners 2025-08-29 13:05:08 +02:00
d8b5cfd2b0 Switch to a nerd font for more icons 2025-08-28 09:30:36 +02:00
9b47392d76 Move home packages one level up 2025-08-28 09:30:12 +02:00
5ff263a17d Fix cursor 2025-08-27 23:38:35 +02:00
a6d99590ee Rename 2025-08-27 20:59:36 +02:00
0c95b2fae5 Set some default fonts 2025-08-27 20:36:33 +02:00
76a4062806 Scaling by fractions is slow, so let's not 2025-08-27 18:32:11 +02:00
5 changed files with 93 additions and 14 deletions

View File

@ -1,8 +1,17 @@
{ zen-browser, ... }: { pkgs, zen-browser, ... }:
{ {
home.packages = [
pkgs.adwaita-icon-theme
pkgs.brightnessctl
pkgs.pamixer
pkgs.rofi-wayland
pkgs.wtype
];
imports = [ imports = [
zen-browser.homeModules.beta zen-browser.homeModules.beta
./hypr ./hyprland
]; ];
programs.zen-browser = { programs.zen-browser = {

View File

@ -1,24 +1,75 @@
{ pkgs, ... }: { ... }:
{ {
home.packages = [
pkgs.wtype
pkgs.rofi-wayland
pkgs.brightnessctl
pkgs.pamixer
];
programs.kitty.enable = true; programs.kitty.enable = true;
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
monitor = [ ",preferred,auto,1.2" ]; misc = {
disable_hyprland_logo = true;
background_color = "0x2E3440";
};
xwayland.force_zero_scaling = true; general = {
border_size = 2;
"col.active_border" = "0xFF81A1C1";
"col.inactive_border" = "0xFF677691";
};
decoration = {
rounding = 15;
inactive_opacity = 0.75;
blur.enabled = false;
shadow.enabled = false;
border_part_of_window = true;
};
# The animations is taken from Omarchy, see:
# https://github.com/basecamp/omarchy/blob/master/default/hypr/looknfeel.conf
animations = {
enabled = true;
bezier = [
"easeOutQuint,0.23,1,0.32,1"
"easeInOutCubic,0.65,0.05,0.36,1"
"linear,0,0,1,1"
"almostLinear,0.5,0.5,0.75,1.0"
"quick,0.15,0,0.1,1"
];
animation = [
"global, 1, 10, default"
"border, 1, 5.39, easeOutQuint"
"windows, 1, 4.79, easeOutQuint"
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
"windowsOut, 1, 1.49, linear, popin 87%"
"fadeIn, 1, 1.73, almostLinear"
"fadeOut, 1, 1.46, almostLinear"
"fade, 1, 3.03, quick"
"layers, 1, 3.81, easeOutQuint"
"layersIn, 1, 4, easeOutQuint, fade"
"layersOut, 1, 1.5, linear, fade"
"fadeLayersIn, 1, 1.79, almostLinear"
"fadeLayersOut, 1, 1.39, almostLinear"
"workspaces, 0, 0, ease"
];
};
monitor = [ ",preferred,auto,1" ];
gestures.workspace_swipe = true; gestures.workspace_swipe = true;
cursor = {
enable_hyprcursor = false;
};
env = [
"XCURSOR_THEME,Adwaita"
"XCURSOR_SIZE,24"
];
input = { input = {
kb_options = "altwin:swap_alt_win"; kb_options = "altwin:swap_alt_win";

View File

@ -2,7 +2,7 @@
with pkgs; with pkgs;
[ [
iosevka iosevka
nerd-fonts.sauce-code-pro
source-sans source-sans
source-code-pro
source-serif source-serif
] ]

View File

@ -1,4 +1,12 @@
{ pkgs, ... }:
{ {
# Disable internal keyboard when external (Voyager) is connected
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event*", ENV{DEVLINKS}=="*usb-ZSA_Technology_Labs_Voyager-event-kbd*", RUN+="${pkgs.kmod}/bin/modprobe -r atkbd"
ACTION=="remove", SUBSYSTEM=="input", KERNEL=="event*", ENV{DEVLINKS}=="*usb-ZSA_Technology_Labs_Voyager-event-kbd*", RUN+="${pkgs.kmod}/bin/modprobe atkbd"
'';
services.kanata = { services.kanata = {
enable = true; enable = true;
keyboards = { keyboards = {

View File

@ -1,6 +1,17 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
fonts.packages = import ../../home/fonts { inherit pkgs; };
fonts = {
packages = import ../../home/fonts { inherit pkgs; };
fontconfig = {
enable = true;
defaultFonts = {
serif = [ "Source Serif 4" ];
sansSerif = [ "Source Sans 3" ];
monospace = [ "SauceCodePro Nerd Font" ];
};
};
};
programs.fish.enable = true; programs.fish.enable = true;
environment.shells = [ pkgs.fish ]; environment.shells = [ pkgs.fish ];