mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 12:22:17 +00:00
finally a (barely) functional hyprland config
This commit is contained in:
parent
c292a03707
commit
1bbb9fca95
3 changed files with 15 additions and 25 deletions
|
@ -5,6 +5,11 @@
|
|||
# - https://github.com/Misterio77/nix-starter-configs/
|
||||
# - https://github.com/Misterio77/nix-config/
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [ "https://hyprland.cachix.org" ];
|
||||
extra-trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
||||
# You can access packages and modules from different nixpkgs revs
|
||||
|
|
|
@ -5,6 +5,14 @@
|
|||
bind = $mod, F, exec, firefox
|
||||
bind = , Print, exec, grimblast copy area
|
||||
bind = $mod, Q, exec, kitty
|
||||
bind = $mod, C, killactive,
|
||||
bind = $mod, M, exit
|
||||
|
||||
input {
|
||||
touchpad {
|
||||
natural_scroll = yes
|
||||
}
|
||||
}
|
||||
|
||||
# workspaces
|
||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
||||
|
@ -22,4 +30,4 @@
|
|||
10)}
|
||||
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
./global
|
||||
./features/cli/extras
|
||||
./features/desktop
|
||||
# ./features/desktop/hyprland.nix
|
||||
./features/desktop/hyprland.nix
|
||||
];
|
||||
|
||||
# packages
|
||||
|
@ -12,27 +12,4 @@
|
|||
vagrant
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
$mod = SUPER
|
||||
|
||||
bind = $mod, F, exec, firefox
|
||||
bind = , Print, exec, grimblast copy area
|
||||
bind = $mod, Q, exec, kitty
|
||||
|
||||
# workspaces
|
||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
||||
${builtins.concatStringsSep "\n" (builtins.genList (
|
||||
x: let
|
||||
ws = let
|
||||
c = (x + 1) / 10;
|
||||
in
|
||||
builtins.toString (x + 1 - (c * 10));
|
||||
in ''
|
||||
bind = $mod, ${ws}, workspace, ${toString (x + 1)}
|
||||
bind = $mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}
|
||||
''
|
||||
)
|
||||
10)}
|
||||
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue