mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 01:12:19 +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-starter-configs/
|
||||||
# - https://github.com/Misterio77/nix-config/
|
# - 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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
||||||
# You can access packages and modules from different nixpkgs revs
|
# You can access packages and modules from different nixpkgs revs
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
bind = $mod, F, exec, firefox
|
bind = $mod, F, exec, firefox
|
||||||
bind = , Print, exec, grimblast copy area
|
bind = , Print, exec, grimblast copy area
|
||||||
bind = $mod, Q, exec, kitty
|
bind = $mod, Q, exec, kitty
|
||||||
|
bind = $mod, C, killactive,
|
||||||
|
bind = $mod, M, exit
|
||||||
|
|
||||||
|
input {
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# workspaces
|
# workspaces
|
||||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
||||||
|
@ -22,4 +30,4 @@
|
||||||
10)}
|
10)}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
./global
|
./global
|
||||||
./features/cli/extras
|
./features/cli/extras
|
||||||
./features/desktop
|
./features/desktop
|
||||||
# ./features/desktop/hyprland.nix
|
./features/desktop/hyprland.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# packages
|
# packages
|
||||||
|
@ -12,27 +12,4 @@
|
||||||
vagrant
|
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