repo.or.cz
/
dotfiles_afify.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vim, gitconfig, update.sh
[dotfiles_afify.git]
/
.scripts
/
notify_gpu
blob
0359199024dc762e5634a8247986cb480ebdb2c5
1
#!/bin/sh
2
3
ps
=
$
(
nvidia-smi pmon
-c
1
|
tail
-n
+
3
|
awk
'{print
$2
" "
$4
"% "
$8
}'
|
sort
-k2 -r
|
column
-t
)
4
notify-send
"GPU"
"
$ps
"
-t
5000