diff --git a/header.sh b/header.sh new file mode 100755 index 0000000..829267e --- /dev/null +++ b/header.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +row1() { + m="0" + printf "\e[38;5;$((m*8))m██\e[48;5;$((m*8+1))m\e[m" + for n in {1..6};do + printf "\e[38;5;$((n+m*8))m██\e[48;5;$((n+m*8+1))m\e[m" + done + printf "\e[m\e[38;5;$((m*8+7))m██\e[m" +} + +row2() { + m="1" + printf "\e[38;5;$((m*8))m██\e[38;5;$((m*8+1))m\e[48;5;$((m*8))m\e[m" + for n in {1..6};do + printf "\e[38;5;$((n+m*8))m██\e[38;5;$((n+m*8+1))m\e[48;5;$((n+m*8))m\e[m" + done + printf "\e[m\e[38;5;$((m*8+7))m██\e[m" +} + +row1r() { + m="0" + printf "\e[38;5;$((m*8+7))m██\e[48;5;$((m*8+6))m\e[m" + for n in {6..1};do + printf "\e[38;5;$((n+m*8))m██\e[48;5;$((n+m*8-1))m\e[m" + done + printf "\e[m\e[38;5;$((m))m██\e[m" +} + +row2r() { + m="1" + printf "\e[38;5;$((m*8+7))m██\e[38;5;$((m*8+6))m\e[48;5;$((m*8+7))m\e[m" + for n in {6..1};do + printf "\e[38;5;$((n+m*8))m██\e[38;5;$((n+m*8-1))m\e[48;5;$((n+m*8))m\e[m" + done + printf "\e[m\e[38;5;$((m*8))m██\e[m" +} + +for n in {0..4}; do + row1 +# row1r + printf "\n" + row2 +# row2r + printf "\n" +done diff --git a/home/home.nix b/home/home.nix index b0efb08..23c80ca 100644 --- a/home/home.nix +++ b/home/home.nix @@ -109,7 +109,7 @@ }; settings = { foreground = "#d3dae3"; - background = "#181b28"; + background = "#060604"; cursor = "#d3dae3"; selection_foreground = "#fdbc4b"; selection_background = "#1e2233"; @@ -154,7 +154,40 @@ enableVteIntegration = true; autocd = true; defaultKeymap = "viins"; - initExtra = "\n[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh\n"; + initExtra = " +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +la_culr() +{ + ls -ralhX --color $@ | culr +} + +ls_culr() +{ + ls -rlhX --color $@ | culr +} + +ps_culr() +{ + ps ww$@ | culr +} + +alias fresh=\"clear; ~/.nix/header.sh\" +alias icat=\"kitty +kitten icat\" +alias chmox=\"chmod +x\" +alias gs=\"git status\" +alias gcl=\"git clone\" +alias ga=\"git add\" +alias gcb=\"git checkout -b\" +alias gco=\"git checkout\" +alias gl=\"git pull\" +alias gp=\"git push\" +alias l=\"ls_culr\" +alias la=\"la_culr\" +alias p=\"ps_culr\" +alias mnt=\"mount | column -t | culr\" +fresh +"; plugins = [ { name = "powerlevel10k";