mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
feat: various things, particularly vr
This commit is contained in:
parent
e9b291078d
commit
7e70c182e5
24 changed files with 337 additions and 65 deletions
|
|
@ -37,8 +37,8 @@ in {
|
|||
"Mod+Return".action = sh ''${getExe config.programs.alacritty.package}'';
|
||||
"Mod+T".action.toggle-window-floating = {};
|
||||
#"Mod+D".action = sh ''${getExe config.programs.fuzzel.package} -D no -T "${getExe config.programs.alacritty.package} --command"'';
|
||||
"Mod+D".action = sh ''${noctalia} launcher toggle'';
|
||||
"Mod+Shift+D".action = sh ''${noctalia} launcher clipboard'';
|
||||
#"Mod+D".action = sh ''${noctalia} launcher toggle'';
|
||||
#"Mod+Shift+D".action = sh ''${noctalia} launcher clipboard'';
|
||||
#"Mod+Escape".action = sh ''${getExe config.programs.wlogout.package} -p layer-shell'';
|
||||
"Mod+Escape".action = sh ''${noctalia} controlCenter toggle'';
|
||||
"Mod+Shift+Escape".action = sh ''${noctalia} sessionMenu toggle'';
|
||||
|
|
|
|||
50
home/environments/niri/fzfdapter.nix
Normal file
50
home/environments/niri/fzfdapter.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (inputs.fzfdapter.packages.${pkgs.system}) fzfdapter;
|
||||
terminal_exec = args: "${getExe pkgs.alacritty}${
|
||||
if args != ""
|
||||
then " ${args} "
|
||||
else " "
|
||||
}-e";
|
||||
in {
|
||||
home.packages = [
|
||||
fzfdapter
|
||||
pkgs.skim
|
||||
];
|
||||
|
||||
xdg.configFile."fzfdapter/config.toml".source = (pkgs.formats.toml {}).generate "fzfdapter-config" {
|
||||
terminal_exec = terminal_exec "";
|
||||
fuzzy_exec = "${getExe' pkgs.skim "sk"} --layout=reverse-list";
|
||||
};
|
||||
|
||||
# TODO: `niri msg focused-output` to handle resolution(s)
|
||||
programs.niri.settings = let
|
||||
sh = config.lib.niri.actions.spawn "sh" "-c";
|
||||
in {
|
||||
binds = {
|
||||
"Mod+D".action = sh "${terminal_exec "-T fzfdapter --option 'font.size=18' --class fzfdapter"} ${getExe fzfdapter} --mode all";
|
||||
};
|
||||
window-rules = [
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "^fzfdapter$";
|
||||
title = "fzfdapter";
|
||||
}
|
||||
];
|
||||
max-height = 1000;
|
||||
max-width = 750;
|
||||
min-height = 1000;
|
||||
min-width = 750;
|
||||
open-focused = true;
|
||||
open-floating = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -196,8 +196,8 @@ in {
|
|||
preferredPlayer = "";
|
||||
};
|
||||
ui = {
|
||||
fontDefault = "CozetteCrossedSevenVector";
|
||||
fontFixed = "CozetteCrossedSevenVector";
|
||||
fontDefault = "Atkinson Hyperlegible Next";
|
||||
fontFixed = "Atkinson Hyperlegible Mono";
|
||||
fontDefaultScale = 1;
|
||||
fontFixedScale = 1;
|
||||
monitorsScaling = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue