Compare commits
2 Commits
73f8d7268e
...
6a0dfeba25
Author | SHA1 | Date | |
---|---|---|---|
6a0dfeba25 | |||
7822fc15ca |
@ -1,11 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# function to keep sudo from timing out
|
||||||
|
function func_dont_timeout {
|
||||||
|
while true; do
|
||||||
|
sudo -v
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# check if user is root
|
# check if user is root
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
sudo -v
|
sudo -v
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# keep sudo active in background
|
||||||
|
func_dont_timeout &
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
############################################################
|
############################################################
|
||||||
###################### INSTALL CONFIG ######################
|
###################### INSTALL CONFIG ######################
|
||||||
@ -473,7 +484,9 @@ if [[ -f "$HOME/.Xresources" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# execute feh
|
# execute feh
|
||||||
"$HOME/.fehbg"
|
if [[ -f "$HOME/.fehbg" ]]; then
|
||||||
|
"$HOME/.fehbg"
|
||||||
|
fi
|
||||||
|
|
||||||
if ps aux | grep -E "\si3(\s|$)" &>/dev/null; then
|
if ps aux | grep -E "\si3(\s|$)" &>/dev/null; then
|
||||||
i3-msg restart 1>/dev/null
|
i3-msg restart 1>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user