Changes on Wed 07 Sep 2022 10:00:00 PM CEST

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
clean_emacs
TuDatTr 2022-09-07 22:00:00 +02:00
parent f8055181a8
commit 7d19f55639
11 changed files with 672 additions and 386 deletions

View File

@ -1,24 +1,4 @@
# status - Byobu's default status enabled/disabled settings
#
# Override these in $BYOBU_CONFIG_DIR/status
# where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined,
# and $HOME/.byobu otherwise.
#
# Copyright (C) 2009-2011 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@byobu.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Status bar for tmux and screen
# Status beginning with '#' are disabled.
@ -28,10 +8,8 @@ screen_upper_right="color whoami hostname ip_address menu"
screen_lower_left="color logo distro release #arch session"
screen_lower_right="color network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap disk #time_utc date time"
# Tmux has one status line, with 2 halves for status
tmux_left=" logo #distro #release #arch session"
tmux_left=" logo #distro #release #arch #session"
# You can have as many tmux right lines below here, and cycle through them using Shift-F5
tmux_right=" #network #disk_io #custom #entropy #raid #reboot_required #updates_available #apport #services #mail #users uptime #fan_speed #cpu_temp battery #wifi_quality #processes load_average #cpu_count #cpu_freq #memory #swap #disk #whoami #hostname ip_address #time_utc date time"
#tmux_right="network #disk_io #custom entropy raid reboot_required updates_available #apport #services #mail users uptime fan_speed cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk whoami hostname ip_address #time_utc date time"
#tmux_right="network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk #whoami #hostname ip_address #time_utc date time"
#tmux_right="#network disk_io #custom entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime fan_speed cpu_temp #battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap whoami hostname ip_address #time_utc disk date time"
tmux_right="#network #disk_io #custom #entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime #fan_speed #cpu_temp battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap #disk #whoami #hostname ip_address #time_utc date time"

View File

@ -110,6 +110,7 @@ exec --no-startup-id ~/.scripts/startup.sh
exec --no-startup-id llk
exec --no-startup-id emacs --daemon
exec --no-startup-id syncthing
exec --no-startup-id xrandr --output eDP1 --auto --left-of HDMI1 --output HDMI1 --off --output DP1 --off; feh --randomize --bg-fill /home/tuan/Pictures/Wallpaper/*
exec --no-startup-id feh --randomize --bg-fill $HOME/Pictures/Wallpaper/*
###############################################################################

View File

@ -1,123 +1,132 @@
/*******************************************************************************
* ROFI Color theme
* User: deadguy
* Copyright: deadguy
* Color-Theme: Materia
*******************************************************************************/
/*
* ROFI color theme
*
* Based on Base16 Material Color Scheme (https://github.com/ntpeters/base16-materialtheme-scheme)
*
* User: Tomaszal
* Copyright: Tomas Zaluckij
*/
* {
background-color: #263238;
text-color: #cfd8dc;
selbg: #03a9f4;
actbg: #37474f;
urgbg: #e91e63;
base00: #263238;
base01: #2E3C43;
base02: #314549;
base03: #546E7A;
base04: #B2CCD6;
base05: #EEFFFF;
base06: #EEFFFF;
base07: #FFFFFF;
base08: #F07178;
base09: #F78C6C;
base0A: #FFCB6B;
base0B: #C3E88D;
base0C: #89DDFF;
base0D: #82AAFF;
base0E: #C792EA;
base0F: #FF5370;
selected-normal-foreground: @selbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
/*base0D: #00BCD4;*/
selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
spacing: 0;
background-color: transparent;
selected-active-foreground: @selbg;
active-foreground: @text-color;
selected-active-background: @actbg;
active-background: @selbg;
margin: 0;
padding: 0;
font: "Roboto Mono 13";
}
#window {
location: north;
anchor: north;
height: 22%;
width: 59%;
orientation: vertical;
children: [mainbox];
window {
transparency: "real";
/*fullscreen: true;*/
background-color: #263238CC; /*base00 + CC (80% opacity)*/
}
#mainbox {
spacing: 0.8em;
children: [ entry,listview ];
mainbox {
children: [inputbar, message, mode-switcher, listview];
spacing: 30px;
/*margin: 20%;*/
padding: 30px 0;
border: 1px;
border-color: @base0D;
}
#button { padding: 5px 2px; }
#button selected {
background-color: @active-background;
text-color: @background-color;
inputbar {
padding: 0 30px;
children: [prompt, textbox-prompt-colon, entry, case-indicator];
}
#inputbar {
padding: 5px;
spacing: 5px;
prompt {
text-color: @base0D;
}
#listview {
spacing: 0.5em;
dynamic: false;
cycle: true;
textbox-prompt-colon {
expand: false;
str: ":";
margin: 0 1ch 0 0;
text-color: @base0D;
}
#element { padding: 10px; }
#entry {
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
entry {
text-color: @base07;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
case-indicator {
text-color: @base0F;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
mode-switcher, message {
border: 1px 0;
border-color: @base0D;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
button, textbox {
background-color: @base03;
text-color: @base07;
padding: 5px;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border: 0 5px solid 0 0;
border-color: @active-background;
button selected {
background-color: @base0D;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
listview {
scrollbar: true;
margin: 0 10px 0 30px;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
scrollbar {
background-color: @base03;
handle-color: @base0D;
handle-width: 10px;
border: 0 1px;
border-color: @base0D;
margin: 0 0 0 20px;
}
#element.alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
element {
padding: 5px;
highlight: bold underline;
}
#element.alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
element normal {
background-color: transparent;
}
#element.alternate.active {
background-color: @active-background;
text-color: @active-foreground;
element selected {
background-color: @base0D;
}
element alternate {
/*background-color: @base03;*/
}
element normal normal, element selected normal, element alternate normal {
text-color: @base07;
}
element normal urgent, element selected urgent, element alternate urgent {
text-color: @base0F;
}
element normal active, element selected active, element alternate active {
text-color: @base0B;
}

View File

@ -1,16 +1,17 @@
u:/home/tuan/Documents/Uni/Studium/2022 Sommersemester
u:/home/tuan/Documents/Uni/Studium/2022_Sommersemester
p:/home/tuan/Documents/Protokolle/FSE
o:/home/tuan/.dotfiles/config
m:/run/media
a:/home/tuan/Documents/Arbeit
m:/run/media/tuan
a:/home/tuan/.syncthing/Documents/Arbeit
l:/home/tuan/Local
c:/home/tuan/Documents/CTF
t:/home/tuan/Templates
w:/home/tuan/workspace_l
k:/home/tuan/Documents/Uni/Studium/2017&2018 Wintersemester/Rechnerstrukturen und Betriebssysteme [4,0]/Rechnerstrukturen
w:/home/tuan/workspace_l/home_lab/wiki
k:/home/tuan/.syncthing/Documents/Uni/Studium/2022_Sommersemester/Bachelorprojekt/Implement EFCF based on libAFL/git/foundry/evm/src/executor
q:/home/tuan/Quick Drop
':/home/tuan/.syncthing/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/08-rev-ecn-p4
':/home/tuan/.byobu
e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon
s:/home/tuan/Pictures/Screenshots
v:/home/tuan/.aya01/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/06-Server_Setup/ansible
f:/home/tuan/Documents/Finanzen/Unternehmen/Rechnungen
g:/home/tuan/workspace_l/home_lab

172
config/.ssh/#config# Normal file
View File

@ -0,0 +1,172 @@
# Services
Host github.com
Hostname github.com
Port 22
User git
IdentityFile /mnt/veracrypt1/git
Host gitlab.com
Hostname gitlab.com
Port 22
User git
IdentityFile /mnt/veracrypt1/git
Host picoCTF
HostName 2018shell4.picoctf.com
Port 22
User mos4
IdentityFile "/home/tuan/Documents/CTF/picoCTF/2018/30 - ssh-keyz/picoCTF"
Host git.uni-due.de
HostName git.uni-due.de
Port 22
User git
IdentityFile /mnt/veracrypt1/git
# Homeserver
Host laya01
HostName 192.168.2.100
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host aya01
HostName 10.0.0.100
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
Host git.aya01
HostName 10.0.0.100
Port 23231
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host mikrotik
HostName 192.168.2.1
Port 2200
User tudattr
IdentityFile /mnt/veracrypt1/tudattr_rsa
# Work
Host iperf-client
HostName 10.1.11.114
Port 22
User user
IdentityFile /mnt/veracrypt1/proxmox
Host iperf-server
HostName 10.1.11.112
Port 22
User user
IdentityFile /mnt/veracrypt1/proxmox
Host ncs-headnode
HostName 132.252.68.50
Port 2122
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
# ForwardX11 yes
Host ncs-headnode-user
HostName 132.252.68.50
Port 2122
User user
IdentityFile /mnt/veracrypt1/tudattr
ForwardX11 yes
Host ncs-node1
HostName 192.168.1.11
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-headnode
Host ncs-node2
HostName 192.168.1.7
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-node2-user
HostName 192.168.1.7
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-headnode
Host ncs-node4
HostName 192.168.1.9
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-node4-user
HostName 192.168.1.9
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-headnode
Host ncs2
HostName 192.168.1.13
Port 22
User user # tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-node5
HostName 192.168.1.15
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-wedge
Hostname 192.168.1.5
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
# ForwardX11 yes
ProxyJump ncs-headnode
Host ncs-local-server
HostName 192.168.1.3
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
Host ncs-local-server-user
HostName 192.168.1.3
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
Host ncs-local-server2
HostName 192.168.2.2
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
ProxyJump ncs-local-server
Host ncs-node6
Hostname 192.168.1.17
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
# ForwardX11 yes
ProxyJump ncs-headnode
Host ncs-node3
Hostname 192.168.1.19
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ForwardX11 yes
ProxyJump ncs-headnode

View File

@ -25,7 +25,7 @@ Host git.uni-due.de
# Homeserver
Host laya01
HostName 192.168.2.190
HostName 192.168.2.100
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
@ -35,13 +35,20 @@ Host aya01
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
Host git.aya01
HostName 10.0.0.100
Port 23231
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host mikrotik
HostName 192.168.2.1
Port 2200
User tudattr
IdentityFile /mnt/veracrypt1/tudattr_rsa
# Work
Host iperf-client
HostName 10.1.11.114
@ -55,31 +62,128 @@ Host iperf-server
User user
IdentityFile /mnt/veracrypt1/proxmox
Host ncs-server
Host ncs-headnode
HostName 132.252.68.50
Port 2122
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
Host ncs-headnode-user
HostName 132.252.68.50
Port 2122
User user
IdentityFile /mnt/veracrypt1/tudattr
ForwardX11 yes
Host ncs1
Host ncs-node1
HostName 192.168.1.11
Port 22
User tuan-dat.tran
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-server
ProxyJump ncs-headnode
Host ncs-node2
HostName 192.168.1.7
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
ForwardX11 yes
Host ncs-node2-user
HostName 192.168.1.7
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-headnode
Host ncs-node4
HostName 192.168.1.9
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-node4-user
HostName 192.168.1.9
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-headnode
Host ncs2
HostName 192.168.1.13
Port 22
User user # tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-headnode
Host ncs-node5
HostName 192.168.1.15
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-server
ProxyJump ncs-headnode
Host p4switch
Host ncs-wedge
Hostname 192.168.1.5
Port 22
User user
IdentityFile /mnt/veracrypt1/genesis
# ForwardX11 yes
ProxyJump ncs-headnode
Host ncs-local-server
HostName 192.168.1.3
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
Host ncs-local-server-user
HostName 192.168.1.3
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
Host ncs-local-server2
HostName 192.168.2.2
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
ProxyJump ncs-local-server
Host ncs-node6
Hostname 192.168.1.17
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
# ForwardX11 yes
ProxyJump ncs-headnode
Host ncs-node6-user
Hostname 192.168.1.17
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
# ForwardX11 yes
ProxyJump ncs-headnode
Host ncs-node3
Hostname 192.168.1.19
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ForwardX11 yes
ProxyJump ncs-server
ProxyJump ncs-headnode
Host ncs-node7
Hostname 192.168.1.18
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
ProxyJump ncs-headnode

View File

@ -8,3 +8,24 @@ git.uni-due.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyN
10.0.0.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA
10.0.0.100 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBWnqb2d9cI1MIoc17D8uo7EgRdKkhkoUUY2UtUS9FfF1h5bJwyPfRS+TeSXbBDwuuXfTf7lNG2xYQ0Tpb+0sM0=
[10.0.0.100]:23231 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKa1sCIExBwatQ1X85p/xFmCY5MBAUDjABLd3fQgdA5n
gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf
gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY=
192.168.2.190 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA
3.122.251.154 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINT9t9WZRy4YwTCix7d86Xo1TBpldmPalLIUyjsG4ex6
3.122.251.154 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNxSKje2LHAJLpcfpHRLNxDsZkVSraB4vyhZ4pZfi4jsidN09rqChdEB07ED+Z454YH6R52wRzCUq6NLCBiaW4Y=
192.168.1.15 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILRE15nvh55iqWo0jsJD+OJCujZO0NE9vsd3iDtcK8zm
192.168.1.9 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM2yHTza39ho0yO3X2P/UGGDo3qUb4m4tT+BKotV8qQR
10.168.68.113 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIFlFGQk/gTzz64QvorDZSzSyGWcN5tgep9VAZwB5usY
10.168.68.113 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLxPSE4D3NLhONmWd2WaZNyARkObFc+leUSXnI1CSIFnfFs2DRooJP9O6DH9y2hQLteaECKxZCV3BYcCUOIPjDc=
[192.168.2.100]:2200 ssh-rsa AAAAB3NzaC1yc2EAAAABAwAAAQEArbpijZwwmnWA5OuyNAJ7roKXmw+4WMWOdMyACi7pOT2NF4PkRYni1NJ3bDiivsiQEX+dFlpL29TyZTM6o/veqph3HtMY74eQcG3IsjjTrPKlQndoXWXh1shtI2Kv8/aljJQKsumiPx8p7K5rdNat2nk0glU0+Ypsw0BlkhMVzEyg7TYE334Zg22pRK6DPqLvM6B9GxJDENBAFgOkRz9AucQNT1kp1ADzr8Ej5ze+Bgli46mBDsBv3MKB8+u/vA/HZpXJPjLatO9RlvS/82ag0Nm+swUluvnviydNnUsifwTa5ci7f9SLqHVxaDULANIZDalxPkhXaVeJaz+4nKooPQ==
192.168.2.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA
192.168.1.17 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII+Ox4aKAB4XGtENGIJGtdn0zqImTVVGHJm+xxmt7eRs
192.168.1.19 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGwt/yA+xeJ8gCsMdCmsAY9yDR5FbtDq7jVyeaRWjCGv
192.168.1.7 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILr0Ih33Ltl8VTsNGTJuLsHCk9Pxga0nGb/L2nYKmGSU
192.168.1.7 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOraDeidKkInPbV9OCEuCtOOUqhAOtqWOlolhjyKpWIqqUhNxvho+glBKUFLA6PqEudd6O3aCGujVMntezVArpA=
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
192.168.1.3 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDm5UJ5LRF5qbHGAb4slJPjTIEARfJi2f8LOimHPxm8R
192.168.1.3 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKyLGdc8cjkf3x8mPwu3cW92VRhSLArzotNuwbdTeGku2QgIiphEBj86LM/A775YzETgyXstcRp3rJ5KapXxmNw=
192.168.1.18 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDm5UJ5LRF5qbHGAb4slJPjTIEARfJi2f8LOimHPxm8R

View File

@ -1,8 +0,0 @@
[132.252.68.50]:2122 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ2rX+RpL3RPfk17qflnZ2sf5QekOJfrMedGFah0lySj
192.168.1.5 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcw2SSLRyxIhZUPST8BrBmbgVY3IRtKZduLoZowhyTO
192.168.1.5 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLi0dyMvhMJ2N86sQOvvHxFAy8cSWbJtAbR/Ap0FDO8bDf4bYkGtsp44vs8Sd8GLE9HA+bRRmzM7gsgfkuBBbyA=
192.168.1.13 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHOOg2IlW9Cf1ERszajFPWfj8wAkmINsoz09Phwoio7M
192.168.1.11 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHHBArA6wdOGcvDR+ZaWwDPVMQQVFpRecjzNIBclzXSz
git.uni-due.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB/f8VVsjeXT82vK2GX1iU61w5JNLoQUQhOwCocA7Ox5
git.uni-due.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAgroRZpxHSEmGpyVxJqzQeLi2sCVNON/7zxx5Jd6tzVG8bLvq+AhWpAo1jAqdGGkOmlynH4GoTb9xrnyeg07Mk=
10.0.0.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA

View File

@ -3,367 +3,372 @@
#+OPTIONS: \n:t
* Preface
Before installing and using emacs, emacs should be run as a daemon.
This decreases the loading times of the editor enormously and enables you to return to your former emacs session at any time.
To do this you first need to make sure ~emace --daemon~ is run during the start up.
To access the daemonized emacs you can either run ~emacsclient -t~ to use it in the terminal or simply ~emacsclient~ if you want to use the GUI version.
Before installing and using emacs, emacs should be run as a daemon.
This decreases the loading times of the editor enormously and enables you to return to your former emacs session at any time.
To do this you first need to make sure ~emace --daemon~ is run during the start up.
To access the daemonized emacs you can either run ~emacsclient -t~ to use it in the terminal or simply ~emacsclient~ if you want to use the GUI version.
* Package installation
** Preperation
Initialize Emacs builtin package system and add the [[https://melpa.org][melpa]]-package repository.
Initialize Emacs builtin package system and add the [[https://melpa.org][melpa]]-package repository.
#+begin_src emacs-lisp
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)
#+end_src
#+begin_src emacs-lisp
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)
#+end_src
** Installation
*** [[https://github.com/jwiegley/use-package][use-package]]
=A use-package declaration for simplifying your .emacs=
=A use-package declaration for simplifying your .emacs=
#+begin_src emacs-lisp
(unless (package-installed-p 'use-package)
(package-install 'use-package))
#+begin_src emacs-lisp
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
#+end_src
(require 'use-package)
(setq use-package-always-ensure t)
#+end_src
*** [[https://github.com/rolandwalker/simpleclip][simpleclip]]
#+begin_src emacs-lisp
(use-package simpleclip
:config
(simpleclip-mode 1))
#+end_src
*** [[https://github.com/myrjola/diminish.el][diminish]]
=Diminished modes are minor modes with no modeline display=
=Diminished modes are minor modes with no modeline display=
#+begin_src emacs-lisp
(use-package diminish)
#+end_src
#+begin_src emacs-lisp
(use-package diminish)
#+end_src
*** [[https://github.com/emacscollective/no-littering][no-littering]]
=Help keeping ~/.emacs.d clean=
=Help keeping ~/.emacs.d clean=
#+begin_src emacs-lisp
(use-package no-littering)
#+end_src
#+begin_src emacs-lisp
(use-package no-littering)
#+end_src
*** [[https://github.com/emacs-evil/evil][evil]]/[[https://github.com/emacs-evil/evil-collection][evil-collection]]
=The extensible vi layer for Emacs.=
=A set of keybindings for evil-mode=
=The extensible vi layer for Emacs.=
=A set of keybindings for evil-mode=
#+begin_src emacs-lisp
(use-package evil
:init
(setq evil-want-keybinding nil)
:config
(evil-mode 1)
(setq evil-search-module 'evil-search))
#+begin_src emacs-lisp
(use-package evil
:init
(setq evil-want-keybinding nil)
:config
(evil-mode 1)
(setq evil-search-module 'evil-search)
(use-package evil-collection
:config
(evil-collection-init))
#+end_src
)
(use-package evil-collection
:config
(evil-collection-init))
#+end_src
*** [[https://github.com/abo-abo/swiper][Ivy]]/[[https://github.com/abo-abo/swiper][Counsil]]/[[https://github.com/abo-abo/swiper][Swiper]]
=Ivy - a generic completion frontend for Emacs=
=Swiper - isearch with an overview, and more. Oh, man!=
=Ivy - a generic completion frontend for Emacs=
=Swiper - isearch with an overview, and more. Oh, man!=
#+begin_src emacs-lisp
(use-package prescient)
#+begin_src emacs-lisp
(use-package prescient)
(use-package ivy-prescient
:config
(ivy-prescient-mode 1))
(use-package ivy-prescient
:config
(ivy-prescient-mode 1))
(use-package ivy)
(use-package ivy)
(use-package counsel
:diminish counsel-mode
:config
(counsel-mode 1))
(use-package counsel
:diminish counsel-mode
:config
(counsel-mode 1))
(use-package swiper
:bind (("C-s" . 'swiper)))
#+end_src
(use-package swiper
:bind ("C-s" . 'swiper))
#+end_src
*** [[https://magit.vc/][Magit]]
=A Git Porcelain inside Emacs.=
=A Git Porcelain inside Emacs.=
#+begin_src emacs-lisp
(use-package magit)
#+end_src
#+begin_src emacs-lisp
(use-package magit)
#+end_src
*** [[https://www.gnu.org/software/auctex/][AUCTeX]]
=an extensible package for writing and formatting TeX files.=
=an extensible package for writing and formatting TeX files.=
#+begin_src emacs-lisp
(use-package auctex
:defer t
:config
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq TeX-PDF-mode t)
(add-to-list 'TeX-view-program-list '(("Zathura" "zathura %o")))
(add-to-list 'TeX-view-program-selection '((output-pdf "Zathura")))
)
#+end_src
#+begin_src emacs-lisp
(use-package auctex
:defer t
:config
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq TeX-PDF-mode t)
(add-to-list 'TeX-view-program-list '(("Zathura" "zathura %o")))
(add-to-list 'TeX-view-program-selection '((output-pdf "Zathura")))
)
#+end_src
*** [[https://github.com/yjwen/org-reveal][ox-reveal]]
=Exports Org-mode contents to Reveal.js HTML presentation.=
=Exports Org-mode contents to Reveal.js HTML presentation.=
#+begin_src emacs-lisp
(use-package ox-reveal)
#+end_src
#+begin_src emacs-lisp
(use-package ox-reveal)
#+end_src
*** [[https://github.com/marsmining/ox-twbs][ox-twbs]]
=Export org-mode docs as HTML compatible with Twitter Bootstrap.=
=Export org-mode docs as HTML compatible with Twitter Bootstrap.=
#+begin_src emacs-lisp
(use-package ox-twbs)
#+end_src
#+begin_src emacs-lisp
(use-package ox-twbs)
#+end_src
*** [[https://github.com/sabof/org-bullets][org-bullets]]
=utf-8 bullets for org-mode=
=utf-8 bullets for org-mode=
#+begin_src emacs-lisp
(use-package org-bullets)
#+end_src
#+begin_src emacs-lisp
(use-package org-bullets)
#+end_src
*** [[https://elpa.gnu.org/packages/rainbow-mode.html][rainbow-mode]]
=Colorize color names in buffers=
=Colorize color names in buffers=
#+begin_src emacs-lisp
(use-package rainbow-mode)
#+end_src
#+begin_src emacs-lisp
(use-package rainbow-mode)
#+end_src
*** [[https://github.com/Fanael/rainbow-delimiters][rainbow-delimiters]]
=Emacs rainbow delimiters mode=
=Emacs rainbow delimiters mode=
#+begin_src emacs-lisp
(use-package rainbow-delimiters)
#+end_src
#+begin_src emacs-lisp
(use-package rainbow-delimiters)
#+end_src
*** [[https://github.com/joaotavora/yasnippet][yasnippet]]
=A template system for Emacs=
=A template system for Emacs=
#+begin_src emacs-lisp
(use-package yasnippet
:config
(setq yas-snippet-dirs '("~/.emacs.d/snippets/"))
(yas-global-mode 1))
#+end_src
#+begin_src emacs-lisp
(use-package yasnippet
:config
(setq yas-snippet-dirs '("~/.emacs.d/snippets/"))
(yas-global-mode 1))
#+end_src
*** [[https://github.com/company-mode/company-mode][company-mode]]
=Modular in-buffer completion framework for Emacs=
=Modular in-buffer completion framework for Emacs=
#+begin_src emacs-lisp
(use-package company
:config
(global-company-mode))
#+end_src
#+begin_src emacs-lisp
(use-package company
:config
(global-company-mode))
#+end_src
*** [[https://github.com/TommyX12/company-tabnine][tabnine-company]]
=A company-mode backend for TabNine, the all-language autocompleter: https://tabnine.com/=
#+begin_src emacs-lisp
(use-package company-tabnine
:ensure t)
;; Trigger completion immediately.
(setq company-idle-delay 0)
;; Number the candidates (use M-1, M-2 etc to select completions).
(setq company-show-numbers t)
(add-to-list 'company-backends #'company-tabnine)
#+end_src
*** [[https://github.com/flycheck/flycheck][flycheck]]
=On the fly syntax checking for GNU Emacs=
=On the fly syntax checking for GNU Emacs=
#+begin_src emacs-lisp
(use-package flycheck
:config
(global-flycheck-mode))
#+end_src
#+begin_src emacs-lisp
(use-package flycheck
:config
(global-flycheck-mode))
#+end_src
*** [[https://github.com/hniksic/emacs-htmlize][htmlize.el]]
=Convert buffer text and decorations to HTML.=
=Convert buffer text and decorations to HTML.=
#+begin_src emacs-lisp
(use-package htmlize)
#+end_src
*** [[https://github.com/k1LoW/emacs-ansible][ansible]]
=Ansible minor mode=
#+BEGIN_SRC emacs-lisp
(use-package ansible
:config
(ansible 1))
#+END_SRC
#+begin_src emacs-lisp
(use-package htmlize)
#+end_src
*** [[https://github.com/flycheck/flycheck-rust][flycheck-rust]]
=Better Rust/Cargo support for Flycheck=
#+BEGIN_SRC emacs-lisp
(use-package flycheck-rust)
#+END_SRC
=Better Rust/Cargo support for Flycheck=
#+BEGIN_SRC emacs-lisp
(use-package flycheck-rust)
#+END_SRC
*** [[https://github.com/rust-lang/rust-mode][rust-mode]]
=Emacs configuration for Rust=
#+BEGIN_SRC emacs-lisp
(use-package rust-mode)
#+END_SRC
=Emacs configuration for Rust=
#+BEGIN_SRC emacs-lisp
(use-package rust-mode)
#+END_SRC
*** [[https://github.com/kwrooijen/cargo.el][cargo.el]]
#+BEGIN_SRC emacs-lisp
(use-package cargo)
#+END_SRC
*** [[https://github.com/millejoh/emacs-ipython-notebook][ein]]
#+begin_src emacs-lisp
(use-package ein)
#+end_src
#+BEGIN_SRC emacs-lisp
(use-package cargo)
#+END_SRC
*** [[https://github.com/astahlman/ob-async][ob-async]]
#+begin_src emacs-lisp
(use-package ob-async)
#+end_src
*** [[https://github.com/rolandwalker/simpleclip][simpleclip]]
#+begin_src emacs-lisp
(use-package simpleclip
:config
(simpleclip-mode 1))
#+end_src
#+begin_src emacs-lisp
(use-package ob-async)
#+end_src
*** [[https://github.com/ledger/ledger-mode][ledger-mode]]
#+BEGIN_SRC emacs-lisp
(use-package ledger-mode
:mode ("\\.ledger\\'")
:config
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
(add-to-list 'load-path
(expand-file-name "/path/to/ledger/source/lisp/"))
(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))
)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(use-package ledger-mode
:mode ("\\.ledger\\'")
:config
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
(add-to-list 'load-path
(expand-file-name "/path/to/ledger/source/lisp/"))
(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))
)
#+END_SRC
*** [[https://github.com/yoshiki/yaml-mode][yaml-mode]]
#+BEGIN_SRC emacs-lisp
(use-package yaml-mode
:config
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
:bind-keymap
("\C-m" . (newline-and-indent))
)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(use-package yaml-mode
:config
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)))
#+END_SRC
*** [[https://github.com/ethereum/emacs-solidit][solidity-mode]]
#+begin_src emacs-lisp
(use-package solidity-mode)
#+end_src
* Appearance
This section is for appearance customization. Either via packages or manually.
This section is for appearance customization. Either via packages or manually.
** [[https://github.com/balajisivaraman/emacs-one-themes][emacs-one-themes]]
=A port of the Vim/Atom One Dark and Light themes to Emacs=
=A port of the Vim/Atom One Dark and Light themes to Emacs=
##+begin_src emacs-lisp
# (use-package one-themes
# :init
# (load-theme 'one-dark t))
##+end_src
##+begin_src emacs-lisp
# (use-package one-themes
# :init
# (load-theme 'one-dark t))
##+end_src
** Transparent Emacs (Commented out)
#+begin_comment
Makes the default color of the background of emacs the same as the terminals color.
This is kind of a janky solution, but it works.
#+begin_comment
Makes the default color of the background of emacs the same as the terminals color.
This is kind of a janky solution, but it works.
#+begin_src emacs-lisp
(add-hook 'window-setup-hook
'(lambda ()
(if not (display-graphic-p)
(set-face-background 'default "unspecified-bg"))))
#+end_src
#+end_comment
#+begin_src emacs-lisp
(add-hook 'window-setup-hook
'(lambda ()
(if not (display-graphic-p)
(set-face-background 'default "unspecified-bg"))))
#+end_src
#+end_comment
** Menubar
Remove the menu-bar at the top of the screen for better immersion.
Remove the menu-bar at the top of the screen for better immersion.
#+begin_src emacs-lisp
(menu-bar-mode -1)
#+end_src
#+begin_src emacs-lisp
(menu-bar-mode -1)
#+end_src
* Emacs Configuration
** Symbolic Links
Follow symlinks without asking for confirmation.
Follow symlinks without asking for confirmation.
#+begin_src emacs-lisp
(setq vc-follow-symlinks t)
#+end_src
#+begin_src emacs-lisp
(setq vc-follow-symlinks t)
#+end_src
** Tab Behavior (spaces > tabs)
#+BEGIN_SRC emacs-lisp
(setq-default indent-tabs-mode nil)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(setq-default indent-tabs-mode nil)
#+END_SRC
* Mode Configuration
** Org-mode
*** Enable org-bullets and hide leading stars.
#+begin_src emacs-lisp
(add-hook 'org-mode-hook
(lambda ()
(org-bullets-mode 1)
(setq org-pretty-entities t)
(setq org-src-fontify-natively t)))
#+end_src
#+begin_src emacs-lisp
(add-hook 'org-mode-hook
(lambda ()
(org-bullets-mode 1)
(setq org-pretty-entities f)
(setq org-src-fontify-natively 1)))
#+end_src
*** Enable utf8x on latex output
#+begin_src emacs-lisp
(setq org-latex-inputenc-alist '(("utf8" . "utf8x")))
#+end_src
#+begin_src emacs-lisp
(setq org-latex-inputenc-alist '(("utf8" . "utf8x")))
#+end_src
*** minted options for pdfexport
#+begin_src emacs-lisp
(setq org-latex-listings 'minted
org-latex-packages-alist '(("" "minted"))
org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
#+end_src
#+begin_src emacs-lisp
(setq org-latex-minted-options '(("breaklines" "true")
("breakanywhere" "true")))
#+end_src
#+begin_src emacs-lisp
(setq org-latex-listings 'minted
org-latex-packages-alist '(("" "minted"))
org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
#+end_src
#+begin_src emacs-lisp
(setq org-latex-minted-options '(("breaklines" "true")
("breakanywhere" "true")))
#+end_src
*** Keybindings
#+begin_src emacs-lisp
(define-key org-mode-map (kbd "C-c ,") 'org-insert-structure-template)
#+end_src
#+begin_src emacs-lisp
(define-key org-mode-map (kbd "C-c ,") 'org-insert-structure-template)
(define-key evil-normal-state-map (kbd "Y") 'simpleclip-copy)
#+end_src
Enables specific languages for org-babel, so those languages can be used and compiled in code blocks and disable the compilation confirmation. The code afterwords enables proper indentation inside those source blocks.
#+begin_src emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(C . t)
(makefile . t)
(shell . t)
(latex . t)
(python . t)))
Enables specific languages for org-babel, so those languages can be used and compiled in code blocks and disable the compilation confirmation. The code afterwords enables proper indentation inside those source blocks.
#+begin_src emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(C . t)
(makefile . t)
(shell . t)
(latex . t)
(python . t)))
(setq org-confirm-babel-evaluate nil)
(setq org-src-tab-acts-natively t)
#+end_src
(setq org-confirm-babel-evaluate nil)
(setq org-src-tab-acts-natively t)
#+end_src
** C-mode
#+begin_src emacs-lisp
(add-hook 'c-mode-hook
(lambda ()
(display-line-numbers-mode 1)))
#+end_src
#+begin_src emacs-lisp
(add-hook 'c-mode-hook
(lambda ()
(display-line-numbers-mode 1)))
#+end_src
** C++-mode
#+begin_src emacs-lisp
(add-hook 'c++-mode-hook
(lambda ()
(display-line-numbers-mode 1)))
#+end_src
#+begin_src emacs-lisp
(add-hook 'c++-mode-hook
(lambda ()
(display-line-numbers-mode 1)))
#+end_src
** rust-mode
cargo.el
#+begin_src emacs-lisp
(add-hook 'rust-mode-hook 'cargo-minor-mode)
#+end_src
cargo.el
#+begin_src emacs-lisp
(add-hook 'rust-mode-hook 'cargo-minor-mode)
#+end_src
flycheck-rust
#+begin_src emacs-lisp
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
#+end_src
flycheck-rust
#+begin_src emacs-lisp
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
#+end_src
** p4-mode
#+begin_src emacs-lisp
(add-to-list 'auto-mode-alist '("\\.p4\\'" . c-mode))
#+end_src
#+begin_src emacs-lisp
(add-to-list 'auto-mode-alist '("\\.p4\\'" . c-mode))
#+end_src

View File

@ -29,6 +29,8 @@ alias picpaste="xclip -selection clipboard -t image/png -o"
alias eledger="e ~/Documents/Finanzen/Ledger/MyBudget.ledger"
alias sshconfig="e ~/.ssh/config"
alias econfig="e ~/.emacs.d/config.org"
alias wttr="curl wttr.in/Essen"
alias tvres="xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1"
# Theme
ZSH_THEME="agnoster"
@ -44,3 +46,4 @@ randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
# Source
source $ZSH/oh-my-zsh.sh