mirror of
https://github.com/FAUSheppy/config
synced 2025-12-10 00:28:32 +01:00
Compare commits
9 Commits
480de8fec5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 52c4454da1 | |||
| c44463f933 | |||
| 88cad94e09 | |||
| e93850a185 | |||
| 87aca37c85 | |||
| eb4af4d870 | |||
| 972535cab9 | |||
| a0b9388a39 | |||
| fd3f43afbb |
13
.gitignore
vendored
13
.gitignore
vendored
@@ -161,3 +161,16 @@ wireshark
|
|||||||
*.jpeg
|
*.jpeg
|
||||||
*.jpg
|
*.jpg
|
||||||
*.png
|
*.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:
|
- git
|
||||||
https://herbstluftwm.org/index.html
|
- ssh
|
||||||
|
- zsh
|
||||||
|
- vim
|
||||||
|
- herbstluft
|
||||||
|
|
||||||
|
..and some additional helper scripts and standard packages.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ if [[ "$HOST" == "atlantispc" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$HOST" == "atlantisV2" ]]; then
|
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
|
fi
|
||||||
|
|
||||||
### Atlantislaptop specific setup ###
|
### Atlantislaptop specific setup ###
|
||||||
@@ -54,7 +54,7 @@ hc keybind $Mod-q close
|
|||||||
hc keybind $Mod-Return spawn urxvt
|
hc keybind $Mod-Return spawn urxvt
|
||||||
hc keybind $Mod-y spawn urxvt #easier to press with one hand
|
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-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
|
if [[ $HOST =~ atlantis* ]]; then
|
||||||
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg_new.png -t
|
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg_new.png -t
|
||||||
@@ -167,6 +167,10 @@ hc keybind XF86AudioMute spawn amixer set Master toggle
|
|||||||
hc keybind XF86AudioRaiseVolume spawn amixer set Master 10%+
|
hc keybind XF86AudioRaiseVolume spawn amixer set Master 10%+
|
||||||
hc keybind XF86AudioLowerVolume 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
|
# theme
|
||||||
hc attr theme.tiling.reset 1
|
hc attr theme.tiling.reset 1
|
||||||
hc attr theme.floating.reset 1
|
hc attr theme.floating.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(','))
|
plain = int(bat.split('%')[0][-3:].rstrip('%').lstrip(','))
|
||||||
|
|
||||||
## imediatelly return if full and on supply ##
|
## 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():
|
if "not charging" in bat.lower():
|
||||||
return hl_utils.color_panel(bat, GREEN)
|
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 ##
|
## calculate average time remaining ##
|
||||||
sph = 60*60
|
sph = 60*60
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ URxvt.*.foreground: #EEEEEE
|
|||||||
URxvt.*.scrollBar: off
|
URxvt.*.scrollBar: off
|
||||||
URxvt.print-pipe: true
|
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
|
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.keysym.C-question: font-size:show
|
||||||
|
|
||||||
URxvt.iso14755 :false
|
URxvt.iso14755 :false
|
||||||
|
URxvt.geometry: 400x400
|
||||||
|
|||||||
1
zshrc
1
zshrc
@@ -198,6 +198,7 @@ alias sshconf="vim ~/.ssh/config"
|
|||||||
## /dev/zsh/random ##
|
## /dev/zsh/random ##
|
||||||
alias hq="ssh -4 root@atlantishq.de"
|
alias hq="ssh -4 root@atlantishq.de"
|
||||||
alias hqk="ssh -4 root@katzencluster.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 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'
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user