Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env fish
- python3.6 unsplash.py > /dev/null 2>&1
- pkill firefox
- pkill polybar
- set curr_wal (cat ~/.cache/wal/wal)
- # wpg -a $curr_wal > /dev/null 2>&1
- wpg -s $curr_wal > /dev/null 2>&1
- ~/Downloads/spicetify-cli/spicetify-cli apply > /dev/null 2>&1
- firefox-bin > /dev/null 2>&1 &
- polybar top > /dev/null 2>&1 &
- # Começa o segundo script
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- import pywal
- import requests
- import subprocess
- import os
- WALL = requests.get('https://source.unsplash.com/1366x768/')
- image_name = WALL.url.split('/')[3] + '.jpg'
- with open(image_name, 'wb') as image:
- image.write(WALL.content)
- image = pywal.image.get(image_name)
- colors = pywal.colors.get(image)
- pywal.export.every(colors)
- pywal.reload.bspwm()
Add Comment
Please, Sign In to add comment