diff --git a/home.nix b/home.nix index e5130d6..0a01d85 100644 --- a/home.nix +++ b/home.nix @@ -38,11 +38,10 @@ obs-studio bitwarden hyprland-protocols waybar swww hyprland-autoname-workspaces rofi wlogout imv mpv pavucontrol fontpreview gtk2fontsel - lynx tldr fzf figlet delta ripgrep + lynx tldr fzf figlet delta ripgrep lolcat libinput-gestures dotool brightnessctl wev gnome.nautilus gnome.gnome-themes-extra gnome.adwaita-icon-theme gnome.gnome-tweaks gtk3 gtk4 lxappearance element sssnake pipes - # # You can also create simple shell scripts directly inside your # # configuration. For example, this adds a command 'my-hello' to your # # environment: @@ -59,6 +58,35 @@ '') + (writeShellScriptBin "nxfetch" '' + logo=$(echo -e " + + ⠀⠀⠀⠀⠰⣿⣧⠀⠀⠹⣿⣧⠀⣴⣿⠆⠀⠀⠀⠀ OS + ⠀⠀⠀⣀⣀⣹⣿⣧⣀⣀⠘⣿⣿⣿⠏⠀⠀⠀⠀⠀ DE/WM + ⠀⠀⠼⠿⠿⠿⠿⠿⠿⠿⠦⠘⣿⣿⡀⠀⣼⣧⠀⠀ TERM + ⠀⠀⠀⠀⢠⣶⡶⠀⠀⠀⠀⠀⠈⠿⢁⣼⣿⠋⠀⠀ SHELL + ⢾⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⡷ ISHELL + ⠀⠀⣠⣿⡟⢁⣶⡀⠀⠀⠀⠀⠀⠾⠿⠃⠀⠀⠀⠀ KERNEL + ⠀⠀⢻⡟⠀⠈⢿⣿⡄⠲⣶⣶⣶⣶⣶⣶⣶⡖⠀⠀ EDITOR + ⠀⠀⠀⠀⠀⣰⣿⣿⣿⡄⠉⠉⢻⣿⣏⠉⠉⠀⠀⠀ TFM + ⠀⠀⠀⠀⠰⣿⠟⠀⢻⣿⣆⠀⠀⠻⣿⠆⠀⠀⠀⠀ PROMPT + + " | lolcat --force) + + msg=" + $(echo -e "$logo" | sed -n 3p): $(cat /etc/*-release | grep PRETTY_NAME | cut -c 14- | rev | cut -c 2- | rev) + $(echo -e "$logo" | sed -n 4p): ''${DESKTOP_SESSION^} + $(echo -e "$logo" | sed -n 5p): ''${TERM^} + $(echo -e "$logo" | sed -n 6p): ''${SHELL} + $(echo -e "$logo" | sed -n 7p): fish + $(echo -e "$logo" | sed -n 8p): ''$(uname -r) + $(echo -e "$logo" | sed -n 9p): ''${EDITOR} + $(echo -e "$logo" | sed -n 10p): $(yazi --version) + $(echo -e "$logo" | sed -n 11p): $(starship --version | head -n 1) + " + echo -e "$msg" + '') + # only works on spec arch, chage url for others (stdenv.mkDerivation { name = "easycommit"; @@ -358,7 +386,7 @@ lt2 = "eza --icons --git --smart-group --group-directories-first --long --tree -L 2"; sr = "sudo reboot"; nf = "neofetch"; - nxf = "neofetch"; + nxf = "nxfetch"; nn = "nano"; m = "micro"; c = "codium"; @@ -379,10 +407,11 @@ ''; }; }; - # promptInit = '' - # set -x -g STARSHIP_CONFIG "${./shell/starship.toml}" - # ${pkgs.starship}/bin/starship init fish | source - # ''; + interactiveShellInit = '' + set -g fish_greeting + nxfetch + ${pkgs.starship}/bin/starship init fish | source + ''; };