desktop_graphics.sh 824 B

1234567891011121314151617181920212223242526272829303132333435
  1. #! /bin/sh --posix
  2. xrdb -merge ~/.Xresources
  3. killall shadow
  4. killall input_lemonbar
  5. killall lemonbar
  6. killall xcompmgr
  7. sleep 1
  8. ALLMONITORLENGTH=`xrandr | grep "*" | sed -e 's/x.*$//g' | paste -sd+ - | bc`
  9. input_lemonbar -c0 "#161712" -c1 "#e2e1cf" -c2 "#c7c4b1" -c3 "#6e6f67" -c4 "#282b25" -c5 "#868377" -c6 "#cc7777" | lemonbar -b -g "$ALLMONITORLENGTH"x12 -d -f "-lucy-tewii-medium-r-normal--11-90-100-100-c-60-iso10646-1" -f "-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*" -p -a 32 | mksh &
  10. mode_fast ()
  11. {
  12. hsetroot -solid \#352f2f -tile "$HOME/.config/desktop/wallpaper"
  13. }
  14. mode_fancy ()
  15. {
  16. mode_fast
  17. cd ~/bin/git/shadow
  18. # poetry run ./shadow -o 0.5 -m root -f 30 -q 0.3 ---qualitymode pixelize ./glsl/compressed_sin.glsl &
  19. xcompmgr -c &
  20. }
  21. case "$1" in
  22. "fast" ) mode_fast ;;
  23. "fancy" ) mode_fancy & ;;
  24. *) exit 1 ;;
  25. esac