Created
January 25, 2019 14:51
-
-
Save mjnaderi/9fbc82d50bc30ab164d13e51b93e71f4 to your computer and use it in GitHub Desktop.
Activity Logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pacman -S xprintidle xdotool iw | |
$ while true; do idle=`xprintidle`; print `date` ' | ' 'Idle:' "$((idle/1000))s" ' | ' `xdotool getactivewindow getwindowname`; sleep 10; done | |
$ iw dev wlp2s0 info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment