From: Samir Benmendil Date: Sat, 8 Aug 2020 12:19:39 +0000 (+0100) Subject: xinit: setup XIDLEHOOK_SOCKET in zshenv X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/8460238c39c8b31095288b147623e47e4b21e508?ds=sidebyside xinit: setup XIDLEHOOK_SOCKET in zshenv Otherwise it seems to not be available in shells. --- 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))" ;;