mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-22 21:05:50 +08:00
update niri
This commit is contained in:
parent
c801ef5d60
commit
a17c29b11b
4 changed files with 24 additions and 45 deletions
|
|
@ -1,47 +1,15 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
# tabIndicatorConfig = # kdl
|
||||
# ''
|
||||
# tab-indicator {
|
||||
# hide-when-single-tab
|
||||
# gap 5
|
||||
# width 6
|
||||
# length total-proportion=0.5
|
||||
# position "right"
|
||||
# gaps-between-tabs 2
|
||||
# }
|
||||
# '';
|
||||
# shadowConfig =
|
||||
# # kdl
|
||||
# ''
|
||||
# shadow {
|
||||
# on
|
||||
# spread 0
|
||||
# softness 10
|
||||
# color "#000000dd"
|
||||
# }
|
||||
# '';
|
||||
# tabBinds = # kdl
|
||||
# ''
|
||||
# Mod+T { toggle-column-tabbed-display; }
|
||||
# '';
|
||||
extraConfig =
|
||||
# kdl
|
||||
'''';
|
||||
finalNiriConfig =
|
||||
# builtins.replaceStrings
|
||||
# [ "layout {" ]
|
||||
# [
|
||||
# ("layout {\n" + shadowConfig + "\n" + tabIndicatorConfig)
|
||||
# ]
|
||||
# (config.programs.niri.finalConfig + "\n" + extraConfig)
|
||||
# |>
|
||||
# builtins.replaceStrings
|
||||
# [ "binds {" ]
|
||||
# [
|
||||
# ("binds {\n" + tabBinds)
|
||||
# ];
|
||||
config.programs.niri.finalConfig + "\n" + extraConfig;
|
||||
builtins.replaceStrings
|
||||
[ "output \"${config.lib.monitors.mainMonitorName}\" {" ]
|
||||
[ "output \"${config.lib.monitors.mainMonitorName}\" {\nfocus-at-startup" ]
|
||||
config.programs.niri.finalConfig
|
||||
+ "\n"
|
||||
+ extraConfig;
|
||||
in
|
||||
{
|
||||
home.file.".config/niri/config-override.kdl".text = finalNiriConfig;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ in
|
|||
(niriAction "super + ctrl + f" "toggle-windowed-fullscreen")
|
||||
(niriAction "super + c" "center-column")
|
||||
(niriAction "super + {_, shift +} {minus, equal}" "set-{column\\-width, window\\-height} \"{\\-, +}10%\"")
|
||||
(niriAction "super + alt + {h, j, k, l}" "move-floating-window -{x \\-10, y +10, y \\-10, x +10}")
|
||||
(niriAction "{ctrl +, alt +} print" "screenshot-{screen, window}")
|
||||
(niriAction "print" "screenshot")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue