editor shit
This commit is contained in:
parent
633a966e52
commit
b11e8347c1
14 changed files with 160 additions and 16 deletions
|
|
@ -10,5 +10,6 @@
|
|||
./internet
|
||||
./sync
|
||||
./terminal
|
||||
./development
|
||||
];
|
||||
}
|
||||
|
|
|
|||
14
home/apps/development/default.nix
Normal file
14
home/apps/development/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./emacs.nix
|
||||
./neovim.nix
|
||||
./zed.nix
|
||||
];
|
||||
}
|
||||
20
home/apps/development/emacs.nix
Normal file
20
home/apps/development/emacs.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
emacs = {
|
||||
extraConfig = ''
|
||||
(setq standard-indent 2)
|
||||
'';
|
||||
extraPackages = epkgs: [
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
20
home/apps/development/emacs.nix~
Normal file
20
home/apps/development/emacs.nix~
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
emacs = {
|
||||
extraConfig = ''
|
||||
(setq standard-indent 2)
|
||||
'';
|
||||
extraPackages = epkgs: [
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/apps/development/neovim.nix
Normal file
23
home/apps/development/neovim.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
neovim = {
|
||||
plugins =
|
||||
with pkgs.vimPlugins;
|
||||
[
|
||||
telescope-nvim
|
||||
]
|
||||
++ [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/apps/development/zed.nix
Normal file
23
home/apps/development/zed.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs = {
|
||||
zed-editor = {
|
||||
extensions = [
|
||||
"nix"
|
||||
"toml"
|
||||
"rust"
|
||||
"html"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -79,16 +79,16 @@ in
|
|||
SearchEngines = {
|
||||
Default = "kagi";
|
||||
Add = [
|
||||
{
|
||||
Name = "MartyTF's Series of Tubes";
|
||||
URLTemplate = "https://search.marty.tf/?q={searchTerms}";
|
||||
IconURL = "https://wiki.nixos.org/favicon.ico";
|
||||
Alias = "@sgx";
|
||||
}
|
||||
# {
|
||||
# Name = "${osConfig.user.userName}'s Series of Tubes";
|
||||
# URLTemplate = "https://${osConfig.server.misc.searxng.subdomain}.${osConfig.networking.domain}/?q={searchTerms}";
|
||||
# IconURL = "https://docs.searxng.org/_static/searxng-wordmark.svg";
|
||||
# Alias = "@sgx";
|
||||
# }
|
||||
{
|
||||
Name = "kagi";
|
||||
URLTemplate = "https://kagi.com/search?q={searchTerms}";
|
||||
IconURL = "https://kagi.com/asset/597c5c3/kagi_assets/logos/search.png?v=679b1c5d38deac3ff084fc704aa36694454572a2";
|
||||
IconURL = "https://kagi.com/asset/597c5c3/kagi_assets/logos/search.png";
|
||||
Alias = "@k";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ in
|
|||
accel-profile "flat"
|
||||
accel-speed 0.0
|
||||
scroll-method "two-finger"
|
||||
|
||||
|
||||
|
||||
}
|
||||
mouse {
|
||||
|
|
@ -61,10 +61,11 @@ in
|
|||
|
||||
binds {
|
||||
//Applications
|
||||
${modifier}+${osConfig.keybinds.hotkeys.terminal} hotkey-overlay-title="Open Terminal" { spawn "${osConfig.apps.terminal.binary}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.terminal} hotkey-overlay-title="Open Terminal" { spawn "${osConfig.apps.terminal.default}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.browser} hotkey-overlay-title="Open Browser" { spawn "${osConfig.apps.internet.browsers.default}";}
|
||||
${modifier}+${osConfig.keybinds.hotkeys.launcher} hotkey-overlay-title="Open Launcher" { spawn-sh "${nsipc} launcher toggle || walker";}
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} hotkey-overlay-title="Open Editor" { spawn "${osConfig.apps.development.editor.default}";}
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} hotkey-overlay-title="Open Editor" { spawn-sh "$EDITOR";}
|
||||
${modifier}+B hotkey-overlay-title="Open Password Manager" { spawn-sh "rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\"); sleep 30; rbw lock";}
|
||||
|
||||
//Window Management
|
||||
${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue