#!/bin/sh # Create a file with the env variables of the current wayland session so that # cron scripts can source it and function properly printf "export DISPLAY=%s export WAYLAND_DISPLAY=%s export XDG_SESSION_ID=%s export XDG_SESSION_CLASS=%s export XDG_SEAT=%s export XDG_RUNTIME_DIR=%s export I3SOCK=%s export SWAYSOCK=%s"\ "$DISPLAY" \ "$WAYLAND_DISPLAY" \ "$XDG_SESSION_ID" \ "$XDG_SESSION_CLASS" \ "$XDG_SEAT" \ "$XDG_RUNTIME_DIR" \ "$I3SOCK" \ "$SWAYSOCK" > ~/.cache/sessionenv