mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 15:11:35 +01:00
modified: herbstluftwm/autostart
modified: herbstluftwm/hl_status_deamon.py modified: zshrc
This commit is contained in:
@@ -40,8 +40,8 @@ fi
|
|||||||
### Atlantis general
|
### Atlantis general
|
||||||
if [[ ( "$HOST" == "atlantispc" ) || ( "$HOST" == "atlantislaptop" ) ]]; then
|
if [[ ( "$HOST" == "atlantispc" ) || ( "$HOST" == "atlantislaptop" ) ]]; then
|
||||||
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
||||||
hc keybind $Mod-c spawn /bin/bash -c "sudo stopvpn.sh; sudo /usr/bin/openvpn_cip.sh & ~/.config/herbstluftwm/hl_status_deamon.py --refresh"
|
hc keybind $Mod-c spawn /bin/bash -c "sudo stopvpn.sh; sudo /usr/bin/openvpn_cip.sh & sleep 2 && pkill --signal USR1 hl_status"
|
||||||
hc keybind $Mod-Shift-c spawn /bin/bash -c "sudo stopvpn.sh && ~/.config/herbstluftwm/hl_status_deamon.py --refresh"
|
hc keybind $Mod-Shift-c spawn /bin/bash -c "sudo stopvpn.sh && sleep 2 && pkill --signal USR1 hl_status"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,9 @@ def cip_logins(ignore=""):
|
|||||||
elif len(l) <= 1:
|
elif len(l) <= 1:
|
||||||
ret = ""
|
ret = ""
|
||||||
else:
|
else:
|
||||||
color = hl_utils.get_color(len(l),MAX_LOGINS,0)
|
#color = hl_utils.get_color(len(l),0,MAX_LOGINS+3)
|
||||||
|
#color = color[0:2]+color[4:6]+color[2:4]+color[6:8]
|
||||||
|
|
||||||
ret=''
|
ret=''
|
||||||
l=sorted(l)
|
l=sorted(l)
|
||||||
for line in l:
|
for line in l:
|
||||||
@@ -58,7 +60,7 @@ def cip_logins(ignore=""):
|
|||||||
continue
|
continue
|
||||||
ret = ret + line + ", "
|
ret = ret + line + ", "
|
||||||
ret = ret[:-len(", ")]
|
ret = ret[:-len(", ")]
|
||||||
ret = hl_utils.color_panel("CIP Logins: "+ret,color)
|
ret = hl_utils.color_panel("CIP Logins: "+ret,GREEN)
|
||||||
with open(hl_utils.hlpath(LOGINS_LOG),'w') as f:
|
with open(hl_utils.hlpath(LOGINS_LOG),'w') as f:
|
||||||
f.write(ret)
|
f.write(ret)
|
||||||
|
|
||||||
|
|||||||
2
zshrc
2
zshrc
@@ -303,7 +303,7 @@ genocide(){
|
|||||||
TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/herbstluftwm/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
|
echo $TMP | while read line; do
|
||||||
if [[ $line != $HOST ]]; then
|
if [[ $line != $HOST ]]; then
|
||||||
ssh -n -q ${line}.cs.fau.de -t "pkill -s USR2 hl_status && pkill -u ik15ydit"
|
ssh -n -q ${line}.cs.fau.de -t "pkill --signal USR2 hl_status && pkill -u ik15ydit"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user