From de9fb168b7bdf393e1017a5c727c581739049770 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Sun, 16 Mar 2025 00:18:25 +0100 Subject: Eibhear: Random wallpaper --- .local/bin/eibhear/get-new-bg | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/eibhear/get-new-bg (limited to '.local') diff --git a/.local/bin/eibhear/get-new-bg b/.local/bin/eibhear/get-new-bg new file mode 100755 index 0000000..099ac70 --- /dev/null +++ b/.local/bin/eibhear/get-new-bg @@ -0,0 +1,10 @@ +#!/bin/sh +export DISPLAY=":0" +export DBUS_SESSION_BUS_ADDRESS="$(rg -a --null-data DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep dbus | tail -1)/environ | tr "\0" "\n" | cut -d = -f 2-)" +export XDG_RUNTIME_DIR="/run/user/$(id -u)" +source "$HOME/.zprofile" + +bg="$XDG_DATA_HOME/bg" +curl -su 'maks:zaq1@WSX' https://jopek.eu/maks/wallpaper/bg.png -o "$bg" +setbg "$bg" + -- cgit v1.3.1