mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update berry, i3, neofetch config & add ip scripts
This commit is contained in:
parent
4f7f44d7f4
commit
e6bd4f6c12
11 changed files with 85 additions and 120 deletions
8
bin/README.md
Normal file
8
bin/README.md
Normal 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
2
bin/local-ip
Executable 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
7
bin/public-ip
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
if [ -f '/usr/bin/curl' ]
|
||||
then
|
||||
curl ipinfo.io/ip
|
||||
else
|
||||
wget -qO- ipinfo.io/ip
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue