feat: add some of the configs from the old dotfiles

This commit is contained in:
2026-06-13 14:19:17 +02:00
parent 811ed1e9c4
commit 561edb6836
15 changed files with 3249 additions and 0 deletions
+137
View File
@@ -0,0 +1,137 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"padding": {
"top": 2,
"left": 1,
"right": 2
}
},
"display": {
"separator": " "
},
"modules": [
// Title
{
"type": "title",
"format": "{#1}╭───────────── {#}{user-name-colored}"
},
// System Information
{
"type": "custom",
"format": "{#1}│ {#}System Information"
},
{
"type": "os",
"key": "{#separator}│ {#keys}󰍹 OS"
},
{
"type": "kernel",
"key": "{#separator}│ {#keys}󰒋 Kernel"
},
{
"type": "uptime",
"key": "{#separator}│ {#keys}󰅐 Uptime"
},
{
"type": "packages",
"key": "{#separator}│ {#keys}󰏖 Packages",
"format": "{all}"
},
{
"type": "custom",
"format": "{#1}│"
},
// Desktop Environment
{
"type": "custom",
"format": "{#1}│ {#}Desktop Environment"
},
{
"type": "de",
"key": "{#separator}│ {#keys}󰧨 DE"
},
{
"type": "wm",
"key": "{#separator}│ {#keys}󱂬 WM"
},
{
"type": "wmtheme",
"key": "{#separator}│ {#keys}󰉼 Theme"
},
{
"type": "display",
"key": "{#separator}│ {#keys}󰹑 Resolution"
},
{
"type": "shell",
"key": "{#separator}│ {#keys}󰞷 Shell"
},
{
"type": "terminalfont",
"key": "{#separator}│ {#keys}󰛖 Font"
},
{
"type": "custom",
"format": "{#1}│"
},
// Hardware Information
{
"type": "custom",
"format": "{#1}│ {#}Hardware Information"
},
{
"type": "cpu",
"key": "{#separator}│ {#keys}󰻠 CPU"
},
{
"type": "gpu",
"key": "{#separator}│ {#keys}󰢮 GPU"
},
{
"type": "memory",
"key": "{#separator}│ {#keys}󰍛 Memory"
},
{
"type": "disk",
"key": "{#separator}│ {#keys}󰋊 Disk (/)",
"folders": "/"
},
{
"type": "custom",
"format": "{#1}│"
},
// Network
{
"type": "custom",
"format": "{#1}│ {#}Network"
},
{
"type": "wifi",
"key": "{#separator}│ {#keys}⮃ WiFi"
},
{
"type": "dns",
"key": "{#separator}│ {#keys}🖧 DNS"
},
{
"type": "localip",
"key": "{#separator}│ {#keys}⍰ IP"
},
{
"type": "custom",
"format": "{#1}│"
},
// Colors
{
"type": "colors",
"key": "{#separator}│",
"symbol": "circle"
},
// Footer
{
"type": "custom",
"format": "{#1}╰───────────────────────────────╯"
}
]
}
+135
View File
@@ -0,0 +1,135 @@
alias ls='ls -l --color'
alias ll='ls -la --color'
alias v='nvim'
alias i='vimiv'
alias c='clear'
alias cv='clear && nvim'
alias zs='zathura-sandbox'
alias z='zathura'
alias bt='bashtop'
alias vicfg='nvim ~/projects/nvim/'
alias fm='thunar .'
alias gl='git ls-files --others --exclude-standard'
alias gm='git ls-files -m'
alias gpu='git push'
alias gp='git pull'
alias gpr='git pull --rebase'
alias gc='git commit -a -m'
alias ga='git add ./*'
alias cfh='nvim ~/projects/dotfiles/config/hypr/'
alias cfn='nvim ~/projects/nvim/'
alias cff='nvim ~/projects/dotfiles/config/fish/'
alias cfa='nvim ~/projects/dotfiles/config/astal/'
alias cf='nvim ~/projects/dotfiles/'
alias g='lazygit'
alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui'
alias ai='ollama serve'
alias ff='fastfetch'
alias p='nvimpager -p'
alias latexdocs='zathura ~/projects/latex/docs/docs.pdf &>> /dev/null & disown'
alias gccerr='gcc -Wall -Wextra -Wpedantic -Werror -Wmissing-prototypes -std=c99'
alias linecount='cloc --vcs git .'
alias flutter='fvm flutter'
# Add scripts in ~/projects/dotfiles/scripts/ to path
fish_add_path -P ~/projects/dotfiles/scripts/
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
zoxide init --cmd j fish | source
if status is-interactive
function fish_prompt
# Cache exit status
set -l last_status $status
# Set color for variables in prompt
set -l normal (set_color normal)
set -l white (set_color FFFFFF)
set -l turquoise (set_color 5fdfff)
set -l orange (set_color df5f00)
set -l hotpink (set_color df005f)
set -l blue (set_color blue)
set -l limegreen (set_color 87ff00)
set -l purple (set_color af5fff)
set -l red (set_color e70e0e)
# Configure __fish_git_prompt
set -g __fish_git_prompt_char_stateseparator ' '
set -g __fish_git_prompt_color 5fdfff
set -g __fish_git_prompt_color_flags df5f00
set -g __fish_git_prompt_color_prefix white
set -g __fish_git_prompt_color_suffix white
set -g __fish_git_prompt_showdirtystate true
set -g __fish_git_prompt_showuntrackedfiles true
set -g __fish_git_prompt_showstashstate true
set -g __fish_git_prompt_show_informative_status true
# Only calculate once, to save a few CPU cycles when displaying the prompt
if not set -q __fish_prompt_hostname
# set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
set -g __fish_prompt_hostname $orange(prompt_hostname)(set_color normal)
end
if not set -q __fish_prompt_char
if [ (id -u) -eq 0 ]
set -g __fish_prompt_char (set_color red)'λ'(set_color normal)
else
set -g __fish_prompt_char 'λ'
end
end
# change `at` to `ssh` when an interactive ssh session is present
if [ "$SSH_TTY" = "" ]
set -g location at
# set -g __fish_prompt_hostname (set_color orange)(hostname|cut -d . -f 1)
else # connected via ssh
if [ "$TERM" = "xterm-256color-italic" -o "$TERM" = "tmux-256color" ]
set -g location (echo -e "\e[3mssh\e[23m")
# set -g ssh_hostname (echo -e $blue$__fish_prompt_hostname)
set -g __fish_prompt_hostname $blue(prompt_hostname)(set_color normal)
else
set -g location ssh
# set -g ssh_hostname (echo -e $blue$__fish_prompt_hostname)
set -g __fish_prompt_hostname $blue(prompt_hostname)(set_color normal)
end
end
if [ (id -u) -eq 0 ]
# top line > Superuser
echo -n $red'╭─'$hotpink$USER $white$location $__fish_prompt_hostname$white' in '$limegreen(pwd)$turquoise
__fish_git_prompt " (%s)"
echo
# bottom line > Superuser
echo -n $red'╰'
echo -n $red'─'$__fish_prompt_char $normal
else # top line > non superuser's
echo -n $white'╭─'$hotpink$USER $white$location $__fish_prompt_hostname$white' in '$limegreen(pwd)$turquoise
__fish_git_prompt " (%s)"
echo
# bottom line > non superuser's
echo -n $white'╰'
echo -n $white'─'$__fish_prompt_char $normal
end
# NOTE: disable `VIRTUAL_ENV_DISABLE_PROMPT` in `config.fish`
# see: https://virtualenv.pypa.io/en/latest/reference/#envvar-VIRTUAL_ENV_DISABLE_PROMPT
# support for virtual env name
if set -q VIRTUAL_ENV
echo -n "($turquoise"(basename "$VIRTUAL_ENV")"$white)"
end
end
end
set -g fish_greeting ""
+37
View File
@@ -0,0 +1,37 @@
# This file was created by fish when upgrading to version 4.3, to migrate
# theme variables from universal to global scope.
# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
# To customize your theme, delete this file and see
# help interactive#syntax-highlighting
# or
# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
# for appropriate commands to add to ~/.config/fish/config.fish instead.
# See also the release notes for fish 4.3.0 (run `help relnotes`).
set --global fish_color_autosuggestion 555 brblack
set --global fish_color_cancel -r
set --global fish_color_command blue
set --global fish_color_comment red
set --global fish_color_cwd green
set --global fish_color_cwd_root red
set --global fish_color_end green
set --global fish_color_error brred
set --global fish_color_escape brcyan
set --global fish_color_history_current --bold
set --global fish_color_host normal
set --global fish_color_host_remote yellow
set --global fish_color_normal normal
set --global fish_color_operator brcyan
set --global fish_color_param cyan
set --global fish_color_quote yellow
set --global fish_color_redirection cyan --bold
set --global fish_color_search_match white --background=brblack
set --global fish_color_selection white --bold --background=brblack
set --global fish_color_status red
set --global fish_color_user brgreen
set --global fish_color_valid_path --underline
set --global fish_pager_color_completion normal
set --global fish_pager_color_description B3A06D yellow -i
set --global fish_pager_color_prefix normal --bold --underline
set --global fish_pager_color_progress brwhite --background=cyan
set --global fish_pager_color_selected_background -r
+51
View File
@@ -0,0 +1,51 @@
# vim:ft=kitty
## name: Adwaita darker
## license: MIT
## author: Emil Löfquist (https://github.com/ewal)
## upstream: https://github.com/ewal/kitty-adwaita/blob/main/adwaita_darker.conf
## blurb: Adwaita darker - based on https://github.com/Mofiqul/adwaita.nvim
background #000000
foreground #deddda
selection_background #1c1c1c
selection_foreground #c0bfbc
url_color #1a5fb4
wayland_titlebar_color system
macos_titlebar_color system
cursor #deddda
cursor_text_color #000000
active_border_color #1e1e1e
inactive_border_color #282828
bell_border_color #ed333b
visual_bell_color none
active_tab_background #101010
active_tab_foreground #fcfcfc
inactive_tab_background #1c1c1c
inactive_tab_foreground #b0afac
tab_bar_background none
tab_bar_margin_color none
color0 #000000
color1 #ed333b
color2 #57e389
color3 #ff7800
color4 #62a0ea
color5 #9141ac
color6 #5bc8af
color7 #deddda
color8 #9a9996
color9 #f66151
color10 #8ff0a4
color11 #ffa348
color12 #99c1f1
color13 #dc8add
color14 #93ddc2
color15 #f6f5f4
+38
View File
@@ -0,0 +1,38 @@
# ────────────────────────────────────────────────────────────────────
# ╭────────────────────────────────────────────────╮
# │ Kitty Config │
# ╰────────────────────────────────────────────────╯
# ────────────────────────────────────────────────────────────────────
# ┌ ┐
# │ FONTS │
# └ ┘
font_family Source Code Pro
font_size 12.0
# ┌ ┐
# │ Cursor config │
# └ ┘
cursor_trail 1
cursor_trail_start_threshold 0
# ┌ ┐
# │ Mouse config │
# └ ┘
mouse_hide_wait 3.0
url_style curly
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh
detect_urls yes
show_hyperlink_targets yes
include current-theme.conf
wheel_scroll_multiplier 10.0
touch_scroll_multiplier 5.0
# ┌ ┐
# │ Mappings │
# └ ┘
map kitty_mod+e
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,11 @@
[filechooser]
cmd=yazi-wrapper.sh
default_dir=$HOME
; Uncomment to skip creating destination save files with instructions in them
; create_help_file=0
; Uncomment and edit the line below to change the terminal emulator command
; env=TERMCMD=foot
; Mode must be one of 'suggested', 'default', or 'last'.
open_mode=suggested
save_mode=suggested
+2
View File
@@ -0,0 +1,2 @@
[preferred]
org.freedesktop.impl.portal.FileChooser=termfilechooser
+44
View File
@@ -0,0 +1,44 @@
[mgr]
prepend_keymap = [
# # undo trash
{ on = "u", run = "plugin restore", desc = "Restore last deleted files/folders" },
# # compress
{ on = "C", run = "plugin ouch tar.gz", desc = "Compress with ouch" },
# Goto
{ on = [ "g", "h" ], run = "cd ~", desc = "Go to ~" },
{ on = [ "g", "a" ], run = "cd ~/.cache", desc = "Go to ~/.cache" },
{ on = [ "g", "l", "b" ], run = "cd ~/.local/bin", desc = "Go to ~/.local/bin" },
{ on = [ "g", "l", "s" ], run = "cd ~/.local/share", desc = "Go to ~/.local/share" },
{ on = [ "g", "c", "c" ], run = "cd ~/.config", desc = "Go to ~/.config" },
{ on = [ "g", "c", "h" ], run = "cd ~/projects/dotfiles/config/hypr", desc = "Go to Hyprland config" },
{ on = [ "g", "c", "f" ], run = "cd ~/projects/dotfiles/config/fish", desc = "Go to Fish config" },
{ on = [ "g", "c", "y" ], run = "cd ~/projects/dotfiles/config/yazi", desc = "Go to Yazi config" },
{ on = [ "g", "c", "a" ], run = "cd ~/projects/dotfiles/config/astal", desc = "Go to astal config" },
{ on = [ "g", "c", "l" ], run = "cd ~/projects/dotfiles/config/lint", desc = "Go to linter configs" },
{ on = [ "g", "c", "k" ], run = "cd ~/projects/dotfiles/config/kitty", desc = "Go to kitty config" },
{ on = [ "g", "c", "r" ], run = "cd ~/projects/dotfiles/config/rofi", desc = "Go to rofi config" },
{ on = [ "g", "c", "s" ], run = "cd ~/projects/dotfiles/scripts", desc = "Go to script" },
{ on = [ "g", "c", "d" ], run = "cd ~/projects/dotfiles", desc = "Go to Dotfiles folder" },
{ on = [ "g", "c", "n" ], run = "cd ~/projects/nvim", desc = "Go to NeoVim config" },
{ on = [ "g", "n" ], run = "cd ~/NextCloud/Documents/", desc = "Go to NextCloud Documents" },
{ on = [ "g", "w" ], run = "cd ~/NextCloud/Wallpapers", desc = "Go to Wallpapers" },
{ on = [ "g", "e", "n" ], run = "cd ~/NextCloud/Documents/ETH/Semester4/", desc = "Go to ETH Nextcloud" },
{ on = [ "g", "e", "p" ], run = "cd ~/projects/eth/projects/", desc = "Go to ETH projects folder" },
{ on = [ "g", "e", "a" ], run = "cd ~/projects/eth/semesters/semester4/", desc = "Go to ETH assignments folder" },
{ on = [ "g", "e", "t" ], run = "cd ~/NextCloud/Documents/ETH/Others/projects/eyetap/", desc = "Go to eyetap data folder" },
{ on = [ "g", "e", "g" ], run = "cd ~/projects/eth/gitlab/", desc = "Go to ETH Gitlab folder" },
{ on = [ "g", "e", "s" ], run = "cd ~/projects/eth/eth-summaries/semester4/", desc = "Go to ETH Summaries folder" },
{ on = [ "g", "s", "h" ], run = "cd ~/.steam/steam/steamapps/common", desc = "Go to ~/.steam/steam/steamapps/common" },
{ on = [ "g", "s", "g" ], run = "cd /mnt/games/SteamLibrary", desc = "Go to SteamLibrary on NTFS partition" },
{ on = [ "g", "s", "s" ], run = "cd /mnt/secondary/SteamLibrary", desc = "Go to SteamLibrary on main games drive" },
{ on = [ "g", "o" ], run = "cd /mnt/janis/Documents", desc = "Go to Documents" },
{ on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Go to ~/Downloads" },
{ on = [ "g", "p" ], run = "cd ~/projects", desc = "Go to projects" },
{ on = [ "g", "t", "m" ], run = "cd /tmp", desc = "Go to /tmp" },
{ on = [ "g", "t", "t" ], run = "cd ~/.local/share/Trash/", desc = "Go to TRASH" },
{ on = [ "g", "/" ], run = "cd /", desc = "Go to /" },
{ on = [ "g", "m" ], run = "cd /run/media/$USER", desc = "Go to /run/media" },
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Go to interactively" },
{ on = [ "g", "-" ], run = "plugin vcs-files", desc = "Show Git file changes" },
]
+29
View File
@@ -0,0 +1,29 @@
[[plugin.deps]]
use = "ndtoan96/ouch"
rev = "406ce6c"
hash = "f5afc904d5106ee368c8aa2ded43bd74"
[[plugin.deps]]
use = "boydaihungst/restore"
rev = "0e08704"
hash = "e4d7c06510b4fe5f64ae31fbb4e017d6"
[[plugin.deps]]
use = "yazi-rs/plugins:vcs-files"
rev = "1db18bb"
hash = "6b141fbed3c74b45558fbc7088c805ee"
[[flavor.deps]]
use = "bennyoe/tokyo-night"
rev = "8e6296f"
hash = "d9da921c3bd37ba32ee27a8a7a40461f"
[[flavor.deps]]
use = "yazi-rs/flavors:dracula"
rev = "0670801"
hash = "20624fcdfcf7e4e912de05e348065e5e"
[[flavor.deps]]
use = "yazi-rs/flavors:catppuccin-latte"
rev = "0670801"
hash = "b8f46853c27707115f25f3423a47bd38"
+3
View File
@@ -0,0 +1,3 @@
[flavor]
dark = "dracula"
light = "dracula"
+17
View File
@@ -0,0 +1,17 @@
[plugin]
prepend_previewers = [
# Archive previewer
{ mime = "application/*zip", run = "ouch" },
{ mime = "application/x-tar", run = "ouch" },
{ mime = "application/x-bzip2", run = "ouch" },
{ mime = "application/x-7z-compressed", run = "ouch" },
{ mime = "application/x-rar", run = "ouch" },
{ mime = "application/x-xz", run = "ouch" },
]
[opener]
open = [
{ run = 'xdg-open "$@"', desc = "Open" },
{ run = 'okular "$@"', desc = "Open in Okular" },
{ run = 'evince "$@"', desc = "Open in Evince" },
]
+3
View File
@@ -0,0 +1,3 @@
set selection-clipboard clipboard
map D set "first-page-column 1:2"
map . nohlsearch