Krolyxon
Commit 874d3dc

Branches

Refs →

dotfiles-x11.localbingenwall

18 lines · 339 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3# Dependencies:
4# convert wal xdotool xwallpaper
5
6wall_dir=~/pix/wall
7
8if [ -z "$1" ]; then
9 wall="$(find "$wall_dir" -type f -name "*.jpg" -o -name "*.png" | shuf -n1)"
10else
11 wall="$1"
12fi
13
14convert "$wall" ~/.local/share/bg.jpg
15xwallpaper --zoom ~/.local/share/bg.jpg
16wal -c
17wal -i ~/.local/share/bg.jpg
18xdotool key super+F5