diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-04-16 10:14:57 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-04-16 10:14:57 +0200 |
| commit | 1d1bc409f654348e7ded830ed439d8f04def62c6 (patch) | |
| tree | 73d401aa26d4ba0e6388af96d42416767dfbc60b /accounts/gkleen@sif/niri.nix | |
| parent | 32f519faed4270f010e6f41708a8cd7057ed1e7e (diff) | |
| download | nixos-1d1bc409f654348e7ded830ed439d8f04def62c6.tar nixos-1d1bc409f654348e7ded830ed439d8f04def62c6.tar.gz nixos-1d1bc409f654348e7ded830ed439d8f04def62c6.tar.bz2 nixos-1d1bc409f654348e7ded830ed439d8f04def62c6.tar.xz nixos-1d1bc409f654348e7ded830ed439d8f04def62c6.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/niri.nix')
| -rw-r--r-- | accounts/gkleen@sif/niri.nix | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/accounts/gkleen@sif/niri.nix b/accounts/gkleen@sif/niri.nix index 7fb5b0c6..5f10408d 100644 --- a/accounts/gkleen@sif/niri.nix +++ b/accounts/gkleen@sif/niri.nix | |||
| @@ -656,9 +656,8 @@ in { | |||
| 656 | (plain "default-column-width" [(sleaf "proportion" (2. / 3.))]) | 656 | (plain "default-column-width" [(sleaf "proportion" (2. / 3.))]) |
| 657 | ]) | 657 | ]) |
| 658 | (plain "window-rule" [ | 658 | (plain "window-rule" [ |
| 659 | (sleaf "match" { app-id = "^kitty$"; }) | ||
| 660 | (sleaf "match" { app-id = "^Alacritty$"; }) | 659 | (sleaf "match" { app-id = "^Alacritty$"; }) |
| 661 | (sleaf "match" { app-id = "^(kitty|Alacritty)-play$"; }) | 660 | (sleaf "match" { app-id = "^Alacritty-play$"; }) |
| 662 | (plain "default-column-width" [(sleaf "proportion" (1. / 3.))]) | 661 | (plain "default-column-width" [(sleaf "proportion" (1. / 3.))]) |
| 663 | ]) | 662 | ]) |
| 664 | 663 | ||
| @@ -679,7 +678,7 @@ in { | |||
| 679 | (plain "default-column-width" [(sleaf "proportion" 1.)]) | 678 | (plain "default-column-width" [(sleaf "proportion" 1.)]) |
| 680 | ]) | 679 | ]) |
| 681 | (plain "window-rule" [ | 680 | (plain "window-rule" [ |
| 682 | (sleaf "match" { app-id = "^(kitty|Alacritty)-play$"; }) | 681 | (sleaf "match" { app-id = "^Alacritty-play$"; }) |
| 683 | (sleaf "open-on-workspace" "vid") | 682 | (sleaf "open-on-workspace" "vid") |
| 684 | (sleaf "open-focused" false) | 683 | (sleaf "open-focused" false) |
| 685 | ]) | 684 | ]) |
| @@ -757,21 +756,10 @@ in { | |||
| 757 | "Mod+Slash".action = show-hotkey-overlay; | 756 | "Mod+Slash".action = show-hotkey-overlay; |
| 758 | 757 | ||
| 759 | "Mod+Return".action = spawn (spawnTerminal {}); | 758 | "Mod+Return".action = spawn (spawnTerminal {}); |
| 760 | "Mod+Shift+Return".action = | 759 | "Mod+Shift+Return".action = spawn (spawnTerminal { |
| 761 | let | 760 | command = lib.getExe config.programs.nushell.package; |
| 762 | nushellKitty = pkgs.symlinkJoin { | 761 | extraArgs = ["-o" "terminal.shell.program=${lib.escapeShellArg (lib.getExe config.programs.nushell.package)}"]; |
| 763 | name = "nushell-kitty"; | 762 | }); |
| 764 | paths = [ config.programs.kitty.package ]; | ||
| 765 | buildInputs = [ pkgs.makeWrapper ]; | ||
| 766 | postBuild = '' | ||
| 767 | wrapProgram $out/bin/kitty \ | ||
| 768 | --add-flags "--config ${pkgs.writeText "kitty.conf" '' | ||
| 769 | include $HOME/${config.xdg.configFile."kitty/kitty.conf".target} | ||
| 770 | shell ${lib.getExe config.programs.nushell.package} | ||
| 771 | ''}" | ||
| 772 | ''; | ||
| 773 | }; | ||
| 774 | in spawn (lib.getExe' nushellKitty "kitty"); | ||
| 775 | "Mod+Q".action = close-window; | 763 | "Mod+Q".action = close-window; |
| 776 | "Mod+O".action = spawn (lib.getExe config.programs.fuzzel.package); | 764 | "Mod+O".action = spawn (lib.getExe config.programs.fuzzel.package); |
| 777 | "Mod+Shift+O".action = spawn (lib.getExe config.programs.fuzzel.package) "--list-executables-in-path"; | 765 | "Mod+Shift+O".action = spawn (lib.getExe config.programs.fuzzel.package) "--list-executables-in-path"; |
| @@ -835,21 +823,10 @@ in { | |||
| 835 | notify-send "$QALC_RES" | 823 | notify-send "$QALC_RES" |
| 836 | ''; | 824 | ''; |
| 837 | })); | 825 | })); |
| 838 | "Mod+Shift+U".action = | 826 | "Mod+Shift+U".action = spawn (spawnTerminal { |
| 839 | let | 827 | command = lib.getExe pkgs.libqalculate; |
| 840 | qalcKitty = pkgs.symlinkJoin { | 828 | extraArgs = ["-o" "terminal.shell.program=${lib.escapeShellArg (lib.getExe pkgs.libqalculate)}"]; |
| 841 | name = "qalc-kitty"; | 829 | }); |
| 842 | paths = [ config.programs.kitty.package ]; | ||
| 843 | buildInputs = [ pkgs.makeWrapper ]; | ||
| 844 | postBuild = '' | ||
| 845 | wrapProgram $out/bin/kitty \ | ||
| 846 | --add-flags "--config ${pkgs.writeText "kitty.conf" '' | ||
| 847 | include $HOME/${config.xdg.configFile."kitty/kitty.conf".target} | ||
| 848 | shell ${lib.getExe pkgs.libqalculate} | ||
| 849 | ''}" | ||
| 850 | ''; | ||
| 851 | }; | ||
| 852 | in spawn (lib.getExe' qalcKitty "kitty"); | ||
| 853 | # "Mod+E".action = spawn (lib.getExe (pkgs.writeShellApplication { | 830 | # "Mod+E".action = spawn (lib.getExe (pkgs.writeShellApplication { |
| 854 | # name = "emoji-fuzzel"; | 831 | # name = "emoji-fuzzel"; |
| 855 | # runtimeInputs = with pkgs; [ config.programs.fuzzel.package wtype wl-clipboard-rs ]; | 832 | # runtimeInputs = with pkgs; [ config.programs.fuzzel.package wtype wl-clipboard-rs ]; |
