feat: cleanup aliases, sbar, XDG home

This commit is contained in:
ange 2024-04-03 19:41:31 +02:00
parent caafb1b1c6
commit 03a0bab194
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
11 changed files with 35 additions and 30 deletions

View File

@ -12,6 +12,7 @@
[messages] [messages]
q = :quit<Enter> q = :quit<Enter>
r = :check-mail<Enter>
j = :next<Enter> j = :next<Enter>
<Down> = :next<Enter> <Down> = :next<Enter>

View File

@ -7,13 +7,13 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCto7D1L-MiRoOziCXK9uT5Q "Le
https://www.youtube.com/feeds/videos.xml?channel_id=UCRlEFn0L2G_DktbyvN0AZ5A "WadZee" https://www.youtube.com/feeds/videos.xml?channel_id=UCRlEFn0L2G_DktbyvN0AZ5A "WadZee"
@ Linux @ Linux
https://archlinux.org/feeds/news/ "ArchLinux" https://archlinux.org/feeds/news/ "ArchLinux"
https://odysee.com/$/rss/@BrodieRobertson:5 "BrodieRobertson" https://odysee.com/$/rss/@BrodieRobertson:5 "BrodieRobertson"
https://www.debian.org/News/news "Debian" https://www.debian.org/News/news "Debian"
https://odysee.com/$/rss/@AlphaNerd:8 "MentalOutlaw" https://odysee.com/$/rss/@AlphaNerd:8 "MentalOutlaw"
https://suckless.org/atom.xml "suckless.org" https://suckless.org/atom.xml "suckless.org"
https://tails.net/news/index.en.rss "Tails" https://tails.net/news/index.en.rss "Tails"
https://www.youtube.com/feeds/videos.xml?channel_id=UC5UAwBUum7CPN5buc-_N1Fw "TheLinuxExperiment" https://www.youtube.com/feeds/videos.xml?playlist_id=PLqmbcbI8U55EoAsLzrJmdJVjT8NUc3Ooh "TheLinuxExperiment"
@ Updates @ Updates
https://github.com/vector-im/element-web/releases.atom "element-web" https://github.com/vector-im/element-web/releases.atom "element-web"

@ -1 +1 @@
Subproject commit f7adfc4b3f4f91aab6caebf42b3682945fbc35be Subproject commit 8aad4396840be7fc42896e3011751b7609ca4119

@ -1 +1 @@
Subproject commit 221778e93bfaa58bce4be4e055ed2edecc26f799 Subproject commit 1bb28df3cfc241b961331f00dcb8d5b45fe3e4f0

@ -1 +1 @@
Subproject commit 3a92c540ddf73fb6777987edbe08bbe1822ad722 Subproject commit 30492e7e1c9e5af3642e8a74c2f88dc1f50ec305

View File

@ -9,8 +9,9 @@ bashcompinit
colors colors
. "$ZDOTDIR"/powerlevel10k/powerlevel10k.zsh-theme . "$ZDOTDIR/powerlevel10k/powerlevel10k.zsh-theme"
. "$ZDOTDIR/.p10k.zsh" . "$ZDOTDIR/.p10k.zsh"
#. "$ZDOTDIR/prompt.zsh"
. "$ZDOTDIR/inputrc.zsh" . "$ZDOTDIR/inputrc.zsh"
for f in "$ZDOTDIR"/aliases/*; do for f in "$ZDOTDIR"/aliases/*; do

View File

@ -1,7 +1,5 @@
# vim: ft=zsh # vim: ft=zsh
alias docker='sudo docker'
alias docker-compose='sudo docker-compose'
alias dk='docker' alias dk='docker'
## container ## container

View File

@ -52,7 +52,4 @@ alias diff='diff --color'
alias grep='grep --color --exclude-dir={.bzr,.cache,.git,.hg,.idea,.svn,.tox,.venv,.vscode,CVS,node_modules}' alias grep='grep --color --exclude-dir={.bzr,.cache,.git,.hg,.idea,.svn,.tox,.venv,.vscode,CVS,node_modules}'
alias monero='monero-wallet-cli \ alias xmr='monero-wallet-cli --daemon-address monero.maby.dev:18081 --wallet-file /home/ange/.config/monero/ange --trusted-daemon --log-file=/tmp/monero-wallet-cli.log'
--daemon-address monero.maby.dev:18081 \
--wallet-file /home/ange/.config/monero/ange --trusted-daemon \
--log-file=/tmp/monero-wallet-cli.log'

View File

@ -12,8 +12,14 @@ export HISTFILE="$XDG_STATE_HOME/zsh_history"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export LESSHISTFILE='-' export LESSHISTFILE='-'
export KUBECONFIG="$XDG_CONFIG_HOME/kube"
export KUBECACHEDIR="$XDG_CACHE_HOME/kube"
export PYTHON_HISTORY="$XDG_STATE_HOME/python_history"
export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python" export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python"
export W3M_DIR="$XDG_STATE_HOME/w3m"
path=( path=(
"$HOME/bin" "$HOME/bin"
"$HOME/.local/bin" "$HOME/.local/bin"

View File

@ -2,7 +2,7 @@
See (https://git.maby.dev/ange/archinstall.git) for installation See (https://git.maby.dev/ange/archinstall.git) for installation
To clone the repo : To clone the repo:
```console ```console
git clone --bare https://git.maby.dev/ange/.dotfiles.git ~/.dotfiles git clone --bare https://git.maby.dev/ange/.dotfiles.git ~/.dotfiles
alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'

View File

@ -93,17 +93,19 @@ echo "$$" > "$HOME/.cache/pidofbar"
sec=0 sec=0
while true; do while true; do
[ "$((sec % 300))" = 0 ] && update_crypto wait && {
[ "$((sec % 10))" = 0 ] && { [ "$((sec % 300))" = 0 ] && update_crypto
update_cpu [ "$((sec % 10))" = 0 ] && {
update_memory update_cpu
update_sink_vol update_memory
update_source_vol update_sink_vol
update_wlp update_source_vol
update_bat update_wlp
update_time update_bat
display update_time
display
}
sec="$((sec + 10))"
} }
sleep "$(awk "BEGIN {s=$(date '+%S.%N'); print 10 - s % 10}")" & wait awk '@load "time"; BEGIN {d=10; s=system("date \"+%S.%N\""); sleep(d - s % d)}' &
sec="$((sec + 10))"
done done