Clean up configs, remove bashrc conflicting with bash

This commit is contained in:
natemaia
2017-11-30 22:21:33 -08:00
parent 15fcfc4da1
commit eb0884e453
272 changed files with 7464 additions and 1239 deletions

44
home/bin/toggle-caffeine Executable file
View File

@ -0,0 +1,44 @@
#!/usr/bin/env bash
# if the script is passed --toggle
if [[ "$1" == *toggle* ]]; then
# if caffeine is running kill it
if pgrep caffeine >/dev/null; then
killall caffeine
else # otherwise start it and fork to background
caffeine &>/dev/null &
fi
# exit or get caught in the infinite loop
exit 0
fi
# infinite loop for polybar
while true; do
# caffeine is running
if pgrep caffeine >/dev/null; then
# Change Me
echo "%{F#0000FF}"
else # otherwise it must not be... LOL
# Change Me
echo "%{F#FF0000}"
fi
# sleep interval... Change the responsiveness
sleep 2
done