Add bash_profile and update configs
This commit is contained in:
parent
be4ebea6ee
commit
4f8834e3d3
5
home/.bash_profile
Normal file
5
home/.bash_profile
Normal file
@ -0,0 +1,5 @@
|
||||
# .bash_profile
|
||||
# sourced by bash when used as a login shell
|
||||
|
||||
# automatically run startx when logging in on tty1
|
||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null
|
@ -1,13 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
count=0
|
||||
disconnected="/"
|
||||
disconnected2="\\"
|
||||
wireless_connected=""
|
||||
ethernet_connected=""
|
||||
|
||||
while true; do
|
||||
if ping -c1 8.8.8.8 &>/dev/null; then
|
||||
ID=$(ip link | awk '/state UP/ {print $2}')
|
||||
if ping -c1 www.google.com &>/dev/null; then
|
||||
if (( count < 1 )); then
|
||||
ID="$(ip link | awk '/state UP/ {print $2}')"
|
||||
((count++))
|
||||
fi
|
||||
if [[ $ID == e* ]]; then
|
||||
echo "$ethernet_connected" ; sleep 20
|
||||
else
|
||||
|
Reference in New Issue
Block a user