autoConky_last_Desktop.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. ###isConnect=`wget -O - -q icanhazip.com`
  3. ###if [ -z $isConnect ] #если нет интернета
  4. ### then
  5. ### {
  6. killall conky
  7. ##### cp ~/.config/xfce4/desktop/icons.screen0-1264x955.rc ~/.config/xfce4/desktop/icons.screen0-1264x977.rc
  8. sleep 15
  9. exec conky -c ~/.myScripts/conky/conkyrc2 2>&1 > /dev/null &
  10. sleep 7
  11. # exec conky -c ~/.myScripts/conky/conkyrc1 2>&1 > /dev/null &
  12. # cp ~/.config/xfce4/desktop/icons.screen0-1264x976.rc ~/.config/xfce4/desktop/icons.screen0-1264x976.rc.bak
  13. # cp ~/.config/xfce4/desktop/icons.screen0-1264x952.rc ~/.config/xfce4/desktop/icons.screen0-1264x952.rc.bak
  14. # cp ~/.config/xfce4/desktop/icons.screen0-1264x950.rc ~/.config/xfce4/desktop/icons.screen0-1264x950.rc.bak
  15. # sleep 5
  16. # rm ~/.config/xfce4/desktop/*.rc
  17. # cp ~/.config/xfce4/desktop/icons.screen0-1264x976.rc.bak ~/.config/xfce4/desktop/icons.screen0-1264x976.rc
  18. # cp ~/.config/xfce4/desktop/icons.screen0-1264x952.rc.bak ~/.config/xfce4/desktop/icons.screen0-1264x952.rc
  19. # cp ~/.config/xfce4/desktop/icons.screen0-1264x950.rc ~/.config/xfce4/desktop/icons.screen0-1264x950.rc.bak
  20. ##sleep 20
  21. xfdesktop --reload
  22. sleep 3
  23. exec conky -c ~/.myScripts/conky/conkyrc1 2>&1 > /dev/null &
  24. ### }
  25. ### else #если есть интернет
  26. ### {
  27. ### killall conky
  28. ### sleep 15
  29. ### conky -c ~/conky/conkyrc2NoCon 2>&1 > /dev/null &
  30. ### sleep 3
  31. ### conky -c ~/conky/conkyrc1NoCon 2>&1 > /dev/null &
  32. ###
  33. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x976.rc ~/.config/xfce4/desktop/icons.screen0-1264x976.rc.bak
  34. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x952.rc ~/.config/xfce4/desktop/icons.screen0-1264x952.rc.bak
  35. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x950.rc ~/.config/xfce4/desktop/icons.screen0-1264x950.rc.bak
  36. ### sleep 5
  37. ### rm ~/.config/xfce4/desktop/*.rc
  38. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x976.rc.bak ~/.config/xfce4/desktop/icons.screen0-1264x976.rc
  39. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x952.rc.bak ~/.config/xfce4/desktop/icons.screen0-1264x952.rc
  40. ### cp ~/.config/xfce4/desktop/icons.screen0-1264x950.rc.bak ~/.config/xfce4/desktop/icons.screen0-1264x950.rc
  41. ### ##sleep 20
  42. ### xfdesktop --reload
  43. ### }
  44. ###fi
  45. #echo $isConnect
  46. ###exit