Skip to content

Instantly share code, notes, and snippets.

@anmolj7
Last active December 6, 2019 15:57
Show Gist options
  • Save anmolj7/1e665cc56b27bcb9df465dd0561d0f61 to your computer and use it in GitHub Desktop.
Save anmolj7/1e665cc56b27bcb9df465dd0561d0f61 to your computer and use it in GitHub Desktop.
#!/bin/bash
file=$(ls -1 | python3 -c "import os; import random; files=os.listdir(os.getenv('HOME')+'/Pictures/Wallpapers'); print(random.choice(files));")
XDG_RUNTIME_DIR=/run/user/$(id -u) gsettings set org.gnome.desktop.background picture-uri file:///$HOME/Pictures/Wallpapers/$file
#!/bin/bash
XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send "Health" "Have you taken a glass of water yet?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment