mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-09 18:51:33 +01:00
improved fastfetch theme, added ctrl+hjkl keybinds for moving in insert mode in neovim, and vim movement in zsh
This commit is contained in:
parent
609ae23f2a
commit
c79455e177
@ -8,105 +8,80 @@
|
||||
keys = "35";
|
||||
output = "90";
|
||||
};
|
||||
separator = " ➜ ";
|
||||
};
|
||||
|
||||
logo = {
|
||||
source = ./nixos.png;
|
||||
type = "kitty-direct";
|
||||
height = 15;
|
||||
width = 30;
|
||||
height = 10;
|
||||
width = 20;
|
||||
padding = {
|
||||
top = 3;
|
||||
left = 3;
|
||||
top = 2;
|
||||
left = 2;
|
||||
};
|
||||
};
|
||||
|
||||
modules = [
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌──────────────────────Hardware──────────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = "│ ";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = "│ ";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = "│ ";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└────────────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌──────────────────────Software──────────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = " OS -> ZaneyOS 2.3";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "│ ├ ";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = "│ ├ ";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = "└ └ ";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "wm";
|
||||
key = " WM";
|
||||
}
|
||||
{
|
||||
type = "wmtheme";
|
||||
key = "│ ├ ";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = "└ └ ";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└────────────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────────Uptime / Age────────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "command";
|
||||
key = "│ ";
|
||||
text = #bash
|
||||
''
|
||||
birth_install=$(stat -c %W /)
|
||||
current=$(date +%s)
|
||||
delta=$((current - birth_install))
|
||||
delta_days=$((delta / 86400))
|
||||
echo $delta_days days
|
||||
'';
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
key = "│ ";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└────────────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
"break"
|
||||
{
|
||||
type = "cpu";
|
||||
format = "{1} ({3}) @ {7}";
|
||||
key = "HW ";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = " ├ ";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = " └ ";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "kernel";
|
||||
key = "SW ";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = " ├ ";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = " └ ";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "wm";
|
||||
key = "WM ";
|
||||
}
|
||||
{
|
||||
type = "wmtheme";
|
||||
key = " ├ ";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = " └ ";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "uptime";
|
||||
key = "UP ";
|
||||
}
|
||||
{
|
||||
type = "command";
|
||||
key = " └ ";
|
||||
text =
|
||||
#bash
|
||||
''
|
||||
birth_install=$(stat -c %W /)
|
||||
current=$(date +%s)
|
||||
delta=$((current - birth_install))
|
||||
delta_days=$((delta / 86400))
|
||||
echo $delta_days days
|
||||
'';
|
||||
}
|
||||
"break"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -50,6 +50,30 @@
|
||||
action = "<cmd>Neotree toggle<cr>";
|
||||
desc = "File browser toggle";
|
||||
}
|
||||
{
|
||||
key = "<C-h>";
|
||||
mode = ["i"];
|
||||
action = "<Left>";
|
||||
desc = "Move left in insert mode";
|
||||
}
|
||||
{
|
||||
key = "<C-j>";
|
||||
mode = ["i"];
|
||||
action = "<Down>";
|
||||
desc = "Move down in insert mode";
|
||||
}
|
||||
{
|
||||
key = "<C-k>";
|
||||
mode = ["i"];
|
||||
action = "<Up>";
|
||||
desc = "Move up in insert mode";
|
||||
}
|
||||
{
|
||||
key = "<C-l>";
|
||||
mode = ["i"];
|
||||
action = "<Right>";
|
||||
desc = "Move right in insert mode";
|
||||
}
|
||||
];
|
||||
|
||||
theme = {
|
||||
|
@ -16,6 +16,10 @@
|
||||
display-drun = " Apps";
|
||||
display-run = " Run";
|
||||
display-filebrowser = " File";
|
||||
kb-row-up = "k";
|
||||
kb-row-down = "j";
|
||||
kb-mode-next = "l";
|
||||
kb-mode-previous = "h";
|
||||
};
|
||||
theme = let
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
|
@ -5,21 +5,24 @@
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
initExtra = ''
|
||||
bindkey "^J" up-line-or-history
|
||||
bindkey "^K" down-line-or-history
|
||||
bindkey "^H" backward-word
|
||||
bindkey "^J" down-line-or-history
|
||||
bindkey "^K" up-line-or-history
|
||||
bindkey "^L" forward-word
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
sv = "sudo nvim";
|
||||
v = "nvim";
|
||||
c = "clear";
|
||||
fr = "nh os switch --hostname ${profile}";
|
||||
fu = "nh os switch --hostname ${profile} --update";
|
||||
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
||||
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||
cat = "bat";
|
||||
man = "batman";
|
||||
ls = "eza --icons -a --group-directories-first -1";
|
||||
ll = "eza --icons -a --group-directories-first -1 --no-user --long";
|
||||
ls = "eza --icons --group-directories-first -1";
|
||||
ll = "eza --icons -a --group-directories-first -1 --no-user --long";
|
||||
tree = "eza --icons --tree --group-directories-first";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user