Advertisement
Dj_Dexter

.xinitrc

Apr 19th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. #setxkbmap -option terminate:crtl_alt_bksp
  2. autocutsel &
  3. #exec /home/kike/src/cambiar_mac.sh
  4.  
  5. exec setxkbmap es &
  6.  
  7. #feh --scale-down --bg-scale ~/img/fondos/16.jpg &
  8.  
  9. #. /home/kike/src/random_wallpaper.sh
  10. $HOME/.fehbgx &
  11. rxvt &
  12.  
  13.  
  14.  
  15. #volumen(){
  16.  
  17. #ESTADO="`amixer get PCM |awk '/Front\ Left:/ {print $7}'`"
  18.  
  19. #if test "$ESTADO" != "[on]" ; then
  20.  
  21. #echo " Mudo"
  22.  
  23. #else
  24.  
  25. #echo " `amixer get PCM |awk '/Front\ Left:/ {print $5}' | sed -e 's/\[//g'|sed -e
  26. #'s/%\]//g'`%"
  27.  
  28. #fi
  29.  
  30. #}
  31.  
  32.  
  33.  
  34. cancion(){
  35.  
  36. if test "X`pgrep mocp`" != "X"; then
  37.  
  38. TITULO="`mocp -i|awk '/SongTitle/ {print $2}'`"
  39.  
  40. ARTISTA="`mocp -i|awk '/Artist/ {print $2}'`"
  41.  
  42. TRANSCURRIDO="`mocp -i|awk '/CurrentTime/ {print $2}'`"
  43.  
  44. TOTAL="`mocp -i|awk '/TotalTime/ {print $2}'`"
  45.  
  46. BITRATE="`mocp -i|awk '/AvgBitrate/ {print $2}'`"
  47.  
  48. RATE="`mocp -i|awk '/Rate/ {print $2}'`"
  49.  
  50. echo "$TITULO ($ARTISTA) Bitrate: $BITRATE Rate: $RATE - $TRANSCURRIDO/$TOTAL"
  51.  
  52. else
  53.  
  54. if test "X`pgrep xmms2`" != "X"; then
  55.  
  56. ARTISTA="`xmms2 info|awk '/artist/ {print $4}'`"
  57.  
  58. TITULO="`xmms2 info|awk '/title/ {print $4}'`"
  59.  
  60. echo "$TITULO ($ARTISTA)"
  61.  
  62. else
  63.  
  64. echo "No Musica"
  65.  
  66. fi
  67.  
  68. fi
  69.  
  70. }
  71.  
  72.  
  73.  
  74. while true;
  75.  
  76. do
  77.  
  78.     xsetroot -name "[ `cancion` ] `date +"[ %a %d %b %Y ] [ %H:%M:%S ]"`"
  79.  
  80.     sleep 1s
  81.  
  82. done &
  83.  
  84.  
  85.  
  86. exec dwm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement