Archived
updated stuffs
This commit is contained in:
1 parent
0f4285475f
commit
a3cdd0294c
18 files changed
+775
-252
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
# /bin/env/zsh
|
||||
|
||||
pulseaudio -k
|
||||
mpd --kill
|
||||
pkill pulseaudio
|
||||
pkill mpd
|
||||
|
||||
mpd ~/.config/mpd/mpd.conf
|
||||
mpc update
|
||||
pulseaudio
|
||||
@@ -7,7 +7,6 @@ EDITOR=vim
|
||||
#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..."
|
||||
#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 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.
|
||||
|
||||
@@ -4,36 +4,67 @@ EDITOR=vim
|
||||
|
||||
##############################
|
||||
|
||||
# 1080p
|
||||
low_dpi() {
|
||||
sed '1 s/128/96/g' ~/.Xresources > /tmp/xres
|
||||
sed '1 s/160/96/g' ~/.Xresources > /tmp/xres
|
||||
|
||||
sed '66 s/128/96/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
sed '66 s/160/96/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
|
||||
mv /tmp/polyconf ~/.config/polybar/config.ini
|
||||
mv /tmp/xres ~/.Xresources
|
||||
}
|
||||
|
||||
hi_dpi() {
|
||||
# 1440p
|
||||
mid_dpi() {
|
||||
sed '1 s/96/128/g' ~/.Xresources > /tmp/xres
|
||||
sed '1 s/160/128/g' ~/.Xresources > /tmp/xres
|
||||
|
||||
sed '66 s/96/128/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
sed '66 s/160/128/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
|
||||
mv /tmp/polyconf ~/.config/polybar/config.ini
|
||||
mv /tmp/xres ~/.Xresources
|
||||
|
||||
}
|
||||
|
||||
# 2160p
|
||||
high_dpi() {
|
||||
sed '1 s/96/160/g' ~/.Xresources > /tmp/xres
|
||||
sed '1 s/128/160/g' ~/.Xresources > /tmp/xres
|
||||
|
||||
sed '66 s/96/160/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
sed '66 s/128/160/g' ~/.config/polybar/config.ini > /tmp/polyconf
|
||||
|
||||
mv /tmp/polyconf ~/.config/polybar/config.ini
|
||||
mv /tmp/xres ~/.Xresources
|
||||
|
||||
}
|
||||
|
||||
##############################
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 3440x1440
|
||||
then
|
||||
hi_dpi
|
||||
mid_dpi
|
||||
xrandr --rate 120 # ONLY FOR 21:9 DELL MONITOR
|
||||
fi
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 2560x1440
|
||||
then
|
||||
hi_dpi
|
||||
mid_dpi
|
||||
xrandr --rate 144 # ONLY FOR 16:9 ACER MONITOR
|
||||
fi
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 3840x2160
|
||||
then
|
||||
high_dpi
|
||||
#xrandr --rate 144 # ONLY FOR 16:9 4K LG MONITOR
|
||||
fi
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 1080
|
||||
then
|
||||
low_dpi
|
||||
fi
|
||||
|
||||
|
||||
#############################
|
||||
Reference in new issue
Block a user