diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-06-29 14:45:20 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-06-29 14:45:20 +0530 |
| commit | f8f66295d90c6db724da519cc1be1ef1233ecdf5 (patch) | |
| tree | 42b176ac7303f95c897671018b555c38765737f9 /config | |
| parent | edc4ef0106f7d4a37d367e81ae9e6470dbdc7087 (diff) | |
| download | nixos-config-f8f66295d90c6db724da519cc1be1ef1233ecdf5.tar.gz nixos-config-f8f66295d90c6db724da519cc1be1ef1233ecdf5.zip | |
config sync:
Diffstat (limited to '')
| -rw-r--r-- | config/lf/lfrc | 24 | ||||
| -rw-r--r-- | config/zsh/zshrc | 4 | ||||
| -rw-r--r-- | configuration.nix | 3 |
3 files changed, 20 insertions, 11 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc index 3a9b26d..98c495e 100644 --- a/config/lf/lfrc +++ b/config/lf/lfrc @@ -4,9 +4,11 @@ set icons true set ignorecase true set relativenumber true set ratios 2:3 +set dirpreviews false -set preview false +set preview true set previewer ~/.config/lf/previewer.sh +set cursorpreviewfmt "\033[7m" cmd open_internal ${{ case $(file --mime-type "$f" -bL) in @@ -39,12 +41,6 @@ cmd move_to_trash ${{ done; }} -cmd rename %{{ - printf " Rename to: " - read ans - mv -i "$f" "$ans" -}} - cmd show_images ${{ if [ "$(echo "$fx" | wc -l)" = "1" ]; then sxiv $(dirname "$fx") & @@ -53,6 +49,18 @@ cmd show_images ${{ fi; }} +cmd unzip_zip ${{ + unzip $f; +}} + +cmd unzip_7z ${{ + nix-zsh -p p7zip --run '7z x $f'; +}} + +cmd unzip_rar ${{ + NIXPKGS_ALLOW_UNFREE=1 nix-zsh -p unrar --run 'unrar x $f'; +}} + # }}} # Unset old keys {{{ @@ -74,8 +82,6 @@ map x cut map y copy map mf mkfile map md mkdir -map rr rename - # View changes map <enter> open_internal diff --git a/config/zsh/zshrc b/config/zsh/zshrc index 9bf0e26..2182122 100644 --- a/config/zsh/zshrc +++ b/config/zsh/zshrc @@ -19,7 +19,9 @@ for f in $ZSH_CUSTOM_CONF_FILES/*.zsh; do source $f; done; source $ZSH_CUSTOM_CONF_FILES/aliases.zsh; # Direnv setup -eval "$(direnv hook zsh)" +if [[ "$DIRENV_DISABLE_HOOK" != "1" ]]; then + eval "$(direnv hook zsh)" +fi; # Plugins # source ~/.config/zshplugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh; diff --git a/configuration.nix b/configuration.nix index b41be4d..40796f0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -57,7 +57,8 @@ in # }; # }; - hardware.bluetooth.enable = false; + # NOTE: Enable bluetooth using this and then use bluetoothctl + # hardware.bluetooth.enable = true; # services.blueman.enable = true; # services.vdirsyncer = { |
