From acfe289a23cf16997e4c8747be13ac236007be82 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 20 Oct 2023 14:34:48 +0200 Subject: [PATCH] elogind, second try. --- _cli/zsh/.zshenv | 4 ++++ _cli/zsh/.zshrc | 4 ++++ _gui/_configs/qtile/config.py | 4 ---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/_cli/zsh/.zshenv b/_cli/zsh/.zshenv index ae63a98..c2092d9 100644 --- a/_cli/zsh/.zshenv +++ b/_cli/zsh/.zshenv @@ -6,3 +6,7 @@ export XDG_STATE_HOME=$HOME/.local/state export HISTSIZE=10000 export SAVEHIST=$HISTSIZE export HISTFILE=$XDG_DATA_HOME/zsh/history +if test -z "$XDG_RUNTIME_DIR"; then + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) +fi + diff --git a/_cli/zsh/.zshrc b/_cli/zsh/.zshrc index 0ed37ad..d285ec1 100644 --- a/_cli/zsh/.zshrc +++ b/_cli/zsh/.zshrc @@ -1,3 +1,7 @@ +if test -z "$XDG_RUNTIME_DIR"; then + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) +fi + # prepare directories mkdir -p $XDG_CACHE_HOME/zsh mkdir -p $XDG_DATA_HOME/zsh diff --git a/_gui/_configs/qtile/config.py b/_gui/_configs/qtile/config.py index 5ee0d5b..e52c4da 100644 --- a/_gui/_configs/qtile/config.py +++ b/_gui/_configs/qtile/config.py @@ -26,10 +26,6 @@ def autostop(): autostop = os.path.expanduser('~/.config/qtile/stop.sh') subprocess.run([autostop]) -@hook.subscribe.suspend -def suspend(): - qtile.spawn("swaylock --image ~/.config/qtile/wallpaper.img") - mod = "mod4" groups = [ Group("1", label="\uf292"),