Compare commits
3 commits
0eead51616
...
70f4f215c0
| Author | SHA1 | Date | |
|---|---|---|---|
| 70f4f215c0 | |||
| 7807182d18 | |||
| c665e70f83 |
4 changed files with 21 additions and 2 deletions
|
|
@ -480,6 +480,7 @@ with lib;
|
|||
yq
|
||||
yt-dlp
|
||||
yubioath-flutter
|
||||
nautilus
|
||||
];
|
||||
programs.ydotool.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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[@]}"
|
||||
|
|
|
|||
17
modules/home-manager/vim-alacritty-desktop.nix
Normal file
17
modules/home-manager/vim-alacritty-desktop.nix
Normal file
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue