Archived
updated things
This commit is contained in:
1 parent
622a9a90aa
commit
df66b828b2
34 files changed
+303
-122
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#! /bin/bash
|
||||
|
||||
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 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.
|
||||
then
|
||||
sed '8 s/#192.168.1.66/192.168.1.66/g' /etc/hosts > /tmp/hosts
|
||||
mv /tmp/hosts /etc/hosts
|
||||
chown root: /etc/hosts
|
||||
else
|
||||
sed '8 s/192.168.1.66/#192.168.1.66/g' /etc/hosts > /tmp/hosts
|
||||
mv /tmp/hosts /etc/hosts
|
||||
chown root: /etc/hosts
|
||||
fi
|
||||
|
||||
#############################
|
||||
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#! /bin/bash
|
||||
|
||||
EDITOR=vim
|
||||
|
||||
##############################
|
||||
|
||||
low_dpi() {
|
||||
sed '1 s/128/96/g' ~/.Xresources > /tmp/xres
|
||||
mv /tmp/xres ~/.Xresources
|
||||
}
|
||||
|
||||
hi_dpi() {
|
||||
sed '1 s/96/128/g' ~/.Xresources > /tmp/xres
|
||||
mv /tmp/xres ~/.Xresources
|
||||
}
|
||||
|
||||
|
||||
##############################
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 3440x1440
|
||||
then
|
||||
hi_dpi
|
||||
xrandr --rate 120 # ONLY FOR 21:9 DELL MONITOR
|
||||
fi
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 2560x1440
|
||||
then
|
||||
hi_dpi
|
||||
xrandr --rate 144 # ONLY FOR 16:9 ACER MONITOR
|
||||
fi
|
||||
|
||||
|
||||
if xdpyinfo | grep --quiet -oh 1080
|
||||
then
|
||||
low_dpi
|
||||
fi
|
||||
|
||||
|
||||
#############################
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar main -c $HOME/.config/polybar/config.ini &
|
||||
Reference in new issue
Block a user