add hyprland and greetd

This commit is contained in:
afoucaultc 2026-08-08 13:33:07 +02:00
parent 7a6da71236
commit 77b3ecebb7
22 changed files with 84 additions and 321 deletions

View file

@ -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 = { };
};
}