From 833a30aef8c87e1ff1513a6af2b7bbdc0515bafd Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 3 Dec 2024 15:42:47 +0100 Subject: [PATCH 1/4] fix: terminal settings --- .Xresources | 2 +- .zshrc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.Xresources b/.Xresources index bd42b92..ed5a3c6 100644 --- a/.Xresources +++ b/.Xresources @@ -7,7 +7,7 @@ XTerm*termName: xterm-256color XTerm*background: rgb:00/00/00 XTerm*foreground: white -XTerm*geometry: 100x60 +XTerm*geometry: 90x40 ! To dump mono fonts: ! fc-list :scalable=true:spacing=mono: family | sort diff --git a/.zshrc b/.zshrc index d5d94e0..98f6b58 100644 --- a/.zshrc +++ b/.zshrc @@ -468,7 +468,6 @@ export BROWSER=firefox export EDITOR=vi export LESS=-iFRS export SYSTEMD_LESS='iFRSXMK' -export VISUAL=bat ### From 624eda03befeec67ff1289e670b1d9926d1e56af Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 4 Dec 2024 16:43:39 +0100 Subject: [PATCH 2/4] doc: user flatpak --- .README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.README.md b/.README.md index 84ed918..be1feeb 100644 --- a/.README.md +++ b/.README.md @@ -57,6 +57,8 @@ Mask `onedrive` service for new user: ## Debian Packages {#debian} +TODO: dlocate / plocateā€¦ + ### Installation ```sh @@ -265,6 +267,10 @@ asdf plugin add python for Plugin in $(asdf plugin list); { echo $Plugin; asdf list $Plugin } ``` +### Updates + +TODO + ## Newer Debian packages {#newer_versions} ### Flatpak @@ -275,6 +281,14 @@ for Plugin in $(asdf plugin list); { echo $Plugin; asdf list $Plugin } TODO: [Where are all the installed flatpak apps .desktop files located](https://github.com/flatpak/flatpak/issues/1286) +#### User Configuration + +```sh +flatpak remote-add --user --if-not-exists \ + --subset=verified_floss flathub https://dl.flathub.org/repo/flathub.flatpakrepo +flatpak install --user org.mozilla.firefox +``` + #### Overrides ```sh @@ -539,6 +553,8 @@ bat ~/.config/nvim/README.md ### Dependencies +- TODO: Debian 13 packages + - kitty / NerdFont - Archives Management: From 00849e0fcfc95591951519989cec5e5736e30078 Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 4 Dec 2024 16:45:27 +0100 Subject: [PATCH 3/4] feat: Welcome message --- .vimrc | 1 + .zshrc | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.vimrc b/.vimrc index ba316c9..9df4d8e 100644 --- a/.vimrc +++ b/.vimrc @@ -13,6 +13,7 @@ set relativenumber set scrolloff=2 set shiftwidth=2 set smartcase +set undofile set nowrap set nowrapscan diff --git a/.zshrc b/.zshrc index 98f6b58..8220be2 100644 --- a/.zshrc +++ b/.zshrc @@ -535,3 +535,26 @@ compdef locate=glocate # Hide "parameters" (i.e. environment variables) when looking for a "command" zstyle ':completion:*:-command-:*' tag-order '!parameters' + + +### +### Welcome Message +### + +grc --colour=on df -h | grep -v 'tmpfs\|none' +echo + +if [[ -e .welcome ]]; then + cat .welcome +elif [[ -e $HOME/.welcome ]]; then + cat $HOME/.welcome +fi + +setopt nullglob +if (( ${#$(echo ~/QubesIncoming/*(F))} )); then + rmdir --ignore-fail-on-non-empty ~/QubesIncoming/* + find ~/QubesIncoming ! -type d -printf "%5kk %p\n" | + sort -k2,9 | + sed -e "s:$HOME:~:" +fi +setopt nonullglob From 9da3e1ab642d832380555477b238e8c649965c1c Mon Sep 17 00:00:00 2001 From: Michel Date: Fri, 6 Dec 2024 11:22:58 +0100 Subject: [PATCH 4/4] feat: login --- .zshrc | 6 ++---- bin/once-connected.zsh | 13 ++++--------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.zshrc b/.zshrc index 8220be2..98f4131 100644 --- a/.zshrc +++ b/.zshrc @@ -425,12 +425,11 @@ whiptail_menu() { alias -g D='$(date +%Y-%m-%d_%H-%M-%S)' alias -g E='2> /dev/null' -alias -g G='|& grep -i' +alias -g G='|& rg -i' alias -g H='| head' alias -g HL='--help |& less -r' alias -g L='| less' alias -g N='&> /dev/null' -alias -g P='| peco' alias -g S='| sort' alias -g T='| tail' @@ -541,7 +540,7 @@ zstyle ':completion:*:-command-:*' tag-order '!parameters' ### Welcome Message ### -grc --colour=on df -h | grep -v 'tmpfs\|none' +grc --colour=on df -h --output=source,size,pcent,target | grep -v 'tmpfs\|none' echo if [[ -e .welcome ]]; then @@ -552,7 +551,6 @@ fi setopt nullglob if (( ${#$(echo ~/QubesIncoming/*(F))} )); then - rmdir --ignore-fail-on-non-empty ~/QubesIncoming/* find ~/QubesIncoming ! -type d -printf "%5kk %p\n" | sort -k2,9 | sed -e "s:$HOME:~:" diff --git a/bin/once-connected.zsh b/bin/once-connected.zsh index 9613436..d867ddf 100755 --- a/bin/once-connected.zsh +++ b/bin/once-connected.zsh @@ -1,8 +1,6 @@ #!/bin/zsh # vi:spl=en -alias xterm='xterm -bg black -fg white -fa Hack -fs 10' - ## Execution Log # @@ -11,20 +9,17 @@ rm -f $LOG touch $LOG -## Disk Usage -# -#xterm -geometry 50x8-99+99 -title "Disk Usage" -hold -e "grc --colour=auto df -h --output=pcent,target,size,used,avail / /rw" - - ## Versions Check # -#xterm -geometry 100x40-99+99 -title "Versions Check" -hold -e "$HOME/bin/versions_check" +#xterm -geometry 100x40-99+99 \ +# -title "Versions Check" -hold \ +# -e "read 'OK?Launch? '; $HOME/bin/versions_check" ## Qubes: Cleaning # #sudo apt clean -rmdir $HOME/QubesIncoming/* --ignore-fail-on-non-empty +#rmdir $HOME/QubesIncoming/* --ignore-fail-on-non-empty ## Qubes: Split SSH