mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +01:00
Compare commits
13 Commits
4e19e8156c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 52c4454da1 | |||
| c44463f933 | |||
| 88cad94e09 | |||
| e93850a185 | |||
| 87aca37c85 | |||
| eb4af4d870 | |||
| 972535cab9 | |||
| a0b9388a39 | |||
| fd3f43afbb | |||
| 480de8fec5 | |||
| 67bda46b84 | |||
| 37b9439ba3 | |||
| 8ce8bc1550 |
13
.gitignore
vendored
13
.gitignore
vendored
@@ -161,3 +161,16 @@ wireshark
|
||||
*.jpeg
|
||||
*.jpg
|
||||
*.png
|
||||
|
||||
LosslessCut/
|
||||
Code/
|
||||
KDE/
|
||||
draw.io/
|
||||
helm/
|
||||
k9s/
|
||||
kde.org/
|
||||
kwritemetainfos
|
||||
openstack/
|
||||
pypoetry/
|
||||
quodlibet/
|
||||
rustdesk/
|
||||
|
||||
11
README.md
11
README.md
@@ -1,4 +1,9 @@
|
||||
You are free to use any of this for yourself, most of my config i learned or took from http://ruderich.org/simon/#config
|
||||
This is my personal config for:
|
||||
|
||||
Herbstluftwm can be found here:
|
||||
https://herbstluftwm.org/index.html
|
||||
- git
|
||||
- ssh
|
||||
- zsh
|
||||
- vim
|
||||
- herbstluft
|
||||
|
||||
..and some additional helper scripts and standard packages.
|
||||
|
||||
@@ -29,7 +29,7 @@ if [[ "$HOST" == "atlantispc" ]]; then
|
||||
fi
|
||||
|
||||
if [[ "$HOST" == "atlantisV2" ]]; then
|
||||
/usr/bin/xrandr --output DP-1 --right-of HDMI-0
|
||||
/usr/bin/xrandr --output DP-5 --right-of HDMI-0
|
||||
fi
|
||||
|
||||
### Atlantislaptop specific setup ###
|
||||
@@ -54,7 +54,7 @@ hc keybind $Mod-q close
|
||||
hc keybind $Mod-Return spawn urxvt
|
||||
hc keybind $Mod-y spawn urxvt #easier to press with one hand
|
||||
hc keybind $Mod-Shift-Return spawn ~/.config/herbstluftwm/hl_start_urxvt_cwd.py
|
||||
hc keybind $Mod-i spawn "/usr/bin/chromium"
|
||||
hc keybind $Mod-i spawn "/usr/bin/firefox"
|
||||
|
||||
if [[ $HOST =~ atlantis* ]]; then
|
||||
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg_new.png -t
|
||||
@@ -163,12 +163,13 @@ hc keybind $Mod-Shift-Tab cycle_all -1
|
||||
#hc keybind $Mod-i jumpto urgent
|
||||
|
||||
#pulseaudio
|
||||
#hc keybind XF86AudioRaiseVolume spawn /bin/sh -c 'pactl set-sink-volume @DEFAULT_SINK@ +5%' #increase sound volume
|
||||
#hc keybind $Mod-u spawn /bin/sh -c 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
||||
#hc keybind XF86AudioLowerVolume spawn /bin/sh -c 'pactl set-sink-volume @DEFAULT_SINK@ -5%' #decrease sound volume
|
||||
#hc keybind $Mod-Shift-u spawn /bin/sh -c 'pactl set-sink-volume @DEFAULT_SINK@ -5%'
|
||||
#hc keybind XF86AudioMute spawn /bin/sh -c 'pactl set-sink-mute @DEFAULT_SINK@ toggle && pactl set-sink-volume @DEFAULT_SINK@ 100%' #toggle mute
|
||||
#hc keybind $Mod-m spawn /bin/sh -c 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||
hc keybind XF86AudioMute spawn amixer set Master toggle
|
||||
hc keybind XF86AudioRaiseVolume spawn amixer set Master 10%+
|
||||
hc keybind XF86AudioLowerVolume spawn amixer set Master 10%-
|
||||
|
||||
# bluethooth
|
||||
hc keybind $Mod-b spawn ~/.config/herbstluftwm/bluethooth_connect.sh c
|
||||
hc keybind $Mod-n spawn ~/.config/herbstluftwm/bluethooth_connect.sh d
|
||||
|
||||
# theme
|
||||
hc attr theme.tiling.reset 1
|
||||
|
||||
17
herbstluftwm/bluethooth_connect.sh
Executable file
17
herbstluftwm/bluethooth_connect.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SESSION="btconnect"
|
||||
MAC="E8:9E:13:04:0A:77"
|
||||
|
||||
if [[ "$1" == "d" ]]; then
|
||||
CMD="disconnect $MAC"
|
||||
else
|
||||
CMD="connect $MAC"
|
||||
fi
|
||||
|
||||
tmux new-session -d -s "$SESSION" "bluetoothctl"
|
||||
|
||||
sleep 0.3
|
||||
|
||||
tmux send-keys -t "$SESSION" "$CMD" C-m
|
||||
tmux send-keys -t "$SESSION" C-d
|
||||
@@ -101,10 +101,10 @@ def battery():
|
||||
plain = int(bat.split('%')[0][-3:].rstrip('%').lstrip(','))
|
||||
|
||||
## imediatelly return if full and on supply ##
|
||||
if bat.startswith("Full") or bat.startswith('Unknown') or plain > 98:
|
||||
return hl_utils.color_panel("On Supply and fully charged", GREEN)
|
||||
if "not charging" in bat.lower():
|
||||
return hl_utils.color_panel(bat, GREEN)
|
||||
if bat.startswith("Full") or bat.startswith('Unknown') or "100%" in bat or "99%" in bat:
|
||||
return hl_utils.color_panel("On Supply and fully charged", GREEN)
|
||||
|
||||
## calculate average time remaining ##
|
||||
sph = 60*60
|
||||
@@ -213,7 +213,7 @@ last_ip="LOL"
|
||||
def ip_status():
|
||||
global last_ip
|
||||
try:
|
||||
ip="Public IP: "+ hl_utils.shexec("wget -4 --no-proxy --timeout=3 -O- --quiet ipcheck.atlantishq.de")
|
||||
ip="Public IP: "+ hl_utils.shexec("wget -4 --no-proxy --timeout=3 -O- --quiet https://ipcheck.atlantishq.de:10443")
|
||||
if last_ip == ip:
|
||||
return
|
||||
else:
|
||||
|
||||
@@ -3,7 +3,7 @@ URxvt.*.foreground: #EEEEEE
|
||||
URxvt.*.scrollBar: off
|
||||
URxvt.print-pipe: true
|
||||
|
||||
URxvt.perl-ext-common: default,selection-to-clipboard,tabbed,matcher,font-size,-tabbed
|
||||
URxvt.perl-ext-common: default,selection-to-clipboard,tabbed,matcher,font-size,-tabbed,-confirm-paste
|
||||
|
||||
|
||||
URxvt.font: xft:bitstream vera sans mono:size=10:antialias=true
|
||||
@@ -16,3 +16,4 @@ URxvt.keysym.C-equal: font-size:reset
|
||||
URxvt.keysym.C-question: font-size:show
|
||||
|
||||
URxvt.iso14755 :false
|
||||
URxvt.geometry: 400x400
|
||||
|
||||
3
zshrc
3
zshrc
@@ -197,6 +197,8 @@ alias sshconf="vim ~/.ssh/config"
|
||||
|
||||
## /dev/zsh/random ##
|
||||
alias hq="ssh -4 root@atlantishq.de"
|
||||
alias hqk="ssh -4 root@katzencluster.atlantishq.de"
|
||||
alias hqh="ssh -4 root@atlantis-helsinki.atlantishq.de"
|
||||
alias ths="ssh root@ths.atlantishq.de"
|
||||
|
||||
alias pcolor='for i in {0..255} ; do printf "\x1b[38;5;${i}mcolour${i} "; if [[ $(((($i+3)/6)*6)) -eq $(($i+3)) ]]; then echo; fi; done'
|
||||
@@ -227,3 +229,4 @@ alias connect_synology="ssh -f -o ExitOnForwardFailure=yes -i ~/.ssh/sheppy-mast
|
||||
#alias tcpdump_http=stdbuf -oL -eL /usr/bin/tcpdump -A -s 10240 "tcp port 8000 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" | egrep -a --line-buffered ".+(GET |HTTP\/|POST )|^[A-Za-z0-9-]+: " | perl -nle 'BEGIN{$|=1} { s/.*?(GET |HTTP\/[0-9.]* |POST )/\n$1/g; print }'
|
||||
ths_ssh="ssh -f -o ExitOnForwardFailure=yes -i .ssh/sheppy-master -L 8000:host.docker.internal:22 root@172.16.1.4 sleep 3600 && ssh cheffe@localhost -p 8000"
|
||||
#trap ctrl_c INT; function ctrl_c() {};
|
||||
alias sss='ssh root@192.168.1.89 -t "systemctl suspend; exit"'
|
||||
|
||||
Reference in New Issue
Block a user