Merge kubuntu and ubuntu-i3 configs

This commit is contained in:
2021-12-20 16:49:21 -05:00
parent 4d7aa521dc
commit 574cc7802a
214 changed files with 12317 additions and 517 deletions

25
.local/bin/i3scripts/info-idle Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
## Depends on xprintidle package ##
## A script to track system idle time within a polybar menu ##
###############################################################################
# info-idle.sh
METRIC=sec
FORMAT=" %d $METRIC"
INTERVAL=2
case "$METRIC" in
min) DIVIDE_BY=$((1000 * 60)); ;;
sec) DIVIDE_BY=1000; ;;
msec) DIVIDE_BY=1 ;;
*) echo "Unsupported metric \"$METRIC\""; exit 1; ;;
esac
while true; do
VALUE=$(($(xprintidle)/ DIVIDE_BY))
printf "$FORMAT\\n" "$VALUE"
sleep $INTERVAL
done