mirror of
https://github.com/FAUSheppy/config
synced 2025-12-07 15:31:35 +01:00
Merge branch 'master' of gitlab.cs.fau.de:ik15ydit/config
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
ln -s ~/.config/vim/rc ~/.vimrc
|
ln -s ~/.config/vim/rc ~/.vimrc
|
||||||
ln -s ~/.config/zshrc ~/.zshrc
|
ln -s ~/.config/zshrc ~/.zshrc
|
||||||
ln -s ~/.config/xconf/Xressources ~/.Xressources
|
ln -s ~/.config/xconf/Xressources ~/.Xressources
|
||||||
ln -s ~/.config/xconf/.xsessionsrc ~/.xsessionrc
|
ln -s ~/.config/xconf/.xsessionsrc ~/.xinitrc
|
||||||
mkdir -p ~/.zsh
|
mkdir -p ~/.zsh
|
||||||
|
|||||||
@@ -12,23 +12,21 @@ xsetroot -solid '#5A8E3A'
|
|||||||
|
|
||||||
# reset
|
# reset
|
||||||
hc keyunbind --all
|
hc keyunbind --all
|
||||||
pkill dunst
|
#pkill dunst
|
||||||
pkill xautolock
|
pkill xautolock
|
||||||
pkill -s 15 hl_pracct #send SIGTERM for correct termination during write
|
pkill -s 15 hl_pracct #send SIGTERM for correct termination during write
|
||||||
pkill ssh-agent #correctly terminate the current agent
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
Mod=Mod4 # Use the super key as the main modifier
|
Mod=Mod4 # Use the super key as the main modifier
|
||||||
|
|
||||||
######### MACHINE SPECIFIC SETUP #########
|
######### MACHINE SPECIFIC SETUP #########
|
||||||
### All Machines ####
|
### All Machines ####
|
||||||
if [ -f $HOME/.config/agent_socket ]; then
|
|
||||||
eval `ssh-agent -a /tmp/ssh-$(cat $HOME/.config/agent_socket)`
|
|
||||||
fi
|
|
||||||
### Atlantis PC-specific setup ###
|
### Atlantis PC-specific setup ###
|
||||||
if [[ "$HOST" == "atlantispc" ]]; then
|
if [[ "$HOST" == "atlantispc" ]]; then
|
||||||
|
/usr/bin/xrandr --output DVI-D-1 --left-of HDMI-1
|
||||||
hc detect_monitors
|
hc detect_monitors
|
||||||
/usr/bin/xrandr --output DVI-I-2 --right-of DVI-I-1
|
hc set swap_monitors_to_get_tag 0
|
||||||
|
#hc set_monitors 3840x1080+0+0
|
||||||
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
||||||
fi
|
fi
|
||||||
### Atlantislaptop specific setup ###
|
### Atlantislaptop specific setup ###
|
||||||
@@ -36,7 +34,7 @@ if [[ "$HOST" == "atlantislaptop" ]]; then
|
|||||||
hc keybind XF86MonBrightnessUp spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) + 5)"'
|
hc keybind XF86MonBrightnessUp spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) + 5)"'
|
||||||
hc keybind XF86MonBrightnessDown spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) - 5)"'
|
hc keybind XF86MonBrightnessDown spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) - 5)"'
|
||||||
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
||||||
/usr/bin/dunst &
|
#/usr/bin/dunst &
|
||||||
hc keybind $Mod-o spawn /bin/bash -c "/home/ik15ydit/.config/i3lock/piclock.sh & systemctl hibernate"
|
hc keybind $Mod-o spawn /bin/bash -c "/home/ik15ydit/.config/i3lock/piclock.sh & systemctl hibernate"
|
||||||
hc keybind $Mod-c spawn /bin/bash -c "sudo /usr/bin/openvpn_cip.sh & ~/.config/herbstluftwm/hl_status_deamon.py --refresh"
|
hc keybind $Mod-c spawn /bin/bash -c "sudo /usr/bin/openvpn_cip.sh & ~/.config/herbstluftwm/hl_status_deamon.py --refresh"
|
||||||
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 && ~/.config/herbstluftwm/hl_status_deamon.py --refresh"
|
||||||
@@ -221,7 +219,7 @@ hc rule focus=on # normally focus new clients
|
|||||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
|
||||||
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
||||||
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
|
||||||
hc rule --instance=chromium-browser --ewmhrequests=off
|
hc rule --instance=chromium --ewmhrequests=off
|
||||||
|
|
||||||
# unlock, just to be sure
|
# unlock, just to be sure
|
||||||
hc unlock
|
hc unlock
|
||||||
|
|||||||
@@ -75,7 +75,9 @@ def guthaben():
|
|||||||
|
|
||||||
def vpn():
|
def vpn():
|
||||||
vpn = ''
|
vpn = ''
|
||||||
if not hl_utils.is_cip():
|
if hl_utils.is_cip():
|
||||||
|
return ''
|
||||||
|
else:
|
||||||
tmp = -1
|
tmp = -1
|
||||||
with open(hl_utils.hlpath("vpn_status.log")) as f:
|
with open(hl_utils.hlpath("vpn_status.log")) as f:
|
||||||
tmp = f.read()
|
tmp = f.read()
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ htop ;#taskmanager
|
|||||||
i3lock ;#screenlock
|
i3lock ;#screenlock
|
||||||
katarakt ;#simple and performant pdfviewer
|
katarakt ;#simple and performant pdfviewer
|
||||||
pulseaudio ;#sound
|
pulseaudio ;#sound
|
||||||
|
alsa-utils ;#implicit dependency of pulseaudio
|
||||||
rxvt-unicode-256color ;#terminal-emulator
|
rxvt-unicode-256color ;#terminal-emulator
|
||||||
sudo ;#execute as root
|
sudo ;#execute as root
|
||||||
tmux ;#terminal multiplexer (multiple terminals within one)
|
tmux ;#terminal multiplexer (multiple terminals within one)
|
||||||
usbutils ;#usefullshit for usbdevices
|
|
||||||
vim-nox ;#good consol texeditor with script support
|
vim-nox ;#good consol texeditor with script support
|
||||||
zsh ;#much better shell than bash
|
zsh ;#much better shell than bash
|
||||||
x11-xserver-utils ;#xrandr
|
x11-xserver-utils ;#xrandr
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
acpi ;#check battery
|
acpi ;#check battery
|
||||||
apt ;#advanced installer
|
|
||||||
aptitude ;#advanced installer
|
|
||||||
arping ;#find all devices in network
|
|
||||||
autoconf ;#used for building LD_PRELOAD
|
autoconf ;#used for building LD_PRELOAD
|
||||||
bison ;#used for gene (bachelorarbeit)
|
|
||||||
build-essential ;#make
|
build-essential ;#make
|
||||||
chromium ;#internet
|
chromium ;#internet
|
||||||
colordiff ;#colored diff
|
colordiff ;#colored diff
|
||||||
coreutils ;#many usefull tools
|
coreutils ;#many usefull tools
|
||||||
cron ;#execute tasks automaticly at certain times
|
cron ;#execute tasks automaticly at certain times
|
||||||
cscope ;#find shit in big repros
|
cscope ;#find shit in big repros
|
||||||
dunst ;#notification deamon for notify-send
|
|
||||||
dzen2 ;#used for herbsluftclient panel
|
dzen2 ;#used for herbsluftclient panel
|
||||||
eclipse ;#java programming enviroment
|
eclipse ;#java programming enviroment
|
||||||
enscript ;#used for pdf/ps stuff
|
enscript ;#used for pdf/ps stuff
|
||||||
@@ -20,16 +15,15 @@ exfat-fuse ;#mount exfat devices as user
|
|||||||
exfat-utils ;#more options for exfat
|
exfat-utils ;#more options for exfat
|
||||||
feh ;#simple pictureviewer
|
feh ;#simple pictureviewer
|
||||||
findutils ;#find things
|
findutils ;#find things
|
||||||
gcc-4.9-base ;#C-Compiler
|
gcc ;#C-Compiler
|
||||||
g++ ;#C++ compiler
|
g++ ;#C++ compiler
|
||||||
gcp ;#copy with statusbar
|
gcp ;#copy with statusbar
|
||||||
gedit ;#graphical texteditor
|
gedit ;#graphical texteditor
|
||||||
geparted ;#partitionmanagement
|
gparted ;#partitionmanagement
|
||||||
git ;#version controll system
|
git ;#version controll system
|
||||||
grep ;#search for keywords
|
grep ;#search for keywords
|
||||||
gzip ;#compress
|
gzip ;#compress
|
||||||
herbstluftwm ;#windowmanager
|
herbstluftwm ;#windowmanager
|
||||||
hgsubversion ;#(shitty) version control system needed for aud
|
|
||||||
htop ;#taskmanager
|
htop ;#taskmanager
|
||||||
i3lock ;#screenlock
|
i3lock ;#screenlock
|
||||||
icedove ;#email client
|
icedove ;#email client
|
||||||
@@ -41,7 +35,6 @@ iputils-ping ;#tracerout and ping
|
|||||||
iw ;#information about network interfaces
|
iw ;#information about network interfaces
|
||||||
katarakt ;#simple and performant pdfviewer
|
katarakt ;#simple and performant pdfviewer
|
||||||
kolourpaint4 ;#simple pictureeditor
|
kolourpaint4 ;#simple pictureeditor
|
||||||
less ;#simple textview
|
|
||||||
libreoffice ;#documenteditor like open office
|
libreoffice ;#documenteditor like open office
|
||||||
lm-sensors ;#CPU/GraKa (temperatur) sensors
|
lm-sensors ;#CPU/GraKa (temperatur) sensors
|
||||||
nano ;#very simple to use consol-texteditor
|
nano ;#very simple to use consol-texteditor
|
||||||
@@ -52,22 +45,20 @@ openssh-client ;#ssh
|
|||||||
pandoc ;#used for pdf conversion
|
pandoc ;#used for pdf conversion
|
||||||
pavucontrol ;#sound control
|
pavucontrol ;#sound control
|
||||||
pdf-presenter-console ;#simple pdfviewer usefull for presentations
|
pdf-presenter-console ;#simple pdfviewer usefull for presentations
|
||||||
poppler-utils ;#extract images from pdfs
|
poppler-utils ;#extract images from pdfs (MarkingBird)
|
||||||
pulseaudio ;#sound
|
pulseaudio ;#sound
|
||||||
python ;#python
|
python ;#python
|
||||||
python-pdfminer ;#needed for markingbird
|
python-pdfminer ;#needed for markingbird
|
||||||
python-pip ;#install python modules
|
python-pip ;#install python modules
|
||||||
python-psutils ;#needed for hl_start_urxvt_cwd.py (hlconfig)
|
python-psutil ;#needed for hl_start_urxvt_cwd.py (hlconfig)
|
||||||
qemu-kvm ;#virtual machine
|
qemu-kvm ;#virtual machine
|
||||||
rofi ;#easier find/switch between open windows
|
rofi ;#easier find/switch between open windows
|
||||||
rxvt-unicode-256color ;#terminal-emulator
|
rxvt-unicode-256color ;#terminal-emulator
|
||||||
sed ;#regex stream manipulation (used for hl-panel)
|
sed ;#regex stream manipulation (used for hl-panel)
|
||||||
sleuthkit ;#forensik utilities
|
|
||||||
sshfs ;#mount harddrives over ssh
|
sshfs ;#mount harddrives over ssh
|
||||||
strace ;#track behaviour or processes
|
strace ;#track behaviour or processes
|
||||||
sudo ;#execute as root
|
sudo ;#execute as root
|
||||||
tar ;#compressing/unpacking
|
tar ;#compressing/unpacking
|
||||||
tesseract-ocr ;#optical character/text recognition
|
|
||||||
texlive-full ;#tex (Achtung groß)
|
texlive-full ;#tex (Achtung groß)
|
||||||
texmaker ;#tex gui
|
texmaker ;#tex gui
|
||||||
tig ;#git history
|
tig ;#git history
|
||||||
@@ -81,6 +72,4 @@ whois ;#lookup ips etc of DNS adresses
|
|||||||
wicd-curses ;#good simple networkmanager
|
wicd-curses ;#good simple networkmanager
|
||||||
wine ;#windows emuator
|
wine ;#windows emuator
|
||||||
winetricks ;#windows emulator utilities
|
winetricks ;#windows emulator utilities
|
||||||
xorg ;#needed for nearly all windowmangers
|
|
||||||
xpra ;#open graphical window on remote pc
|
xpra ;#open graphical window on remote pc
|
||||||
zsh ;#much better shell than bash
|
|
||||||
|
|||||||
6
ssh/config
Normal file
6
ssh/config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Host gitlab.cs.fau.de
|
||||||
|
IdentityFile ~/.ssh/gitrsa
|
||||||
|
Host *.fauiwg.de
|
||||||
|
IdentityFile ~/.ssh/wg
|
||||||
|
Host *.cs.fau.de
|
||||||
|
IdentityFile ~/.ssh/cipkey
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
xrdb ~/.Xressources
|
||||||
xrdb /home/ik15ydit/.Xresources
|
eval `ssh-agent`
|
||||||
exec herbstluftwm
|
exec herbstluftwm
|
||||||
|
|||||||
6
zshrc
6
zshrc
@@ -157,7 +157,7 @@ fi
|
|||||||
|
|
||||||
## CONNECT UNI ##
|
## CONNECT UNI ##
|
||||||
alias irc="ssh ircbox.cs.fau.de -t 'command; tmux a'"
|
alias irc="ssh ircbox.cs.fau.de -t 'command; tmux a'"
|
||||||
alias -g uni="faui06c.cs.fau.de"
|
alias -g uni="ik15ydit@faui06c.cs.fau.de"
|
||||||
alias cipkey="ssh-add ~/.ssh/ciplogin"
|
alias cipkey="ssh-add ~/.ssh/ciplogin"
|
||||||
alias cipra="xpra start ssh:ik15ydit@faui00n.cs.fau.de:100 --start-child urxvt"
|
alias cipra="xpra start ssh:ik15ydit@faui00n.cs.fau.de:100 --start-child urxvt"
|
||||||
alias mountcip="sshfs ik15ydit@faui00n.cs.fau.de:/ -o idmap=user $CIP_MOUNTPOINT"
|
alias mountcip="sshfs ik15ydit@faui00n.cs.fau.de:/ -o idmap=user $CIP_MOUNTPOINT"
|
||||||
@@ -180,8 +180,8 @@ if [[ $HOST =~ faui* ]]; then
|
|||||||
fi
|
fi
|
||||||
## MOUNTABLE CIP-SHORTCUTS ##
|
## MOUNTABLE CIP-SHORTCUTS ##
|
||||||
if [[ $HOST =~ atlantis* ]]; then
|
if [[ $HOST =~ atlantis* ]]; then
|
||||||
alias ciptmp="cd ~/mountpoints/cip_root/proj/ciptmp/ik15ydit/"
|
alias -g ciptmp="~/mountpoints/cip_root/proj/ciptmp/ik15ydit/"
|
||||||
alias ciphome="cd ~/mountpoints/cip_root/home/cip/2013/ik15ydit/"
|
alias -g ciphome="~/mountpoints/cip_root/home/cip/2013/ik15ydit/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## DIPLAY CONTROL ##
|
## DIPLAY CONTROL ##
|
||||||
|
|||||||
Reference in New Issue
Block a user