dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

bgchange (236B)


      1 #!/usr/bin/env bash
      2 
      3 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
      4 colours=("202f2c" "362124" "363145")
      5 
      6 num=${#colours[@]}
      7 random=$(( ( RANDOM % $num ) ))
      8 new_colour=${colours[$random]}
      9 
     10 xsetroot -solid "#${new_colour}"