made domain-fix better and faster
parent
91b2b37629
commit
21e47150fc
|
@ -441,7 +441,7 @@ exec pkill picom
|
||||||
exec picom -b -f
|
exec picom -b -f
|
||||||
|
|
||||||
# --> Music
|
# --> Music
|
||||||
exec mpd ~/.config/mpd/mpd.conf
|
exec pkill mpd && mpd ~/.config/mpd/mpd.conf
|
||||||
exec mpc update
|
exec mpc update
|
||||||
|
|
||||||
# --> Cross-platform M&K Support
|
# --> Cross-platform M&K Support
|
||||||
|
@ -452,7 +452,6 @@ exec_always sh ~/.scripts/init/monitor.sh && xrdb ~/.Xresources
|
||||||
|
|
||||||
# --> Mounting All Network Drives
|
# --> Mounting All Network Drives
|
||||||
bindsym $mod+Shift+m exec kitty -e sudo umount /mnt/purple /mnt/blue/*
|
bindsym $mod+Shift+m exec kitty -e sudo umount /mnt/purple /mnt/blue/*
|
||||||
bindsym $mod+m exec kitty -e sudo mount-*
|
|
||||||
|
|
||||||
# --> Allow Local Access to Website
|
# --> Allow Local Access to Website
|
||||||
bindsym $mod+Shift+h exec kitty -e sudo sh ~/.scripts/init/domain-fix.sh
|
bindsym $mod+Shift+h exec kitty -e sudo sh ~/.scripts/init/domain-fix.sh
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /usr/bin/env zsh
|
#! /usr/bin/env zsh
|
||||||
|
|
||||||
trap "tput cnorm; exit" 2
|
trap "tput cnorm; exit" 2
|
||||||
VAR=$(( $RANDOM % 4 ))
|
VAR=$(( $RANDOM % 3 ))
|
||||||
|
|
||||||
random_say() {
|
random_say() {
|
||||||
case $VAR in
|
case $VAR in
|
||||||
|
@ -18,7 +18,5 @@ random_say() {
|
||||||
}
|
}
|
||||||
|
|
||||||
clear
|
clear
|
||||||
fortune | random_say
|
while [ true ]; do fortune | random_say && tput civis && read && clear && sh ~/.scripts/fun/fortune.sh; done
|
||||||
tput civis
|
|
||||||
read
|
|
||||||
tput cnorm
|
tput cnorm
|
||||||
|
|
|
@ -4,18 +4,19 @@ EDITOR=vim
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
|
||||||
echo "Make sure you are 100% the connection you have is proper or else it'll assume outgoing everytime."
|
#echo "Make sure you are 100% the connection you have is proper or else it'll assume outgoing everytime."
|
||||||
echo "Ctrl-C or Ctrl-D to cancel now. Otherwise Press any key to continue..."
|
#echo "Ctrl-C or Ctrl-D to cancel now. Otherwise Press any key to continue..."
|
||||||
read -p ""
|
#read -p ""
|
||||||
|
#if curl ipinfo.io/ip | grep -A 2 --quiet -oh "107.221." # UPDATE: IT DIDN'T WORK! MY METHOD PREVAILS!...Switched ip websites, this one should work the same just curl is cleaner.
|
||||||
|
|
||||||
#if wget http://ipecho.net/plain -O - -q | grep -A 2 --quiet -oh "107.221." # Add more to the public to make it more accurate however this should be fine.
|
#if wget http://ipecho.net/plain -O - -q | grep -A 2 --quiet -oh "107.221." # Add more to the public to make it more accurate however this should be fine.
|
||||||
if curl ipinfo.io/ip | grep -A 2 --quiet -oh "107.221." # Switched ip websites, this one should work the same just curl is cleaner.
|
if ifconfig | grep -oh --quiet "192.168.1.127" # Decided to switch to internal ip instead (the odds of this being a problem are like 1/1,000,000.
|
||||||
then
|
then
|
||||||
sed '8 s/#192.168.1.66/192.168.1.66/g' /etc/hosts > /tmp/hosts
|
sed '8 s/.*192.168.1.66/192.168.1.66/g' /etc/hosts > /tmp/hosts
|
||||||
mv /tmp/hosts /etc/hosts
|
mv /tmp/hosts /etc/hosts
|
||||||
chown root: /etc/hosts
|
chown root: /etc/hosts
|
||||||
else
|
else
|
||||||
sed '8 s/192.168.1.66/#192.168.1.66/g' /etc/hosts > /tmp/hosts
|
sed '8 s/.*192.168.1.66/#192.168.1.66/g' /etc/hosts > /tmp/hosts
|
||||||
mv /tmp/hosts /etc/hosts
|
mv /tmp/hosts /etc/hosts
|
||||||
chown root: /etc/hosts
|
chown root: /etc/hosts
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue