add hyprland and greetd
This commit is contained in:
parent
7a6da71236
commit
77b3ecebb7
22 changed files with 84 additions and 321 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{ ... }:
|
||||
# General idea
|
||||
# Alt is for focus switch or open/close windows shortcut
|
||||
# Ctrl is for changing size or state
|
||||
# Mod is for moving windows
|
||||
{
|
||||
programs.niri.settings.binds = {
|
||||
# open programs
|
||||
|
|
@ -25,43 +29,40 @@
|
|||
"-e"
|
||||
"nvim"
|
||||
];
|
||||
|
||||
"Alt+F".action.spawn = [ "zen-beta" ];
|
||||
"Alt+Z".action.spawn = [ "zotero" ];
|
||||
"Alt+T".action.spawn = [ "thunderbird" ];
|
||||
|
||||
# other actions
|
||||
"ALT+F4".action.close-window = { };
|
||||
"ALT+V".action.toggle-window-floating = { };
|
||||
"ALT+V".action.switch-focus-between-floating-and-tiling = { };
|
||||
# size control
|
||||
"Ctrl+V".action.toggle-window-floating = { };
|
||||
"CTRL+M".action.maximize-column = { };
|
||||
"CTRL+F".action.fullscreen-window = { };
|
||||
|
||||
"ALT+H".action.focus-column-left = { };
|
||||
"ALT+L".action.focus-column-right = { };
|
||||
"ALT+K".action.focus-workspace-up = { };
|
||||
"ALT+J".action.focus-workspace-down = { };
|
||||
|
||||
"Super+H".action.move-column-left = { };
|
||||
"Super+L".action.move-column-right = { };
|
||||
"Super+K".action.move-column-to-workspace-up = { };
|
||||
"Super+J".action.move-column-to-workspace-down = { };
|
||||
|
||||
"Alt+A".action.focus-monitor-left = { };
|
||||
"Alt+B".action.focus-monitor-right = { };
|
||||
"Super+A".action.move-column-to-monitor-left = { };
|
||||
"Super+B".action.move-column-to-monitor-right = { };
|
||||
|
||||
"Alt+R".action.switch-preset-column-width = { };
|
||||
"Ctrl+R".action.switch-preset-column-width = { };
|
||||
"Ctrl+Alt+H".action.set-column-width = [ "-10%" ];
|
||||
"Ctrl+Alt+L".action.set-column-width = [ "+10%" ];
|
||||
"Ctrl+Alt+J".action.set-window-height = "-10%";
|
||||
"Ctrl+Alt+K".action.set-window-height = "+10%";
|
||||
|
||||
# switch focus
|
||||
"ALT+H".action.focus-column-left = { };
|
||||
"ALT+L".action.focus-column-right = { };
|
||||
"ALT+K".action.focus-workspace-up = { };
|
||||
"ALT+J".action.focus-workspace-down = { };
|
||||
"Alt+A".action.focus-monitor-left = { };
|
||||
"Alt+B".action.focus-monitor-right = { };
|
||||
# move windows
|
||||
"Super+H".action.move-column-left = { };
|
||||
"Super+L".action.move-column-right = { };
|
||||
"Super+K".action.move-column-to-workspace-up = { };
|
||||
"Super+J".action.move-column-to-workspace-down = { };
|
||||
"Super+A".action.move-column-to-monitor-left = { };
|
||||
"Super+B".action.move-column-to-monitor-right = { };
|
||||
# screenshot
|
||||
"Print".action.screenshot = { };
|
||||
"Ctrl+Print".action.screenshot-screen = { };
|
||||
"Alt+Print".action.screenshot-window = { };
|
||||
|
||||
# multimédia / luminosité
|
||||
# special shortcut
|
||||
"XF86MonBrightnessUp" = {
|
||||
allow-when-locked = true;
|
||||
action.spawn = [
|
||||
|
|
@ -128,5 +129,7 @@
|
|||
};
|
||||
# Aperçu global (overview)
|
||||
"Alt+Tab".action.toggle-overview = { };
|
||||
# Quitter niri
|
||||
"Ctrl+Alt+M".action.quit = { };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
programs.niri.settings.layout = {
|
||||
gaps = 8;
|
||||
center-focused-column = "never"; # never, always, on-overflow
|
||||
always-center-single-column = true;
|
||||
always-center-single-column = false;
|
||||
|
||||
preset-column-widths = [
|
||||
{ proportion = 0.33333; }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.niri.settings = {
|
||||
prefer-no-csd = true;
|
||||
|
|
@ -8,7 +8,14 @@
|
|||
command = [
|
||||
"swaybg"
|
||||
"-i"
|
||||
"~/nixos-config/dotfiles/hypr/wallpaper/nix-wallpaper.png"
|
||||
"${config.home.homeDirectory}/nixos-config/dotfiles/hypr/wallpaper/nix-wallpaper.png"
|
||||
];
|
||||
}
|
||||
{
|
||||
command = [
|
||||
"gnome-keyring-daemon"
|
||||
"--start"
|
||||
"--components=secrets"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -8,7 +8,12 @@
|
|||
rofi
|
||||
kitty
|
||||
swaylock
|
||||
swaybg
|
||||
wireplumber
|
||||
brightnessctl
|
||||
xwayland-satellite
|
||||
wl-clipboard
|
||||
];
|
||||
# when greetd active
|
||||
systemd.user.services.niri.enableDefaultPath = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue