mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 15:11:35 +01:00
Merge branch 'master' of gitlab.com:Sheppy_/config
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[user]
|
[user]
|
||||||
email = yannik.schmidt@fau.de
|
email = ""
|
||||||
name = Sheppy
|
name = Sheppy
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ if [[ "$HOST" == "atlantislaptop" ]]; then
|
|||||||
fi
|
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 &
|
||||||
xautolock -unlocknow # fixes anoying bug that causes lockscreen to start after autologon
|
# xautolock -unlocknow # fixes anoying bug that causes lockscreen to start after autologon
|
||||||
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-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 && sleep 2 && pkill --signal USR1 hl_status"
|
# hc keybind $Mod-Shift-c spawn /bin/bash -c "sudo stopvpn.sh && sleep 2 && pkill --signal USR1 hl_status"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
######### GENERAL SETUP #########
|
######### GENERAL SETUP #########
|
||||||
@@ -78,8 +78,8 @@ hc keybind $Mod-p spawn pavucontrol
|
|||||||
hc keybind $Mod-Shift-l spawn libreoffice
|
hc keybind $Mod-Shift-l spawn libreoffice
|
||||||
hc keybind $Mod-t spawn /bin/bash -c "LC_ALL=en_DK.utf8 && export LC_ALL && thunderbird"
|
hc keybind $Mod-t spawn /bin/bash -c "LC_ALL=en_DK.utf8 && export LC_ALL && thunderbird"
|
||||||
hc keybind $Mod-Shift-i spawn urxvt -e ssh ik15ydit@ircbox.cs.fau.de -t 'tmux a -d'
|
hc keybind $Mod-Shift-i spawn urxvt -e ssh ik15ydit@ircbox.cs.fau.de -t 'tmux a -d'
|
||||||
hc keybind $Mod-Shift-j spawn urxvt -e ssh sheppy@atlantishq.de -t 'tmux a -d'
|
hc keybind $Mod-Shift-j spawn urxvt -e ssh sheppy-irc@athq.de -t 'tmux a -d'
|
||||||
hc keybind $Mod-Shift-t spawn urxvt -e ssh telegram-sheppy@atlantishq.de -i ~/.ssh/telegram -t "/home/telegram-sheppy/tg/bin/telegram-cli"
|
#hc keybind $Mod-Shift-t spawn urxvt -e ssh telegram-sheppy@atlantishq.de -i ~/.ssh/telegram -t "/home/telegram-sheppy/tg/bin/telegram-cli"
|
||||||
hc keybind $Mod-e spawn rofi -combi-mode window,run -show combi -modi combi
|
hc keybind $Mod-e spawn rofi -combi-mode window,run -show combi -modi combi
|
||||||
hc keybind $Mod-Shift-e spawn rofi -show run
|
hc keybind $Mod-Shift-e spawn rofi -show run
|
||||||
|
|
||||||
@@ -240,7 +240,7 @@ herbstclient set tree_style '╾│ ├└╼─┐'
|
|||||||
# do multi monitor setup here, e.g.:
|
# do multi monitor setup here, e.g.:
|
||||||
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
|
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
|
||||||
# or simply:
|
# or simply:
|
||||||
# hc detect_monitors
|
hc detect_monitors
|
||||||
|
|
||||||
# find the panel
|
# find the panel
|
||||||
hlpath="${HOME}/.config/herbstluftwm"
|
hlpath="${HOME}/.config/herbstluftwm"
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ def vpn_status():
|
|||||||
try:
|
try:
|
||||||
if not hl_utils.is_cip():
|
if not hl_utils.is_cip():
|
||||||
out_vpn = hl_utils.shexec("ip r g 8.8.8.8").split("\n")[0]
|
out_vpn = hl_utils.shexec("ip r g 8.8.8.8").split("\n")[0]
|
||||||
if "dev cip_tun" in out_vpn:
|
if "dev athq_tun" in out_vpn:
|
||||||
out_vpn = hl_utils.color_panel("VPN: In Use",GREEN)
|
out_vpn = hl_utils.color_panel("VPN: In Use",GREEN)
|
||||||
else:
|
else:
|
||||||
out_vpn = hl_utils.color_panel("VPN: Link Down",RED)
|
out_vpn = hl_utils.color_panel("VPN: Link Down",RED)
|
||||||
@@ -224,7 +224,7 @@ last_ip="LOL"
|
|||||||
def ip_status():
|
def ip_status():
|
||||||
global last_ip
|
global last_ip
|
||||||
try:
|
try:
|
||||||
ip="Public IP: "+ hl_utils.shexec("wget -4 --no-proxy --timeout=3 -O- --quiet https://atlantishq.de:8002/ipcheck")
|
ip="Public IP: "+ hl_utils.shexec("wget -4 --no-proxy --timeout=3 -O- --quiet ipcheck.atlantishq.de")
|
||||||
if last_ip == ip:
|
if last_ip == ip:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
# The parser is also very primitive, and not human-friendly.
|
# The parser is also very primitive, and not human-friendly.
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||||
sort_key=46
|
sort_key=47
|
||||||
sort_direction=1
|
sort_direction=1
|
||||||
hide_threads=0
|
hide_threads=0
|
||||||
hide_kernel_threads=1
|
hide_kernel_threads=1
|
||||||
@@ -12,7 +12,7 @@ show_program_path=1
|
|||||||
highlight_base_name=0
|
highlight_base_name=0
|
||||||
highlight_megabytes=1
|
highlight_megabytes=1
|
||||||
highlight_threads=1
|
highlight_threads=1
|
||||||
tree_view=1
|
tree_view=0
|
||||||
header_margin=1
|
header_margin=1
|
||||||
detailed_cpu_time=0
|
detailed_cpu_time=0
|
||||||
cpu_count_from_zero=0
|
cpu_count_from_zero=0
|
||||||
|
|||||||
@@ -13,24 +13,4 @@ URxvt.keysym.C-plus: resize-font:bigger
|
|||||||
URxvt.keysym.C-equal: resize-font:reset
|
URxvt.keysym.C-equal: resize-font:reset
|
||||||
URxvt.keysym.C-question: resize-font:show
|
URxvt.keysym.C-question: resize-font:show
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
URxvt.iso14755 :false
|
URxvt.iso14755 :false
|
||||||
|
|
||||||
!experimental
|
|
||||||
!URxvt*externalBorder: 3
|
|
||||||
!URxvt*borderLess: false
|
|
||||||
!URxvt*internalBorder: 5
|
|
||||||
!URxvt*borderColor: red
|
|
||||||
|
|
||||||
XLock*mode: image
|
|
||||||
XLock*image.bitmap: ~/.xlock.xpm
|
|
||||||
XLock*image.count: 1
|
|
||||||
XLock*image.erasedelay: 0
|
|
||||||
XLock*erasedelay: 0
|
|
||||||
XLock*icongeometry: 180x180
|
|
||||||
XLock*background: Black
|
|
||||||
XLock*foreground: White
|
|
||||||
XLock*description: off
|
|
||||||
XLock*info:
|
|
||||||
|
|||||||
10
zshrc
10
zshrc
@@ -208,10 +208,6 @@ if [[ $HOST =~ faui* || $HOST =~ ircbox ]]; then
|
|||||||
mesg n
|
mesg n
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Connect to ircbox and attach tmux
|
|
||||||
alias irc="ssh ircbox.cs.fau.de -t 'command; tmux a'"
|
|
||||||
alias dirc="ssh sheppy@atlantishq.de -t 'command; tmux a'"
|
|
||||||
|
|
||||||
## lock screen but still let people read it
|
## lock screen but still let people read it
|
||||||
alias transparent_xlock="xlock -mode blank -geometry 1x1"
|
alias transparent_xlock="xlock -mode blank -geometry 1x1"
|
||||||
|
|
||||||
@@ -237,7 +233,6 @@ alias gadd="git add"
|
|||||||
|
|
||||||
## REMOTE HOSTS ##
|
## REMOTE HOSTS ##
|
||||||
alias -g sq="sheppy@squarez.fauiwg.de"
|
alias -g sq="sheppy@squarez.fauiwg.de"
|
||||||
alias -g pine="sheppy@sheppy.chickenkiller.com"
|
|
||||||
|
|
||||||
## PACKAGE MANAGEMENT ##
|
## PACKAGE MANAGEMENT ##
|
||||||
alias psearch="apt-cache search"
|
alias psearch="apt-cache search"
|
||||||
@@ -341,7 +336,10 @@ alias bc="cd /proj/cipdata/ik15ydit/license-confusion-bc"
|
|||||||
export PYTHONPATH=/home/cip/2013/ik15ydit/python-local
|
export PYTHONPATH=/home/cip/2013/ik15ydit/python-local
|
||||||
alias -g atip="echo 93.104.211.59"
|
alias -g atip="echo 93.104.211.59"
|
||||||
alias atp="~/.config/playercount.py"
|
alias atp="~/.config/playercount.py"
|
||||||
alias mongo="LD_PRELOAD=/home/cip/2013/ik15ydit/libyaml-cpp.so.0.5 ~/mongo github"
|
|
||||||
alias players='~/trash/test/test.py'
|
alias players='~/trash/test/test.py'
|
||||||
alias cleanhistory="awk '{if (a[$0] < NR || a[$0] == 0){a[$0]=NR}}END{for (i in a){print a[i] " " i}}' file | sort -n | cut 1"
|
alias cleanhistory="awk '{if (a[$0] < NR || a[$0] == 0){a[$0]=NR}}END{for (i in a){print a[i] " " i}}' file | sort -n | cut 1"
|
||||||
alias ths="ssh root@ths.atlantishq.de"
|
alias ths="ssh root@ths.atlantishq.de"
|
||||||
|
|
||||||
|
# insurgency debugging
|
||||||
|
alias balance="curl localhost:5000/getbalancedteams\?players=Shepppy,OrhunReiz,Bluejalapeno4,RandomItaliano\&names=true"
|
||||||
|
alias quality="curl localhost:5000/quality\?playerswithteams=Shepppy,OrhunReiz\|Bluejalapeno4,RandomItaliano\&names=true"
|
||||||
|
|||||||
Reference in New Issue
Block a user