fix: refactor naming
This commit is contained in:
parent
870eed0b2a
commit
f2c7dee45d
6 changed files with 9 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ alias git-update-submodules='
|
|||
alias gpg2-decrypt='function _gpg2-decrypt(){ gpg2 --output ${1%".gpg"} --decrypt $1; }; _gpg2-decrypt'
|
||||
alias gpg2-encrypt='function _gpg2-encrypt(){ gpg2 --output $1.gpg --encrypt $1; }; _gpg2-encrypt'
|
||||
|
||||
alias hist-grep='history 1 | grep '
|
||||
alias hist-grep='history 0 | grep '
|
||||
|
||||
alias ls='ls -Flh --color=never'
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
logg = log --graph
|
||||
logo = log --graph --decorate --oneline --all
|
||||
diffc = diff --cached
|
||||
diffs = diff --stat
|
||||
|
||||
[merge]
|
||||
tool = vim_mergetool
|
||||
|
|
@ -41,3 +42,5 @@
|
|||
ff = only
|
||||
[push]
|
||||
followTags = true
|
||||
[format]
|
||||
signOff = yes
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
modules-left = bspwm i3
|
||||
modules-center = mpd
|
||||
modules-right = memory cpu fan-speed temperature eth arch-updates date powermenu
|
||||
modules-right = memory cpu fan-speed temperature eth check-arch-updates date powermenu
|
||||
|
||||
eth-interface = enp0s31f6
|
||||
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
modules-left = bspwm i3
|
||||
modules-center =
|
||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth arch-updates date powermenu
|
||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth check-arch-updates date powermenu
|
||||
|
||||
eth-interface = enp2s0f1
|
||||
wlan-interface = wlp3s0
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
label = %output:4%
|
||||
|
||||
[module/arch-updates]
|
||||
[module/check-arch-updates]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/arch-updates.sh
|
||||
exec = $HOME/.config/polybar/scripts/check-arch-updates.sh
|
||||
interval = 300
|
||||
|
||||
format-prefix = " "
|
||||
|
|
@ -20,6 +20,6 @@
|
|||
format-underline = #1794D1
|
||||
format = <label>
|
||||
|
||||
click-left = alacritty -e sh -c "yay -Syu && echo DONE || echo ERROR; read" &
|
||||
click-left = alacritty -e sh -c "$HOME/.local/bin/archlinux-admin-update; read" &
|
||||
|
||||
label = %output%
|
||||
|
|
|
|||
9
.config/polybar/scripts/check-arch-updates.sh
Executable file
9
.config/polybar/scripts/check-arch-updates.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkg_updates_count=$(checkupdates 2> /dev/null | wc -l)
|
||||
if [ $((pkg_updates_count)) -gt 0 ]
|
||||
then
|
||||
echo $pkg_updates_count
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
1
.ssh/authorized_keys.default
Normal file
1
.ssh/authorized_keys.default
Normal file
|
|
@ -0,0 +1 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCkmWZmum4cVeDy5+9N1HdUzfnjEHSJ900ucD8F0wAy4MV1cdPYnZ4u5PFv5XMfmvA9SJ+VFsr0lhYlr+GQBG9aCCAdMJVVmEz3SccT6dp6ZYywT158RNshzfCe9ylWKK80+W7XnDXhdkec7aK+BQn5wOER3A3mUqRR0JDXWga9jyakH1K6OwXmQOO419bJWs2uCT1ZEgndHxKJEt2pEvoSz7z8p1SS2zyro+R3YtvL9WiDo3+0yPFYficNDr7s39yF5IJE+KTqAlCn5R2+kJ54lRmzB8oNS2jGwK2Q6wtph4AmfnlJTMODG2U2RjUltH2MIDXIYe2epATWL8qhkI4LTr38C7QR3DeJQsel/yTWdYqGakvU6Ge/xkbsaWOrSDTV3bPgKHzlL+dIKaGpV+5usZN4fpOLOb/nmYy3ekLpobzxza7rBRT2CxXS72DoPFaRE1ye7SxhcsLBNwre9YQFE4VvUZwJYkWz2V7eqGrk8VYnmQmT/bnUnMnVwMpeDc7pFKAFndIUxifoOj77c98Tdy3ncdS7SOd7+zRbLG+7k0UU1k89o1+tfREAddUJYR4RvB6g0kCyjpwOf1Pt4zhJR3y/zpsCCc5UnzK9X2kEo/8TSyvTr+GBiFVp5yLYgwCPJSNna33YX7+c3oLRM1QGgtqZk9qnGX9hgP8qpF8Akw== openpgp:0xAB920993
|
||||
Loading…
Reference in a new issue