From 9e24c2142ea781a487b4147832a9fc5541c789f8 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Tue, 30 May 2017 18:37:32 +0200 Subject: [PATCH 1/5] update to promt --- zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 68a0f90..0fbccf3 100644 --- a/zshrc +++ b/zshrc @@ -31,12 +31,13 @@ fi setopt promptsubst CMD_START=$'%F{$MAIN_PROMT_COLOR}--->%f ' PS1=$'%F{$USER_COLOR}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt -PS1=%F{$MAIN_PROMT_COLOR}$'${(r:$COLUMNS::\u2500:)}'%f$PS1 if [[ ( $USER != 'sheppy') && ( $USER != 'ik15ydit') && ( $USER != 'root' ) ]]; then - PS1='%n'$PS1 + PS1='%F{cyan}%n%f%F{red}@%f'$PS1 fi +PS1=%F{$MAIN_PROMT_COLOR}$'${(r:$COLUMNS::\u2500:)}'%f$PS1 + ### STYLE ### zstyle ':completion:*:default' list-prompt '%p' zstyle ':completion:*' use-cache yes; zstyle ':completion:*' cache-path #~/.zsh/cache (~/.zsh muss existieren) From 0e415dd3ffd2f237013b1c30476fbe8fcfb3d9e2 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Wed, 7 Jun 2017 15:01:24 +0200 Subject: [PATCH 2/5] meh --- ssh/config | 1 + zshrc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh/config b/ssh/config index 20df1e0..8a4664f 100644 --- a/ssh/config +++ b/ssh/config @@ -3,6 +3,7 @@ Host atlantismedion Host gitlab.cs.fau.de IdentityFile ~/.ssh/gitrsa Host *.fauiwg.de + User sheppy IdentityFile ~/.ssh/wg Host *.cs.fau.de IdentityFile ~/.ssh/cipkey diff --git a/zshrc b/zshrc index 68a0f90..ae38d84 100644 --- a/zshrc +++ b/zshrc @@ -164,7 +164,7 @@ alias irc="ssh ircbox.cs.fau.de -t 'command; tmux a'" alias -g uni="ik15ydit@faui06c.cs.fau.de" alias cipkey="ssh-add ~/.ssh/ciplogin" 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 reconnect,idmap=user $CIP_MOUNTPOINT" alias umountcip="fusermount -u $CIP_MOUNTPOINT" ## DIRECT TO CONFIG ## From a7c88cf8a1edfe1a828e8814ce06ebb28ee29fda Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 8 Jun 2017 13:08:14 +0200 Subject: [PATCH 3/5] Removed important Date --- herbstluftwm/panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herbstluftwm/panel.sh b/herbstluftwm/panel.sh index 564ffba..ce99157 100755 --- a/herbstluftwm/panel.sh +++ b/herbstluftwm/panel.sh @@ -118,7 +118,7 @@ hc pad $monitor $panel_height echo -n "^bg()^fg() ${windowtitle//^/^^}" ####################### Interface to python layer ######################### - right="30. Mai 14 Kobras |$($HOME/.config/herbstluftwm/hl_panel_content.py) $date" + right="$($HOME/.config/herbstluftwm/hl_panel_content.py) $date" right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g') # get width of right aligned text.. and add some space.. From b98a3fe1f2148ff9d28e732d2b7665555e3a85a4 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 8 Jun 2017 13:42:58 +0200 Subject: [PATCH 4/5] Kill more shit at logout --- herbstluftwm/autostart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index fbf205e..d7c6a05 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -12,9 +12,9 @@ xsetroot -solid '#5A8E3A' # reset hc keyunbind --all -#pkill dunst pkill xautolock # WONT WORK --> cause process has other name no idea which though pkill -s 15 hl_status_deamon #send SIGTERM for correct termination during write +pkill hl_status_deamo #variables Mod=Mod4 # Use the super key as the main modifier @@ -36,7 +36,7 @@ if [[ "$HOST" == "atlantislaptop" ]]; then xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh & #/usr/bin/dunst & 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 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 & ~/.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" fi @@ -47,7 +47,7 @@ hc spawn ~/.config/herbstluftwm/hl_status_deamon.py # keybindings #client handling -hc keybind $Mod-Shift-q quit +hc keybind $Mod-Shift-q spawn /bin/bash -c "pkill hl_status_deamo & pkill ssh-agent & herbstclient quit" if [[ $HOST =~ atlantis* ]]; then hc keybind $Mod-Shift-p spawn sudo /sbin/poweroff fi From b940c169113961c4287a28ed5240a6904ac57122 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 17 Jun 2017 16:28:41 +0200 Subject: [PATCH 5/5] ma --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index e37829a..69c2d17 100644 --- a/zshrc +++ b/zshrc @@ -168,6 +168,10 @@ alias cipra="xpra start ssh:ik15ydit@faui00n.cs.fau.de:100 --start-child urxvt" alias mountcip="sshfs ik15ydit@faui00n.cs.fau.de:/ -o reconnect,idmap=user $CIP_MOUNTPOINT" alias umountcip="fusermount -u $CIP_MOUNTPOINT" +## CONNECT Locally ## +alias -g atlantislaptop = "ik15ydit@atlantislaptop.local" +alias -g atlantismedion = "ik15ydit@atlantismedion.local" + ## DIRECT TO CONFIG ## alias hlconf="vim ~/.config/herbstluftwm/autostart" alias zshconf="vim ~/.zshrc"