diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2025-03-16 00:18:25 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2025-03-16 00:18:25 +0100 |
| commit | de9fb168b7bdf393e1017a5c727c581739049770 (patch) | |
| tree | cd7812d7c44070571282c22e779d8210410ceef4 | |
| parent | 2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3 (diff) | |
| download | eibhear-de9fb168b7bdf393e1017a5c727c581739049770.tar.gz eibhear-de9fb168b7bdf393e1017a5c727c581739049770.tar.zst eibhear-de9fb168b7bdf393e1017a5c727c581739049770.zip | |
Eibhear: Random wallpaper
| -rw-r--r-- | .config/shell/eibhear/profile | 2 | ||||
| -rwxr-xr-x | .local/bin/eibhear/get-new-bg | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.config/shell/eibhear/profile b/.config/shell/eibhear/profile index e8fb8ef..41b17f0 100644 --- a/.config/shell/eibhear/profile +++ b/.config/shell/eibhear/profile @@ -13,8 +13,6 @@ export PYTHON_HISTORY=$XDG_STATE_HOME/python_history export PYTHONPYCACHEPREFIX=$XDG_CACHE_HOME/python export PYTHONUSERBASE=$XDG_DATA_HOME/python -export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority - export PYENV_ROOT="$XDG_DATA_HOME"/pyenv export PATH="$PYENV_ROOT/bin:$PATH" 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" + |
