feat: added additional software for hyprland

WIP: added waybar
chore: added ssh conf for compiler construction
This commit is contained in:
Patrick Großmann 2023-03-20 15:05:59 +09:00
parent 5b4a4c2623
commit e9085b6775
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
6 changed files with 86 additions and 53 deletions

View file

@ -1,65 +1,71 @@
MOD: TAGS: pkgs: MOD: TAGS: pkgs:
'' ''
general { general {
gaps_in = 1 gaps_in = 1
gaps_out = 0 gaps_out = 0
} }
input { input {
sensitivity = 0 sensitivity = 0
kb_layout = de kb_layout = de
kb_variant = bone kb_variant = bone
repeat_rate = 60 repeat_rate = 60
repeat_delay = 235 repeat_delay = 235
# Only change focus on mouse click # Only change focus on mouse click
follow_mouse = 2 follow_mouse = 2
accel_profile = flat accel_profile = flat
touchpad { touchpad {
natural_scroll = true natural_scroll = true
}
}
gestures {
workspace_swipe = true
} }
}
gestures { misc {
workspace_swipe = true disable_hyprland_logo = true
} }
# keybinds # keybinds
bind=${MOD},q,killactive, bind=${MOD},q,killactive,
bind=${MOD},return,fullscreen, bind=${MOD},return,fullscreen,
bind=${MOD},f,togglefloating bind=${MOD},f,togglefloating
bind=${MOD},tab,cyclenext, bind=${MOD},tab,cyclenext,
bind=ALT,tab,cyclenext, bind=ALT,tab,cyclenext,
bind=,Menu,exec,rofi -show drun bind=,Menu,exec,rofi -show drun
bind=${MOD},left,movefocus,l bind=${MOD},left,movefocus,l
bind=${MOD},right,movefocus,r bind=${MOD},right,movefocus,r
bind=${MOD},up,movefocus,u bind=${MOD},up,movefocus,u
bind=${MOD},down,movefocus,d bind=${MOD},down,movefocus,d
bind=${MOD},n,movefocus,l bind=${MOD},n,movefocus,l
bind=${MOD},s,movefocus,r bind=${MOD},s,movefocus,r
bind=${MOD},l,movefocus,u bind=${MOD},l,movefocus,u
bind=${MOD},r,movefocus,d bind=${MOD},r,movefocus,d
bind=${MOD} + SHIFT,left,movewindow,l bind=${MOD} + SHIFT,left,movewindow,l
bind=${MOD} + SHIFT,right,movewindow,r bind=${MOD} + SHIFT,right,movewindow,r
bind=${MOD} + SHIFT,up,movewindow,u bind=${MOD} + SHIFT,up,movewindow,u
bind=${MOD} + SHIFT,down,movewindow,d bind=${MOD} + SHIFT,down,movewindow,d
bind=${MOD} + SHIFT,n,movewindow,l bind=${MOD} + SHIFT,n,movewindow,l
bind=${MOD} + SHIFT,s,movewindow,r bind=${MOD} + SHIFT,s,movewindow,r
bind=${MOD} + SHIFT,l,movewindow,u bind=${MOD} + SHIFT,l,movewindow,u
bind=${MOD} + SHIFT,r,movewindow,d bind=${MOD} + SHIFT,r,movewindow,d
bind=${MOD},comma,workspace,-1 bind=${MOD},comma,workspace,-1
bind=${MOD},period,workspace,+1 bind=${MOD},period,workspace,+1
bind=${MOD},b,exec,firefox bind=${MOD},b,exec,firefox
bind=${MOD},t,exec,kitty bind=${MOD},t,exec,kitty
bind=${MOD} + SHIFT,Escape,exit bind=${MOD} + SHIFT,Escape,exit
exec-once="${pkgs.waybar}/bin/waybar main"
'' ''
+ builtins.concatStringsSep "\n" (map ( + builtins.concatStringsSep "\n" (map (
x: '' x: ''

View file

@ -247,11 +247,11 @@
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=", "narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=",
"path": "/nix/store/m12grpvqvq7vs62knlp1s288mb2n775k-source/templates", "path": "/nix/store/prychaf8a2rz70ix83z9knjhgv5ajviw-source/templates",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/m12grpvqvq7vs62knlp1s288mb2n775k-source/templates", "path": "/nix/store/prychaf8a2rz70ix83z9knjhgv5ajviw-source/templates",
"type": "path" "type": "path"
} }
}, },

View file

@ -58,6 +58,13 @@
inherit identityFile; inherit identityFile;
}; };
"CompConst" = {
hostname = "cp-service.kaist.ac.kr";
user = "s20236085";
port = 13001;
inherit identityFile;
};
"valhalla" = { "valhalla" = {
hostname = "valhalla.fs.tum.de"; hostname = "valhalla.fs.tum.de";
user = "grossmann"; user = "grossmann";

View file

@ -6,6 +6,23 @@
MOD = "SUPER"; MOD = "SUPER";
TAGS = map toString (lib.lists.range 42 50); TAGS = map toString (lib.lists.range 42 50);
in { in {
home.packages = with pkgs; [
qt6.qtwayland
];
programs.waybar = {
enable = true;
settings = {
main = {
layer = "top";
position = "bottom";
modules-left = ["hyprland/window"];
modules-center = ["workspaces"];
modules-right = ["network" "memory" "backlight" "wireplumber" "battery" "clock" "tray"];
};
};
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
nvidiaPatches = true; nvidiaPatches = true;

View file

@ -36,8 +36,8 @@
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "aloxaf"; owner = "aloxaf";
repo = "fzf-tab"; repo = "fzf-tab";
rev = "69024c27738138d6767ea7246841fdfc6ce0d0eb"; rev = "5a81e13792a1eed4a03d2083771ee6e5b616b9ab";
sha256 = "07wwcplyb2mw10ia9y510iwfhaijnsdcb8yv2y3ladhnxjd6mpf8"; sha256 = "0lfl4r44ci0wflfzlzzxncrb3frnwzghll8p365ypfl0n04bkxvl";
}; };
} }
{ {
@ -45,8 +45,8 @@
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "zdharma-continuum"; owner = "zdharma-continuum";
repo = "fast-syntax-highlighting"; repo = "fast-syntax-highlighting";
rev = "7c390ee3bfa8069b8519582399e0a67444e6ea61"; rev = "5521b083f8979ad40be2137d7a46bfa51c8d666a";
sha256 = "0gh4is2yzwiky79bs8b5zhjq9khksrmwlaf13hk3mhvpgs8n1fn0"; sha256 = "0ki5dl3gvmcl1kr9smx0949303dxzwadz7r4abj7ivj3284xxk44";
}; };
} }
]; ];

View file

@ -58,6 +58,9 @@
}; };
}; };
# notification are nice to have
services.dunst.enable = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
xsession.enable = true; xsession.enable = true;
} }