From 8460238c39c8b31095288b147623e47e4b21e508 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 8 Aug 2020 13:19:39 +0100 Subject: [PATCH] xinit: setup XIDLEHOOK_SOCKET in zshenv Otherwise it seems to not be available in shells. --- xinit/xprofile.d/10-screensaver.sh | 3 --- zshenv | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xinit/xprofile.d/10-screensaver.sh b/xinit/xprofile.d/10-screensaver.sh index b17f30e..8a2368d 100755 --- a/xinit/xprofile.d/10-screensaver.sh +++ b/xinit/xprofile.d/10-screensaver.sh @@ -1,6 +1,3 @@ -#!/usr/bin/env bash - -export XIDLEHOOK_SOCKET=$XDG_RUNTIME_DIR/xidlehook.socket alias xidlehook-client='xidlehook-client --socket $XIDLEHOOK_SOCKET' if [[ $(hostname) == "hactar" ]]; then diff --git a/zshenv b/zshenv index 8066566..2a9f2b0 100644 --- a/zshenv +++ b/zshenv @@ -53,6 +53,8 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" # weechat export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" +export XIDLEHOOK_SOCKET=$XDG_RUNTIME_DIR/xidlehook.socket + case "$OSTYPE" in linux*) export MAKEFLAGS="-j$(nproc --all --ignore=2)" ;; darwin*) export MAKEFLAGS="-j$(($(sysctl -n hw.ncpu) - 2))" ;; -- 2.48.1