FEAT: switched to wayland

This commit is contained in:
Patrick Großmann 2023-03-12 13:55:04 +09:00
parent 243177409e
commit 78e85a399d
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
7 changed files with 77 additions and 69 deletions

View file

@ -19,7 +19,7 @@ in {
./modules/smb-mounts.nix
./modules/networking.nix
./modules/nix.nix
./modules/xserver.nix
#./modules/xserver.nix
./modules/hyprland.nix
];
@ -35,6 +35,10 @@ in {
# Select internationalisation properties.
i18n.defaultLocale = "C.UTF-8";
services.xserver = {
layout = "de";
xkbVariant = "bone";
};
console = {
font = "ter-v28n";
packages = with pkgs; [terminus_font];
@ -109,6 +113,8 @@ in {
# and env variables will be loaded incorrectly
programs.zsh.enable = true;
services.physlock.enable = true;
programs.steam = {
enable = true;
package = pkgs.steam.override {

View file

@ -6,7 +6,7 @@ MOD: TAGS: pkgs:
}
input {
sensitivity = -0.8
sensitivity = 0
kb_model = pc105
kb_layout = de
kb_variant = bone
@ -14,6 +14,9 @@ MOD: TAGS: pkgs:
repeat_delay = 235
# Only change focus on mouse click
follow_mouse = 2
touchpad {
natural_scroll = true
}
}
# keybinds
@ -34,27 +37,30 @@ MOD: TAGS: pkgs:
bind=${MOD},l,movefocus,u
bind=${MOD},r,movefocus,d
bind=${MOD} + Shift,left,movewindow,l
bind=${MOD} + Shift,right,movewindow,r
bind=${MOD} + Shift,up,movewindow,u
bind=${MOD} + Shift,down,movewindow,d
bind=${MOD} + SHIFT,left,movewindow,l
bind=${MOD} + SHIFT,right,movewindow,r
bind=${MOD} + SHIFT,up,movewindow,u
bind=${MOD} + SHIFT,down,movewindow,d
bind=${MOD} + Shift,n,movewindow,l
bind=${MOD} + Shift,s,movewindow,r
bind=${MOD} + Shift,l,movewindow,u
bind=${MOD} + Shift,r,movewindow,d
bind=${MOD} + SHIFT,n,movewindow,l
bind=${MOD} + SHIFT,s,movewindow,r
bind=${MOD} + SHIFT,l,movewindow,u
bind=${MOD} + SHIFT,r,movewindow,d
bind=${MOD},comma,workspace,-1
bind=${MOD},period,workspace,+1
bind=${MOD},b,exec,firefox
bind=${MOD},t,exec,kitty
bind=${MOD} + Shift,Escape,exit
bind=${MOD} + SHIFT,Escape,exit
''
+ builtins.concatStringsSep "\n" (map (
x: ''
bind=${MOD},${x},workspace,${x}
bind=${MOD} + Shift,${x},movetoworkspace,${x}
bind=${MOD},${x.fst},workspace,${x.snd}
bind=${MOD} + SHIFT,${x.fst},movetoworkspace,${x.snd}
''
)
TAGS)
(pkgs.lib.lists.zipLists (map toString (pkgs.lib.lists.range 1 9)) TAGS))

View file

@ -103,11 +103,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1678271387,
"narHash": "sha256-H2dv/i1LRlunRtrESirELzfPWdlG/6ElDB1ksO529H4=",
"lastModified": 1678571066,
"narHash": "sha256-MrlMr2A3tK1MY/JUGWMVzMwois8+mHWXm/1yYdwQSIc=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "36999b8d19eb6eebb41983ef017d7e0095316af2",
"rev": "bf5712c5865e543fb3f4796511d4cf51efd841b1",
"type": "github"
},
"original": {
@ -124,11 +124,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1678268777,
"narHash": "sha256-nIRic657abSyBAQ5V3bOOE0aPbjAZx2wvr9mPRoq1cQ=",
"lastModified": 1678557514,
"narHash": "sha256-yNrik47cr8qPgl6zTMNJSfoC2zKZJaNUQAMWFYTajcE=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "92d2331170ce738056ad6bc63fa346174b954f66",
"rev": "71ef1bde7e45f94ceaab925ae065f32f91510890",
"type": "github"
},
"original": {
@ -192,11 +192,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1678293141,
"narHash": "sha256-lLlQHaR0y+q6nd6kfpydPTGHhl1rS9nU9OQmztzKOYs=",
"lastModified": 1678470307,
"narHash": "sha256-OEeMUr3ueLIXyW/OaFUX5jUdimyQwMg/7e+/Q0gC/QE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c90c4025bb6e0c4eaf438128a3b2640314b1c58d",
"rev": "0c4800d579af4ed98ecc47d464a5e7b0870c4b1f",
"type": "github"
},
"original": {
@ -219,11 +219,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1677832802,
"narHash": "sha256-XQf+k6mBYTiQUjWRf/0fozy5InAs03O1b30adCpWeXs=",
"lastModified": 1678376203,
"narHash": "sha256-3tyYGyC8h7fBwncLZy5nCUjTJPrHbmNwp47LlNLOHSM=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "382bee738397ca005206eefa36922cc10df8a21c",
"rev": "1a20b9708962096ec2481eeb2ddca29ed747770a",
"type": "github"
},
"original": {
@ -247,11 +247,11 @@
"locked": {
"lastModified": 1,
"narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=",
"path": "/nix/store/8snyk21w4xs6v6kn1pjhs7n7b7j8s29i-source/templates",
"path": "/nix/store/cp64wcr7y55dlaamgq4axbhzhw2pqwhd-source/templates",
"type": "path"
},
"original": {
"path": "/nix/store/8snyk21w4xs6v6kn1pjhs7n7b7j8s29i-source/templates",
"path": "/nix/store/cp64wcr7y55dlaamgq4axbhzhw2pqwhd-source/templates",
"type": "path"
}
},

View file

@ -3,8 +3,6 @@
services.xserver = {
enable = true;
displayManager.startx.enable = true;
layout = "de";
xkbVariant = "bone";
autoRepeatDelay = 235;
autoRepeatInterval = 60;
videoDrivers = ["modesetting"];
@ -20,5 +18,4 @@
};
};
services.autorandr.enable = true;
services.physlock.enable = true;
}

View file

@ -4,7 +4,7 @@
...
}: let
MOD = "SUPER";
TAGS = map toString (lib.lists.range 1 9);
TAGS = map toString (lib.lists.range 42 50);
in {
wayland.windowManager.hyprland = {
enable = true;

View file

@ -1,6 +1,7 @@
_: {
{pkgs, ...}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
theme = "DarkBlue";
extraConfig = {
matching = "fuzzy";

View file

@ -5,13 +5,13 @@
}: {
imports = [
common/programs/kitty.nix
common/graphical/herbstluftwm.nix
#common/graphical/herbstluftwm.nix
common/graphical/hyprland.nix
common/graphical/autorandr.nix
#common/graphical/autorandr.nix
common/programs/polybar.nix
common/programs/rofi.nix
common/touchegg-module.nix
common/touchegg-settings.nix
#common/touchegg-module.nix
#common/touchegg-settings.nix
];
home = {
@ -21,7 +21,7 @@
bitwarden
nextcloud-client
signal-desktop
spotify
spotify-tui
xdragon
xournalpp
zathura
@ -55,8 +55,6 @@
height: 32px !important;
}
'';
search.default = "Kagi";
search.force = true;
};
};