Added lazyvim

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2024-03-07 10:26:49 +01:00
parent 9ceae68f52
commit 65c923108a
26 changed files with 866 additions and 99 deletions

View File

@@ -1,5 +1,5 @@
[font]
size = 7
size = 12
[font.bold]
style = "Bold"

View File

@@ -48,7 +48,7 @@
#
# For alsa 'source' will be the capture device.
# For fifo 'source' will be the path to fifo-file.
; method = pulse
method = pulse
; source = auto
; method = alsa

View File

@@ -0,0 +1,79 @@
#version 330
in vec2 fragCoord;
out vec4 fragColor;
// bar values. defaults to left channels first (low to high), then right (high to low).
uniform float bars[512];
uniform int bars_count; // number of bars (left + right) (configurable)
uniform int bar_width; // bar width (configurable), not used here
uniform int bar_spacing; // space bewteen bars (configurable)
uniform vec3 u_resolution; // window resolution
//colors, configurable in cava config file (r,g,b) (0.0 - 1.0)
uniform vec3 bg_color; // background color
uniform vec3 fg_color; // foreground color
uniform int gradient_count;
uniform vec3 gradient_colors[8]; // gradient colors
vec3 normalize_C(float y,vec3 col_1, vec3 col_2, float y_min, float y_max)
{
//create color based on fraction of this color and next color
float yr = (y - y_min) / (y_max - y_min);
return col_1 * (1.0 - yr) + col_2 * yr;
}
void main()
{
// find which bar to use based on where we are on the x axis
float x = u_resolution.x * fragCoord.x;
int bar = int(bars_count * fragCoord.x);
//calculate a bar size
float bar_size = u_resolution.x / bars_count;
//the y coordinate and bar values are the same
float y = bars[bar];
// make sure there is a thin line at bottom
if (y * u_resolution.y < 1.0)
{
y = 1.0 / u_resolution.y;
}
//draw the bar up to current height
if (y > fragCoord.y)
{
//make some space between bars basen on settings
if (x > (bar + 1) * (bar_size) - bar_spacing)
{
fragColor = vec4(bg_color,1.0);
}
else
{
if (gradient_count == 0)
{
fragColor = vec4(fg_color,1.0);
}
else
{
//find which color in the configured gradient we are at
int color = int((gradient_count - 1) * fragCoord.y);
//find where on y this and next color is supposed to be
float y_min = color / (gradient_count - 1.0);
float y_max = (color + 1.0) / (gradient_count - 1.0);
//make color
fragColor = vec4(normalize_C(fragCoord.y, gradient_colors[color], gradient_colors[color + 1], y_min, y_max), 1.0);
}
}
}
else
{
fragColor = vec4(bg_color,1.0);
}
}

View File

@@ -0,0 +1,34 @@
#version 330
in vec2 fragCoord;
out vec4 fragColor;
// bar values. defaults to left channels first (low to high), then right (high to low).
uniform float bars[512];
uniform int bars_count; // number of bars (left + right) (configurable)
uniform vec3 u_resolution; // window resolution, not used here
//colors, configurable in cava config file
uniform vec3 bg_color; // background color(r,g,b) (0.0 - 1.0), not used here
uniform vec3 fg_color; // foreground color, not used here
void main()
{
// find which bar to use based on where we are on the x axis
int bar = int(bars_count * fragCoord.x);
float bar_y = 1.0 - abs((fragCoord.y - 0.5)) * 2.0;
float y = (bars[bar]) * bar_y;
float bar_x = (fragCoord.x - float(bar) / float(bars_count)) * bars_count;
float bar_r = 1.0 - abs((bar_x - 0.5)) * 2;
bar_r = bar_r * bar_r * 2;
// set color
fragColor.r = fg_color.x * y * bar_r;
fragColor.g = fg_color.y * y * bar_r;
fragColor.b = fg_color.z * y * bar_r;
}

View File

@@ -0,0 +1,14 @@
#version 330
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vertexPosition_modelspace;
// Output data ; will be interpolated for each fragment.
out vec2 fragCoord;
void main()
{
gl_Position = vec4(vertexPosition_modelspace,1);
fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0;
}

View File

@@ -22,6 +22,7 @@ focus_follows_mouse no
# Configure
# border style <normal|1pixel|pixel xx|none|pixel>
hide_edge_borders none
default_border none
################################################################################################
###################################### Workspace Settings ######################################
@@ -140,6 +141,7 @@ bindsym $mod+m exec thunderbird
bindsym Control+Print exec --no-startup-id ~/.scripts/screenshot.sh screen
# Window
bindsym Mod1+Sys_Req --release exec --no-startup-id ~/.scripts/screenshot.sh window
# Area

View File

@@ -1,27 +1,17 @@
# Services
Host github.com
Hostname github.com
Host github.com gitlab.com git.uni-due.de
Port 22
User git
IdentityFile /mnt/veracrypt1/git
Host github.com
Hostname github.com
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
Host git.tudattr.dev
Hostname 192.168.20.12
@@ -36,31 +26,49 @@ Host madrigal
User tudattr
IdentityFile /mnt/veracrypt1/mikrotik_rsa
Host aya01
Host inko inko.mii
HostName 192.168.20.14
Host naruto naruto.mii
HostName 192.168.20.13
Host pi pi.mii
HostName 192.168.20.11
Host aya01 aya01.mii
HostName 192.168.20.12
Host mii
HostName tudattr.dev
Host inko.mii pi.mii aya01.mii naruto.mii
ProxyJump mii
Host mii pi aya01 inko naruto inko.mii pi.mii aya01.mii naruto.mii
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host git.aya01
HostName 192.168.20.12
Port 23231
# Work
Host mini
HostName 100.76.45.158
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host pi
HostName 192.168.20.11
Port 22
User tudattr
IdentityFile /mnt/veracrypt1/genesis
Host tail-pi
HostName 100.93.79.94
Port 22
User tuant
IdentityFile /mnt/veracrypt1/work/minis
# Work
Host ncs-head
HostName 132.252.68.50
Port 2122
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
ProxyJump tail-pi
Host ncs-head-user
HostName 132.252.68.50
@@ -71,62 +79,44 @@ Host ncs-head-user
Host ncs2
HostName 192.168.1.13
Port 22
User tuan-dat.tran
Host ncs2 ncs2-user ncs-node1 ncs-node2 ncs-node2-user ncs-node3 ncs-node4 ncs-node5 ncs-node6 ncs-node7 ncs-wedge
Port 22
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-head
Host ncs2-user
HostName 192.168.1.13
Port 22
User user # tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-head
Host ncs-node1
HostName 192.168.1.11
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-head
Host ncs-node2
HostName 192.168.1.7
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-head
ForwardX11 yes
Host ncs-node2-user
HostName 192.168.1.7
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ProxyJump ncs-head
Host ncs-node3
Hostname 192.168.1.19
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
ProxyJump ncs-head
Host ncs-node3-user
Hostname 192.168.1.19
Port 22
User user
IdentityFile /mnt/veracrypt1/tudattr
ForwardX11 yes
ProxyJump ncs-head
Host ncs-node4
HostName 192.168.1.9
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-head
Host ncs-node4-user
HostName 192.168.1.9
@@ -137,18 +127,11 @@ Host ncs-node4-user
Host ncs-node5
HostName 192.168.1.15
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ProxyJump ncs-head
Host ncs-node6
Hostname 192.168.1.17
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
# ForwardX11 yes
ProxyJump ncs-head
Host ncs-node6-user
Hostname 192.168.1.17
@@ -160,47 +143,12 @@ Host ncs-node6-user
Host ncs-node7
Hostname 192.168.1.18
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
ForwardX11 yes
ProxyJump ncs-head
Host ncs-wedge
Hostname 192.168.1.5
Port 22
User user
IdentityFile /mnt/veracrypt1/genesis
# ForwardX11 yes
ProxyJump ncs-head
Host ncs-local-server
HostName 192.168.1.1
Port 22
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/tudattr
StrictHostKeyChecking no
Host ncs-local-server-user
HostName 192.168.1.1
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 phone
Hostname 192.168.30.245
Port 2222
User tuan-dat.tran
IdentityFile /mnt/veracrypt1/genesis
Host ncs-gpu
Hostname 192.168.1.21
@@ -210,15 +158,28 @@ Host ncs-gpu
ForwardX11 yes
ProxyJump ncs-head
Host ncs-aws-iperf3
Hostname 18.185.5.191
Port 22
User ec2-user
IdentityFile /mnt/veracrypt1/aws_ncs.pem
Host ami
Hostname 3.72.156.214
Port 22
User ubuntu
IdentityFile /mnt/veracrypt1/work/aws-rizk.pem
## 5g IANA
Host 5g-iana-mec
Hostname 192.168.100.1
Port 22
User udue
IdentityFile /mnt/veracrypt1/genesis
Host uulm-obu0 uulm-obu1
Port 22
User user
ProxyJump 5g-iana-mec
IdentityFile /mnt/veracrypt1/genesis
Host uulm-obu0
Hostname 192.168.201.7
Host uulm-obu1
Hostname 192.168.201.11