niri config now pretty
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
if hostname == "eldrid"
|
if hostname == "eldrid"
|
||||||
then "chromeos"
|
then "chromeos"
|
||||||
else "platform";
|
else "platform";
|
||||||
xdgPictures =
|
xdgPics =
|
||||||
config.xdg.userDirs.pictures;
|
config.xdg.userDirs.pictures;
|
||||||
ifLaptop = lib.mkIf (hostname != "dunamis");
|
ifLaptop = lib.mkIf (hostname != "dunamis");
|
||||||
terminal = "ghostty";
|
terminal = "ghostty";
|
||||||
@ -539,39 +539,31 @@ in {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
screenshot-path "${config.xdg.userDirs.pictures}/screenshots/screenshot-%Y-%m-%d-%H-%M-%S.png"
|
screenshot-path "${xdgPics}/screenshots/screenshot-%Y-%m-%d-%H-%M-%S.png"
|
||||||
// screenshot-path null
|
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
// off
|
|
||||||
slowdown 0.7
|
slowdown 0.7
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match title="TelegramDesktop"
|
match title="TelegramDesktop"
|
||||||
match app-id="org.telegram.desktop"
|
match app-id="org.telegram.desktop"
|
||||||
open-floating true
|
|
||||||
}
|
|
||||||
window-rule {
|
|
||||||
match title="Картинка в картинці"
|
match title="Картинка в картинці"
|
||||||
open-floating true
|
|
||||||
}
|
|
||||||
window-rule {
|
|
||||||
match title="Picture-in-Picture"
|
match title="Picture-in-Picture"
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
match app-id="org.wezfurlong.wezterm"
|
||||||
default-column-width { proportion 1.0; }
|
default-column-width { proportion 1.0; }
|
||||||
}
|
}
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^re\.sonny\.Junction$"#
|
match app-id="re.sonny.Junction"
|
||||||
open-floating true
|
open-floating true
|
||||||
open-focused true
|
open-focused true
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^com\.mitchellh\.ghostty$"#
|
match app-id="com.mitchellh.ghostty"
|
||||||
draw-border-with-background false
|
draw-border-with-background false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -619,14 +611,44 @@ in {
|
|||||||
binds {
|
binds {
|
||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
Mod+Tab { focus-workspace-previous; }
|
||||||
|
Mod+C { center-column; }
|
||||||
|
Mod+M { maximize-column; }
|
||||||
|
Mod+H { set-column-width "50%"; }
|
||||||
|
Mod+T { switch-preset-column-width; }
|
||||||
|
Mod+V { toggle-column-tabbed-display; }
|
||||||
|
Mod+G { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Comma { consume-or-expel-window-left; }
|
||||||
|
Mod+Ctrl+Period { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Q { close-window; }
|
||||||
|
Mod+Ctrl+M { fullscreen-window; }
|
||||||
|
Mod+Ctrl+G { toggle-window-floating; }
|
||||||
|
|
||||||
|
Mod+Minus { set-column-width "-10%"; }
|
||||||
|
Mod+Equal { set-column-width "+10%"; }
|
||||||
|
Mod+Comma { set-column-width "-10%"; }
|
||||||
|
Mod+Period { set-column-width "+10%"; }
|
||||||
|
Mod+Shift+Comma { set-window-height "-10%"; }
|
||||||
|
Mod+Shift+Period { set-window-height "+10%"; }
|
||||||
|
Mod+Shift+T { reset-window-height; }
|
||||||
|
|
||||||
|
Mod+Escape { switch-layout "next"; }
|
||||||
|
|
||||||
Mod+Return repeat=false { spawn "${terminal}"; }
|
Mod+Return repeat=false { spawn "${terminal}"; }
|
||||||
Mod+Space repeat=false { spawn "${launcher}"; }
|
Mod+Space repeat=false { spawn "${launcher}"; }
|
||||||
Mod+Shift+Space repeat=false { spawn "walker" "-m" "windows"; }
|
Mod+Shift+Space repeat=false { spawn "walker" "-m" "windows"; }
|
||||||
Super+Alt+L repeat=false { spawn "${lockscreen}"; }
|
Mod+Alt+L repeat=false { spawn "${lockscreen}"; }
|
||||||
Super+Alt+B repeat=false { spawn "${browser}"; }
|
Mod+Alt+B repeat=false { spawn "${browser}"; }
|
||||||
Super+Alt+V repeat=false { spawn "copyq" "toggle"; }
|
Mod+Alt+V repeat=false { spawn "copyq" "toggle"; }
|
||||||
Mod+Alt+Q { quit; }
|
|
||||||
Mod+Alt+P { power-off-monitors; }
|
Mod+Ctrl+Shift+BracketLeft { quit; }
|
||||||
|
Mod+Ctrl+Shift+BracketRight { power-off-monitors; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Shift+Print { screenshot-window; }
|
||||||
|
|
||||||
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }
|
||||||
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
|
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
|
||||||
@ -637,7 +659,6 @@ in {
|
|||||||
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
|
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
|
||||||
XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; }
|
XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; }
|
||||||
|
|
||||||
|
|
||||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "5%+"; }
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "5%+"; }
|
||||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "s" "5%-"; }
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "s" "5%-"; }
|
||||||
Alt+XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "5%+" "-d" "${keyboard}::kbd_backlight"; }
|
Alt+XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "5%+" "-d" "${keyboard}::kbd_backlight"; }
|
||||||
@ -685,17 +706,12 @@ in {
|
|||||||
Mod+Shift+Ctrl+${up} { move-column-to-monitor-up; }
|
Mod+Shift+Ctrl+${up} { move-column-to-monitor-up; }
|
||||||
Mod+Shift+Ctrl+${right} { move-column-to-monitor-right; }
|
Mod+Shift+Ctrl+${right} { move-column-to-monitor-right; }
|
||||||
|
|
||||||
// Mod+Page_Down { focus-workspace-down; }
|
Mod+Next { focus-workspace-down; }
|
||||||
// Mod+Page_Up { focus-workspace-up; }
|
Mod+Prior { focus-workspace-up; }
|
||||||
// Mod+N { focus-workspace-down; }
|
Mod+Ctrl+Next { move-column-to-workspace-down; }
|
||||||
// Mod+E { focus-workspace-up; }
|
Mod+Ctrl+Prior { move-column-to-workspace-up; }
|
||||||
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
Mod+Shift+Next { move-workspace-down; }
|
||||||
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
Mod+Shift+Prior { move-workspace-up; }
|
||||||
|
|
||||||
Mod+Shift+Page_Down { move-workspace-down; }
|
|
||||||
Mod+Shift+Page_Up { move-workspace-up; }
|
|
||||||
// Mod+Shift+N { move-workspace-down; }
|
|
||||||
// Mod+Shift+U { move-workspace-up; }
|
|
||||||
|
|
||||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
@ -753,38 +769,24 @@ in {
|
|||||||
Mod+Ctrl+Shift+U { move-column-to-workspace 8; }
|
Mod+Ctrl+Shift+U { move-column-to-workspace 8; }
|
||||||
Mod+Ctrl+Shift+Y { move-column-to-workspace 9; }
|
Mod+Ctrl+Shift+Y { move-column-to-workspace 9; }
|
||||||
|
|
||||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
Mod+1 { focus-workspace 1; }
|
||||||
|
Mod+2 { focus-workspace 2; }
|
||||||
Mod+Tab { focus-workspace-previous; }
|
Mod+3 { focus-workspace 3; }
|
||||||
|
Mod+4 { focus-workspace 4; }
|
||||||
Mod+Ctrl+Comma { consume-or-expel-window-left; }
|
Mod+5 { focus-workspace 5; }
|
||||||
Mod+Ctrl+Period { consume-or-expel-window-right; }
|
Mod+6 { focus-workspace 6; }
|
||||||
|
Mod+7 { focus-workspace 7; }
|
||||||
Mod+Comma { set-column-width "-10%"; }
|
Mod+8 { focus-workspace 8; }
|
||||||
Mod+Period { set-column-width "+10%"; }
|
Mod+9 { focus-workspace 9; }
|
||||||
Mod+T { switch-preset-column-width; }
|
Mod+Ctrl+Shift+1 { move-column-to-workspace 1; }
|
||||||
Mod+H { set-column-width "50%"; }
|
Mod+Ctrl+Shift+2 { move-column-to-workspace 2; }
|
||||||
Mod+Shift+Comma { set-window-height "-10%"; }
|
Mod+Ctrl+Shift+3 { move-column-to-workspace 3; }
|
||||||
Mod+Shift+Period { set-window-height "+10%"; }
|
Mod+Ctrl+Shift+4 { move-column-to-workspace 4; }
|
||||||
Mod+Shift+T { reset-window-height; }
|
Mod+Ctrl+Shift+5 { move-column-to-workspace 5; }
|
||||||
|
Mod+Ctrl+Shift+6 { move-column-to-workspace 6; }
|
||||||
Mod+V { toggle-column-tabbed-display; }
|
Mod+Ctrl+Shift+7 { move-column-to-workspace 7; }
|
||||||
Mod+M { maximize-column; }
|
Mod+Ctrl+Shift+8 { move-column-to-workspace 8; }
|
||||||
Mod+G { switch-focus-between-floating-and-tiling; }
|
Mod+Ctrl+Shift+9 { move-column-to-workspace 9; }
|
||||||
Mod+C { center-column; }
|
|
||||||
Mod+Ctrl+M { fullscreen-window; }
|
|
||||||
Mod+Ctrl+G { toggle-window-floating; }
|
|
||||||
|
|
||||||
Mod+Ctrl+Q { close-window; }
|
|
||||||
Mod+Minus { set-column-width "-10%"; }
|
|
||||||
Mod+Equal { set-column-width "+10%"; }
|
|
||||||
|
|
||||||
Mod+Escape { switch-layout "next"; }
|
|
||||||
// Mod+Shift+Space { switch-layout "prev"; }
|
|
||||||
|
|
||||||
Print { screenshot; }
|
|
||||||
Ctrl+Print { screenshot-screen; }
|
|
||||||
Alt+Print { screenshot-window; }
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
Reference in New Issue
Block a user