Compare commits

...

2 Commits

Author SHA1 Message Date
9d6d3c62b3 Added lots of things 2023-08-02 01:14:42 -05:00
7a6cd133be Added lots of things 2023-08-02 01:11:58 -05:00
8 changed files with 99 additions and 0 deletions

22
.gitignore vendored Normal file
View File

@ -0,0 +1,22 @@
autostart.sh.save
bootloadHID
compileTimer
delayed-suspend-slock.old
dmenu
dmenu_path
dmenu_run
dwm
ec
ethminer
gsearch
mpcInsert
powersettings.old
rofi-network-manager.sh
slock
slock-suspend
snake
st
start_dwm
steam-fix.sh
stest
vis

View File

@ -3,7 +3,11 @@
export DISPLAY=:0 export DISPLAY=:0
#Added some programs here since emptty had issues #Added some programs here since emptty had issues
<<<<<<< HEAD
polybar-restart &
=======
polybar & polybar &
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46
# --- Music Workspace Start --- # --- Music Workspace Start ---
#Note: So alacritty specifically (I believe kitty fixed this) has a scaling issue because L/R monitor diff resolutions #Note: So alacritty specifically (I believe kitty fixed this) has a scaling issue because L/R monitor diff resolutions
@ -29,7 +33,11 @@ xset dpms 300 &
xautolock -locker "slock" -nowlocker "slock -f" -time 5 & xautolock -locker "slock" -nowlocker "slock -f" -time 5 &
picom --experimental-backends -b & picom --experimental-backends -b &
feh --bg-fill $(/public/wallpapers/mon1.cfg) --bg-fill $(/public/wallpapers/mon2.cfg) & feh --bg-fill $(/public/wallpapers/mon1.cfg) --bg-fill $(/public/wallpapers/mon2.cfg) &
<<<<<<< HEAD
# /usr/local/bin/trayer-restart # Launch from polybar-restart launcher now
=======
trayer --edge bottom --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x555E70 --height 22 & trayer --edge bottom --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x555E70 --height 22 &
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46
conky -q -c /home/allen/.config/conky-0.conf & conky -q -c /home/allen/.config/conky-0.conf &
conky -q -c /home/allen/.config/conky-1.conf & conky -q -c /home/allen/.config/conky-1.conf &
mpDris2 & mpDris2 &

View File

@ -14,12 +14,15 @@ echo ''
echo -e $GREEN"=================================================================" echo -e $GREEN"================================================================="
echo -e "UPDATE COMPLETED!\n"$NC echo -e "UPDATE COMPLETED!\n"$NC
<<<<<<< HEAD
=======
read -p "Do you want to recompile xmonad? (y/N): " -i "y" XMONAD_UPDATE read -p "Do you want to recompile xmonad? (y/N): " -i "y" XMONAD_UPDATE
if [ "$XMONAD_UPDATE" == "y" ]; then if [ "$XMONAD_UPDATE" == "y" ]; then
xmonad --recompile xmonad --recompile
fi fi
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46
echo $(cat /etc/pacman.conf | grep "IgnorePkg =") echo $(cat /etc/pacman.conf | grep "IgnorePkg =")
read -p "DO YOU WANT TO UPDATE DANGEROUS PACKAGES TOO? read -p "DO YOU WANT TO UPDATE DANGEROUS PACKAGES TOO?
RECOMMENDED EVERY 3 MONTHS (y/N): " -i "y" USER_AGREEMENT RECOMMENDED EVERY 3 MONTHS (y/N): " -i "y" USER_AGREEMENT
@ -28,4 +31,13 @@ if [ "$USER_AGREEMENT" == "y" ]; then
sed '/^IgnorePkg/d' /etc/pacman.conf > /tmp/432143214 | paru -Syu --config /tmp/432143214; rm /tmp/432143214 sed '/^IgnorePkg/d' /etc/pacman.conf > /tmp/432143214 | paru -Syu --config /tmp/432143214; rm /tmp/432143214
fi fi
<<<<<<< HEAD
read -p "Do you want to recompile xmonad? (y/N): " -i "y" XMONAD_UPDATE
if [ "$XMONAD_UPDATE" == "y" ]; then
xmonad --recompile
fi
=======
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46
echo -e "\nUPDATE COMPLETED!"$NC echo -e "\nUPDATE COMPLETED!"$NC

17
polybar-launcher.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
declare -A screen_map
screen_map[DP-2]=0
screen_map[DP-0]=1
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
id=${screen_map[$m]}
MONITOR=$m MONITOR_ID="${screen_map[$m]}" polybar --config=~/.config/polybar/config-$id-top.ini & #TOP
MONITOR=$m MONITOR_ID="${screen_map[$m]}" polybar --config=~/.config/polybar/config-$id-bottom.ini & #BOTTOM
done
fi
# Spawn trayer from here as Z clipping issue can be fixed from restarting trayer after polybar
/usr/local/bin/trayer-restart

View File

@ -1,3 +1,7 @@
#!/bin/bash #!/bin/bash
killall polybar > /dev/null 2>&1 killall polybar > /dev/null 2>&1
<<<<<<< HEAD
nohup /usr/local/bin/polybar-launcher.sh > /dev/null 2>&1 &
=======
nohup polybar > /dev/null 2>&1 & nohup polybar > /dev/null 2>&1 &
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46

View File

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
echo "Run the following commands:" echo "Run the following commands:"
echo echo
<<<<<<< HEAD
echo "0. Make sure you have the proper drive and EFI partition mounted under /boot/efi (Ex: sudo mount /dev/sda1 /boot/efi)"
echo "1. sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB"
=======
echo "0. Make sure you have the proper drive and EFI partition mounted under /efi (Ex: sudo mount /dev/sda1 /efi)" echo "0. Make sure you have the proper drive and EFI partition mounted under /efi (Ex: sudo mount /dev/sda1 /efi)"
echo "1. sudo grub-install --target=x86_64-efi --efi-directory=/efi/ --bootloader-id=GRUB" echo "1. sudo grub-install --target=x86_64-efi --efi-directory=/efi/ --bootloader-id=GRUB"
>>>>>>> 87ac7b206297330f25c4ce049614d23647387d46
echo "2. sudo grub-mkconfig -o /boot/grub/grub.cfg" echo "2. sudo grub-mkconfig -o /boot/grub/grub.cfg"

27
switchcontrol Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# A program that maps the paramaters [1 -> length - 1] to a variable P[1 -> length - 1] and then sends it in a HTTP post requset to HomeAssistant web hook automation.
WEBHOOK_ID="3Rvdb4qZDgcKD2EiZgV328xdhWLVkjn8dVgSKr13JkIb5eP0RFNPQjgYDey16R64"
WEBHOOK_URL="http://0.hassio.local/api/webhook/$WEBHOOK_ID"
CURL_REQ="curl -X POST $WEBHOOK_URL"
#CURL_REQ=("curl" "-X" "POST" "$WEBHOOK_URL")
declare -a params_array
i=0
j=0
for var in "$@"
do
params_array[$i]='-d'
((i++))
params_array[$((i))]="P$((i-1+j))=$var"
((i++))
((j-=1))
done
$CURL_REQ "${params_array[@]}"

4
trayer-restart Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
killall trayer
nohup trayer --edge bottom --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x282a2e --height 32 --distancefrom top --distance 5 &> /dev/null 2>&1 &