Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. xrandr --current | grep -e " connected" -A1 | grep -E '[0-9]+.[0-9]+*|$'
  2.  
  3. alias grey-grep="GREP_COLOR='1;30' grep --color=always"
  4. alias red-grep="GREP_COLOR='1;31' grep --color=always"
  5. alias green-grep="GREP_COLOR='1;32' grep --color=always"
  6. alias yellow-grep="GREP_COLOR='1;33' grep --color=always"
  7. alias blue-grep="GREP_COLOR='1;34' grep --color=always"
  8. alias magenta-grep="GREP_COLOR='1;35' grep --color=always"
  9. alias cyan-grep="GREP_COLOR='1;36' grep --color=always"
  10. alias white-grep="GREP_COLOR='1;37' grep --color=always"
  11.  
  12. xrandr --current | grep -e " connected" -A1 | green-grep -E '[0-9]+.[0-9]+*|$'
  13. xrandr --current | grep -e " connected" -A1 | yellow-grep -E '[0-9]+.[0-9]+*|$'
  14. xrandr --current | grep -e " connected" -A1 | cyan-grep -E '[0-9]+.[0-9]+*|$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement