u0xpsec

get_gpu.sh

Dec 1st, 2018
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/zsh
  2. #
  3. # Author: u0xpsec 2018
  4. #
  5. if [ $1 = "gpu" ];then
  6. neofetch | grep "GPU" | cut -d" " -f2- | sed 's/\x1B\[[0-9;]*m//g' | sed 's\ \\3'
  7. elif [ $1 = "res" ];then
  8. neofetch | grep "Resolution" | cut -d" " -f2 | sed 's/\x1B\[[0-9;]*m//g'
  9. else
  10. echo "Unkown"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment