Guest User

Untitled

a guest
Nov 5th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/usr/bin/env fish
  2.  
  3.  
  4. python3.6 unsplash.py > /dev/null 2>&1
  5. pkill firefox
  6. pkill polybar
  7. set curr_wal (cat ~/.cache/wal/wal)
  8. # wpg -a $curr_wal > /dev/null 2>&1
  9. wpg -s $curr_wal > /dev/null 2>&1
  10. ~/Downloads/spicetify-cli/spicetify-cli apply > /dev/null 2>&1
  11. firefox-bin > /dev/null 2>&1 &
  12. polybar top > /dev/null 2>&1 &
  13.  
  14. # Começa o segundo script
  15.  
  16. #!/usr/bin/env python3
  17. # -*- coding: utf-8 -*-
  18.  
  19. import pywal
  20. import requests
  21. import subprocess
  22. import os
  23. WALL = requests.get('https://source.unsplash.com/1366x768/')
  24.  
  25. image_name = WALL.url.split('/')[3] + '.jpg'
  26. with open(image_name, 'wb') as image:
  27. image.write(WALL.content)
  28.  
  29. image = pywal.image.get(image_name)
  30. colors = pywal.colors.get(image)
  31. pywal.export.every(colors)
  32. pywal.reload.bspwm()
  33.  
  34.  
Add Comment
Please, Sign In to add comment