diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-02-25 15:37:23 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-02-25 15:37:23 +0530 |
| commit | f488dd3c159f651ee98a58f6ed7115fe6727060f (patch) | |
| tree | a083943ca7ca6d5b4d1586334ffe9d8d48486941 /config | |
| parent | c75374422410abc28c65993f63ee73eb93ec6ebb (diff) | |
| download | nixos-config-f488dd3c159f651ee98a58f6ed7115fe6727060f.tar.gz nixos-config-f488dd3c159f651ee98a58f6ed7115fe6727060f.zip | |
config sync
Diffstat (limited to 'config')
| -rw-r--r-- | config/bottom.toml | 2 | ||||
| m--------- | config/nvim | 0 | ||||
| -rw-r--r-- | config/zsh/aliases/dev.zsh | 15 | ||||
| -rw-r--r-- | config/zsh/aliases/system.zsh | 4 |
4 files changed, 20 insertions, 1 deletions
diff --git a/config/bottom.toml b/config/bottom.toml index 69f48f3..f257478 100644 --- a/config/bottom.toml +++ b/config/bottom.toml @@ -1,7 +1,7 @@ [flags] left_legend = true rate = 700 -current_usage = true +current_usage = false case_sensitive = false regex = false temperature_type = "celsius" diff --git a/config/nvim b/config/nvim -Subproject 24532c4cf66ab42019c30c95f2e71960399b568 +Subproject 98c4b45bbf604061256e3800f964ba8a5f6e80e diff --git a/config/zsh/aliases/dev.zsh b/config/zsh/aliases/dev.zsh index 9dd4307..d0398ea 100644 --- a/config/zsh/aliases/dev.zsh +++ b/config/zsh/aliases/dev.zsh @@ -60,3 +60,18 @@ fix-interpreter() { nix-shell -p patchelf --run "patchelf --set-interpreter \$(patchelf --print-interpreter \$(which mkdir)) $@" } + +# Terminal through neovim +vt() { + nvim +term \ + +'norm i' \ + +"lua vim.fn.feedkeys([[$1]])" \ + +'set nonumber norelativenumber signcolumn=no' \ + +'autocmd TermClose * execute "qa"' \ + +'hi @_phenax.term-title guibg=#1a1824 guifg=#8e7ae3 gui=bold' \ + +'set winbar=%#@_phenax.term-title#%=nvim-term%='; +} + +p__nvim_virtual_terminal() { vt "$BUFFER"; } +zle -N p__nvim_virtual_terminal; +bindkey '^T' p__nvim_virtual_terminal; diff --git a/config/zsh/aliases/system.zsh b/config/zsh/aliases/system.zsh index 4123e19..e7a6635 100644 --- a/config/zsh/aliases/system.zsh +++ b/config/zsh/aliases/system.zsh @@ -50,3 +50,7 @@ setup_webcam_night() { --set-ctrl gain=64 } +limit_memory() { + local lim=${1:-100M}; shift 1; + systemd-run --user --scope -p MemoryHigh="$lim" -p MemorySwapMax="$lim" "$@"; +} |
