Compare commits
No commits in common. "6a0dfeba25d422eb408e8f189830c51fb067ed50" and "73f8d7268e37a80d557ea626aa4a765fe0887989" have entirely different histories.
6a0dfeba25
...
73f8d7268e
@ -1,22 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
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
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
sudo -v
|
||||
fi
|
||||
|
||||
# keep sudo active in background
|
||||
func_dont_timeout &
|
||||
|
||||
cat <<EOF
|
||||
############################################################
|
||||
###################### INSTALL CONFIG ######################
|
||||
@ -484,9 +473,7 @@ if [[ -f "$HOME/.Xresources" ]]; then
|
||||
fi
|
||||
|
||||
# execute feh
|
||||
if [[ -f "$HOME/.fehbg" ]]; then
|
||||
"$HOME/.fehbg"
|
||||
fi
|
||||
|
||||
if ps aux | grep -E "\si3(\s|$)" &>/dev/null; then
|
||||
i3-msg restart 1>/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user