diff --git a/hosts/fw/configuration.nix b/hosts/fw/configuration.nix index 150a625..c49107c 100644 --- a/hosts/fw/configuration.nix +++ b/hosts/fw/configuration.nix @@ -480,6 +480,7 @@ with lib; yq yt-dlp yubioath-flutter + nautilus ]; programs.ydotool.enable = true; diff --git a/hosts/fw/home.nix b/hosts/fw/home.nix index 7d47336..ae1dce0 100644 --- a/hosts/fw/home.nix +++ b/hosts/fw/home.nix @@ -10,6 +10,7 @@ ../../modules/home-manager/git.nix ../../modules/home-manager/ssh.nix ../../modules/home-manager/bash.nix + ../../modules/home-manager/vim-alacritty-desktop.nix ]; # This value determines the Home Manager release that your configuration is diff --git a/modules/home-manager/bash.nix b/modules/home-manager/bash.nix index d691982..0000c74 100644 --- a/modules/home-manager/bash.nix +++ b/modules/home-manager/bash.nix @@ -69,8 +69,8 @@ local -a lines mapfile -t lines < <(command ls --color=always --quoting-style=shell-escape -lArth) - if (( ''${#lines[@]} > 5 )); then - printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 5 ))"; + if (( ''${#lines[@]} > 10 )); then + printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 10 ))"; printf '%s\n' "''${lines[@]: -4}" else printf '%s\n' "''${lines[@]}" diff --git a/modules/home-manager/vim-alacritty-desktop.nix b/modules/home-manager/vim-alacritty-desktop.nix new file mode 100644 index 0000000..ca5c365 --- /dev/null +++ b/modules/home-manager/vim-alacritty-desktop.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +{ + xdg.dataFile."applications/vim.desktop".text = '' + [Desktop Entry] + Type=Application + Name=Vim + GenericName=Text Editor + Comment=Edit files with Vim in Alacritty + Exec=${pkgs.alacritty}/bin/alacritty -e ${pkgs.vim}/bin/vim %F + Terminal=false + Icon=vim + Categories=Utility;TextEditor; + MimeType=application/json;application/x-docbook+xml;text/x-shellscript;application/x-shellscript;application/x-yaml;application/x-zerosize;text/markdown;text/plain;text/x-cmake;text/x-python;text/x-script.python; + NoDisplay=true + ''; +}