1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +00:00

Compare commits

...

5 commits

Author SHA1 Message Date
5864f43ea2 Replace exa with lsd 2023-08-28 21:37:15 +02:00
91888a1cdb Update Zellij layouts 2023-08-28 21:12:41 +02:00
5d04442236 Integrate the session manager in Zellij 2023-08-28 21:12:13 +02:00
aa371f7856 Remove theme.ron 2023-08-28 21:11:44 +02:00
188e12796e Update dprint plugins 2023-08-28 21:10:47 +02:00
15 changed files with 89 additions and 75 deletions

View file

@ -7,15 +7,15 @@
}, },
"toml": { "toml": {
}, },
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml}"], "includes": ["**/*.{ts,tsx,js,jsx,json,md,toml}"],
"excludes": [ "excludes": [
"**/node_modules", "**/node_modules",
"**/*-lock.json" "**/*-lock.json"
], ],
"plugins": [ "plugins": [
"https://plugins.dprint.dev/typescript-0.85.1.wasm", "https://plugins.dprint.dev/typescript-0.86.2.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm", "https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.15.3.wasm", "https://plugins.dprint.dev/markdown-0.16.0.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm" "https://plugins.dprint.dev/toml-0.5.4.wasm"
] ]
} }

View file

@ -34,7 +34,7 @@ if status is-interactive
# Aliases # Aliases
alias cd "z" alias cd "z"
alias ls "exa --icons --group-directories-first --time-style long-iso --no-filesize --git" alias ls "lsd"
alias ll "ls -l" alias ll "ls -l"
alias cat "bat" alias cat "bat"
alias gu "gitui" alias gu "gitui"

View file

@ -1,23 +0,0 @@
(
selected_tab: Reset,
command_fg: White,
selection_bg: Blue,
selection_fg: White,
cmdbar_bg: Blue,
cmdbar_extra_lines_bg: Blue,
disabled_fg: DarkGray,
diff_line_add: Green,
diff_line_delete: Red,
diff_file_added: LightGreen,
diff_file_removed: LightRed,
diff_file_moved: LightMagenta,
diff_file_modified: Yellow,
commit_hash: Magenta,
commit_time: LightCyan,
commit_author: Green,
danger_fg: Red,
push_gauge_bg: Blue,
push_gauge_fg: Reset,
tag_fg: LightMagenta,
branch_fg: LightYellow,
)

22
.config/lsd/config.yaml Normal file
View file

@ -0,0 +1,22 @@
# This specifies the columns and their order when using the long and the tree
# layout.
# Possible values: permission, user, group, context, size, date, name, inode, links, git
blocks:
- permission
- user
- group
- size
- date
- git
- name
# This specifies the date format for the date column. The freeform format
# accepts a strftime like string.
# Possible values: date, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
date: +%d-%m-%y %H:%M:%S
sorting:
# Whether to group directories together and where.
# Possible values: first, last, none
dir-grouping: first

View file

@ -15,6 +15,7 @@ keybinds clear-defaults=true {
bind "Alt r" { SwitchToMode "resize"; } bind "Alt r" { SwitchToMode "resize"; }
bind "Alt s" { SwitchToMode "scroll"; } bind "Alt s" { SwitchToMode "scroll"; }
bind "Alt m" { SwitchToMode "move"; } bind "Alt m" { SwitchToMode "move"; }
bind "Alt d" { SwitchToMode "session"; }
bind "Alt n" { NewPane; } bind "Alt n" { NewPane; }
bind "Alt k" { FocusNextPane; } bind "Alt k" { FocusNextPane; }
bind "Alt j" { FocusPreviousPane; } bind "Alt j" { FocusPreviousPane; }
@ -66,4 +67,14 @@ keybinds clear-defaults=true {
bind "l" { PageScrollDown; } bind "l" { PageScrollDown; }
bind "h" { PageScrollUp; } bind "h" { PageScrollUp; }
} }
session {
bind "d" { Detach; }
bind "m" {
LaunchOrFocusPlugin "zellij:session-manager" {
floating true
move_to_focused_tab true
};
SwitchToMode "Normal";
}
}
} }

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/hosted/advlabdb" cwd "/home/mo8it/code/hosted/advlabdb"
tab name="git" { tab name="git" {
pane { pane {

View file

@ -6,13 +6,13 @@ layout {
} }
} }
cwd "/home/mo/code/collective-score" cwd "/home/mo8it/code/hosted/collective-score"
tab name="hx" split_direction="vertical" focus=true { tab name="hx" split_direction="vertical" focus=true {
pane { pane {
focus true focus true
cwd "crates"
command "fish" command "fish"
args "-C" "hx"
close_on_exit true close_on_exit true
} }
pane { pane {
@ -26,5 +26,11 @@ layout {
close_on_exit true close_on_exit true
} }
} }
tab name="bg" split_direction="vertical"{
pane {
command "podman"
args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/cs_server_db:/var/lib/postgresql/data:Z" "--env-file" "crates/server/.env" "docker.io/library/postgres:15-alpine"
}
}
} }

View file

@ -0,0 +1,31 @@
layout {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
}
cwd "/home/mo8it/code/hosted/dev_tools"
tab name="hx" split_direction="vertical" focus=true {
pane {
focus true
cwd "src"
command "fish"
args "-C" "hx ."
close_on_exit true
}
}
tab name="git" split_direction="vertical" {
pane {
command "gitui"
}
}
tab name="mdbook" split_direction="vertical" {
pane {
command "mdbook"
args "serve"
}
}
}

View file

@ -1,33 +0,0 @@
layout {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
}
cwd "/home/mo/code/hosted/how_to_linux"
tab name="git" {
pane {
command "fish"
args "-c" "gitui"
close_on_exit true
}
}
tab name="hx" focus=true {
pane {
cwd "src"
command "fish"
args "-c" "hx"
close_on_exit true
}
}
tab name="mdbook" {
pane {
command "fish"
args "-c" "mdbook serve"
close_on_exit true
}
}
}

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/info_monitor" cwd "/home/mo8it/code/info_monitor"
tab name="hx" split_direction="vertical" focus=true { tab name="hx" split_direction="vertical" focus=true {
pane { pane {
@ -29,7 +29,7 @@ layout {
tab name="bg" split_direction="vertical"{ tab name="bg" split_direction="vertical"{
pane { pane {
command "podman" command "podman"
args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/info_monitor_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/info_monitor_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine"
} }
pane { pane {
command "npx" command "npx"

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/hosted/oxiform" cwd "/home/mo8it/code/hosted/oxiform"
tab name="hx" split_direction="vertical" focus=true { tab name="hx" split_direction="vertical" focus=true {
pane { pane {
@ -29,7 +29,7 @@ layout {
tab name="bg" split_direction="vertical"{ tab name="bg" split_direction="vertical"{
pane { pane {
command "podman" command "podman"
args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/oxiform_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/oxiform_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine"
} }
pane { pane {
command "npx" command "npx"

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/hosted/oxitraffic" cwd "/home/mo8it/code/hosted/oxitraffic"
tab name="hx" split_direction="vertical" focus=true { tab name="hx" split_direction="vertical" focus=true {
pane { pane {
@ -29,7 +29,7 @@ layout {
tab name="bg" split_direction="vertical"{ tab name="bg" split_direction="vertical"{
pane { pane {
command "podman" command "podman"
args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/oxitraffic_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/oxitraffic_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine"
} }
pane { pane {
command "just" command "just"

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/pgp" cwd "/home/mo8it/code/pgp"
tab name="jupyterlab" focus=true { tab name="jupyterlab" focus=true {
pane { pane {

View file

@ -25,20 +25,20 @@ layout {
args "-c" "rustup update stable && cargo install-update -a" args "-c" "rustup update stable && cargo install-update -a"
} }
pane { pane {
cwd "/home/mo/code/compile/helix" cwd "/home/mo8it/code/compile/helix"
command "fish" command "fish"
args "-c" "git pull -r && cargo +stable install --path helix-term" args "-c" "git pull -r origin master && cargo +stable install --path helix-term --locked"
} }
} }
pane split_direction="vertical" { pane split_direction="vertical" {
pane { pane {
cwd "/home/mo/servers/ansible" cwd "/home/mo8it/servers/ansible"
command "ansible-playbook" command "ansible-playbook"
args "playbooks/update_dnf.yaml" args "playbooks/update_dnf.yaml"
} }
pane { pane {
cwd "/home/mo/servers/ansible" cwd "/home/mo8it/servers/ansible"
command "ansible-playbook" command "ansible-playbook"
args "playbooks/update_apt.yaml" args "playbooks/update_apt.yaml"
} }

View file

@ -6,7 +6,7 @@ layout {
} }
} }
cwd "/home/mo/code/hosted/mo8it.com" cwd "/home/mo8it/code/hosted/mo8it.com"
tab name="hx" split_direction="vertical" focus=true { tab name="hx" split_direction="vertical" focus=true {
pane { pane {