]> git.rmz.io Git - dotfiles.git/commitdiff
xinit: setup XIDLEHOOK_SOCKET in zshenv
authorSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 12:19:39 +0000 (13:19 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 12:19:39 +0000 (13:19 +0100)
Otherwise it seems to not be available in shells.

xinit/xprofile.d/10-screensaver.sh
zshenv

index b17f30e601ad2fc3aaa98225a842e45c546bd515..8a2368d0b204c6181929a90ee8a6038c4061b755 100755 (executable)
@@ -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 80665665389c087b1531a3358bbf49508d79f343..2a9f2b0428c64b821c73b7cf9f7ae1102edf3b98 100644 (file)
--- 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))" ;;