From 865c7d612e56404a7e460704ec14424e6bd250a0 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Wed, 25 Oct 2017 21:23:51 +0200 Subject: [PATCH] fdjgksd --- herbstluftwm/hl_panel_content.py | 2 +- herbstluftwm/hl_status_deamon.py | 2 +- zshrc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/herbstluftwm/hl_panel_content.py b/herbstluftwm/hl_panel_content.py index c531029..0811d67 100755 --- a/herbstluftwm/hl_panel_content.py +++ b/herbstluftwm/hl_panel_content.py @@ -47,7 +47,7 @@ def date(): return hl_utils.shexec("date +' ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'") def logins(): - with open(LOGINS_LOG,'r') as f: + with open(hl_utils.hlpath(LOGINS_LOG),'r') as f: return f.read() if __name__ == "__main__": diff --git a/herbstluftwm/hl_status_deamon.py b/herbstluftwm/hl_status_deamon.py index 83b615c..8785fbc 100755 --- a/herbstluftwm/hl_status_deamon.py +++ b/herbstluftwm/hl_status_deamon.py @@ -22,7 +22,7 @@ def cip_logins(): MAX_LOGINS=5 pw="NOPE" try: - with open(hl_utils.hlpath("password.cip")) as f: + with open(hl_utils.hlpath("password.cip",False)) as f: pw=f.read().strip("\n") except: return "" diff --git a/zshrc b/zshrc index d8c6caf..3fbb3f7 100644 --- a/zshrc +++ b/zshrc @@ -300,7 +300,7 @@ alias ssh="ssh_func" ### EXPERIMENTAL ### ## kill all cip sessions except this pc ## genocide(){ - TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/password.cip) "https://atlantishq.de/cipactive/active_logins") + TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/herbstluftwm/password.cip) "https://atlantishq.de/cipactive/active_logins") echo $TMP | while read line; do if [[ $line != $HOST ]]; then ssh -n -q $line -t "pkill -u ik15ydit"