Odin: add Hyprland

This commit is contained in:
Filippo Berto 2023-11-13 12:08:52 +01:00
parent 485b6e5f58
commit deb7148744
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 39 additions and 21 deletions

View file

@ -162,6 +162,13 @@
./modules/nixos/pro_audio.nix ./modules/nixos/pro_audio.nix
./modules/nixos/kdeconnect.nix ./modules/nixos/kdeconnect.nix
./modules/nixos/hyprland.nix
{
home-manager.users.bertof.imports = [
./modules/hm/hyprland.nix
];
}
] ++ homeManagerModules ++ [ ] ++ homeManagerModules ++ [
{ home-manager.users.bertof = import ./instances/odin/hm.nix; } { home-manager.users.bertof = import ./instances/odin/hm.nix; }
]; ];

View file

@ -113,12 +113,13 @@ with lib; {
xkbOptions = "eurosign:e,terminate:ctrl_alt_bksp,compose:rctrl,grp:menu_toggle"; xkbOptions = "eurosign:e,terminate:ctrl_alt_bksp,compose:rctrl,grp:menu_toggle";
libinput.enable = true; libinput.enable = true;
displayManager.sddm = { displayManager.gdm.enable = true;
enable = true; # displayManager.sddm = {
autoNumlock = true; # enable = true;
theme = # autoNumlock = true;
"${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance"; # theme =
}; # "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
# };
}; };
# Enable CUPS to print documents. # Enable CUPS to print documents.

View file

@ -46,6 +46,7 @@
retroarchFull retroarchFull
spotify spotify
tdesktop tdesktop
teams-for-linux
thunderbird thunderbird
transmission-gtk transmission-gtk
virt-manager virt-manager

View file

@ -49,6 +49,7 @@
retroarchFull retroarchFull
spotify spotify
tdesktop tdesktop
teams-for-linux
thunderbird thunderbird
transmission-gtk transmission-gtk
virt-manager virt-manager

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { nixosConfig, pkgs, ... }: {
imports = [ imports = [
./kitty.nix ./kitty.nix
@ -36,13 +36,21 @@
# For a full list, see the wiki # For a full list, see the wiki
# #
autogenerated = 0 # remove this line to remove the warning
# See https://wiki.hyprland.org/Configuring/Monitors/ # See https://wiki.hyprland.org/Configuring/Monitors/
# monitor=name,resolution,position,scale # monitor=name,resolution,position,scale
monitor,preferred,auto,auto monitor,preferred,auto,auto
monitor=DP-2,preferred,1080x420,1 ${
monitor=HDMI-A-1,preferred,auto,auto,transform,3 if nixosConfig.networking.hostName == "thor" then
''
monitor=DP-2,preferred,1080x420,auto
monitor=HDMI-A-1,preferred,auto,auto,transform,3
''
else if nixosConfig.networking.hostName == "odin" then
''
monitor=eDP-1,preferred,320x1440,1
monitor=DP-1,preferred,0x0,1
'' else ""
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
@ -58,7 +66,7 @@
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input { input {
kb_layout = us kb_layout = ${if nixosConfig.networking.hostName == "thor" then "us" else "it" }
kb_variant = kb_variant =
kb_model = kb_model =
kb_options = kb_options =
@ -67,7 +75,7 @@
follow_mouse = 1 follow_mouse = 1
touchpad { touchpad {
natural_scroll = no natural_scroll = yes
} }
sensitivity = 0 # -1.0 - 1.0, 0 means no modification. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
@ -148,16 +156,16 @@
# $mainMod = SUPER # $mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = SUPER, Q, exec, kitty
bind = SUPER, RETURN, exec, kitty bind = SUPER, RETURN, exec, kitty
bind = SUPER, C, killactive, bind = SUPER, Q, killactive,
bind = SUPER, M, exec, way-lockscreen bind = SUPER, M, exec, way-lockscreen
bind = SUPER_ALT_L, Q, exit, bind = SUPER_ALT_L, Q, exit,
bind = SUPER, E, exec, kitty -e bash ${ya} bind = SUPER, E, exec, kitty -e bash ${ya}
bind = SUPER_SHIFT, E, exec, nemo bind = SUPER_SHIFT, E, exec, nemo
bind = SUPER, V, togglefloating, bind = SUPER, V, togglefloating,
bind = SUPER_SHIFT, R, exec, wofi --show drun --allow-images -D key_expand=Tab -M=fuzzy -i bind = SUPER_SHIFT, SPACE, exec, wofi --show run --allow-images -D key_expand=Tab -M=fuzzy -i
bind = SUPER, SPACE, exec, wofi --show drun --allow-images -D key_expand=Tab -M=fuzzy -i bind = SUPER, SPACE, exec, wofi --show drun --allow-images -D key_expand=Tab -M=fuzzy -i
bind = SUPER, F, fullscreen,
bind = SUPER, P, pseudo, # dwindle bind = SUPER, P, pseudo, # dwindle
bind = SUPER, J, togglesplit, # dwindle bind = SUPER, J, togglesplit, # dwindle

View file

@ -17,11 +17,11 @@ let
exec = cmd link; exec = cmd link;
}; };
links = [ links = [
{ # {
desktopName = "Microsoft Teams"; # desktopName = "Microsoft Teams";
link = "https://teams.microsoft.com"; # link = "https://teams.microsoft.com";
categories = [ "Office" ]; # categories = [ "Office" ];
} # }
{ {
desktopName = "Chess.com"; desktopName = "Chess.com";
link = "https://chess.com"; link = "https://chess.com";