Update berry, i3, neofetch config & add ip scripts

This commit is contained in:
Smirnov Olexandr 2020-12-14 20:12:03 +02:00
parent 4f7f44d7f4
commit e6bd4f6c12
11 changed files with 85 additions and 120 deletions

8
bin/README.md Normal file
View file

@ -0,0 +1,8 @@
Scripts:
- `arch_upd`: Update packages(pacman, aur) base on arch.
- `extract`: Extract archive.
- `giti`: Gitignore manager(For help exec: giti help).
- `kbhl`: Enable/disable keyboard highlight scrlock.
- `local-ip`: Get local IP addres.
- `public-ip`: Get public IP addres.

2
bin/local-ip Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | grep -v '172.[0-9][0-9].0.1'

7
bin/public-ip Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
if [ -f '/usr/bin/curl' ]
then
curl ipinfo.io/ip
else
wget -qO- ipinfo.io/ip
fi