Compare commits

...

21 Commits

Author SHA1 Message Date
6255aeb130 Merge branch 'main' of ssh://git.musuka.dev:2222/paoda/dotfiles 2025-01-19 10:45:07 -06:00
bed3e5ca5c chore: update helix config 2025-01-19 10:44:48 -06:00
b710ee96de chore: merge limpopo with mukuvisi 2025-01-05 12:00:28 -06:00
ce520bded1 chore: 2025-01-05 update 2025-01-05 11:56:42 -06:00
73c3be994a feat: add zls config 2024-02-22 01:45:59 -06:00
dfa1e27260 chore: minor changes to zigup install path 2024-01-07 01:40:00 -06:00
663e1b9c4c chore: move zls binary from /opt to ~/.local/bin 2023-12-02 12:44:15 -06:00
69104c2bf1 chore: exa has been deprecated in favour of eza 2023-12-01 18:02:36 -06:00
f1d164ce06 chore: resolve merge conflict 2023-11-04 19:00:20 -05:00
78a893084d fix: use cascadia code for ghostty 2023-11-03 02:05:59 -05:00
b89e6b45ba Merge branch 'main' of ssh://git.musuka.dev:2222/paoda/dotfiles 2023-10-31 21:03:43 -05:00
68f7ac6f9c feat: add ghostty config file 2023-10-31 21:03:04 -05:00
e7031d8379 chore: gdbinit 2023-09-24 02:09:32 -05:00
41b6216fa3 chore: simplify zellij ui even more 2023-09-15 18:00:43 -05:00
daf07d01ec chore: remove unnecessary screenshot scripts 2023-08-01 22:26:22 -05:00
064d72392d chore: 2023-06-01 update 2023-06-01 19:19:05 -05:00
62906a8b3b chore: update helix config 2022-12-27 07:47:03 -06:00
be10da81b2 chore: move things to systemd user env 2022-10-27 04:08:31 -03:00
b12b9b4812 chore: update dotfiles 2022-09-08 19:35:40 -03:00
6d3af676eb fix: use helix version built from source 2022-09-03 17:16:21 -03:00
6109089d88 chore: general update 2022-07-12 19:28:28 -03:00
15 changed files with 378 additions and 59 deletions

View File

@@ -0,0 +1,4 @@
# DevKitPro
DEVKITPRO=/opt/devkitpro
DEVKITARM=/opt/devkitpro/devkitARM
DEVKITPPC=/opt/devkitpro/devkitPPC

View File

@@ -0,0 +1,3 @@
GTK_IM_MODULE = fcitx
QT_IM_MODULE = fcitx
XMODIFIERS = "@im=fcitx"

View File

@@ -0,0 +1 @@
QT_QPA_PLATFORMTHEME=qt5ct

1
.config/ghostty/config Normal file
View File

@@ -0,0 +1 @@
font-family = CaskaydiaCove Nerd Font

View File

@@ -1 +1,22 @@
theme = "onedark"
[editor]
color-modes = true
auto-save = true
bufferline = "multiple"
end-of-line-diagnostics = "hint"
[editor.inline-diagnostics]
cursor-line = "warning"
[editor.indent-guides]
render = true
[editor.soft-wrap]
enable = true
[editor.lsp]
display-inlay-hints = true
[editor.statusline]
center = ["version-control"]

315
.config/zellij/config.kdl Normal file
View File

@@ -0,0 +1,315 @@
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds {
normal {
// uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; }
}
locked {
bind "Ctrl g" { SwitchToMode "Normal"; }
}
resize {
bind "Ctrl n" { SwitchToMode "Normal"; }
bind "h" "Left" { Resize "Increase Left"; }
bind "j" "Down" { Resize "Increase Down"; }
bind "k" "Up" { Resize "Increase Up"; }
bind "l" "Right" { Resize "Increase Right"; }
bind "H" { Resize "Decrease Left"; }
bind "J" { Resize "Decrease Down"; }
bind "K" { Resize "Decrease Up"; }
bind "L" { Resize "Decrease Right"; }
bind "=" "+" { Resize "Increase"; }
bind "-" { Resize "Decrease"; }
}
pane {
bind "Ctrl p" { SwitchToMode "Normal"; }
bind "h" "Left" { MoveFocus "Left"; }
bind "l" "Right" { MoveFocus "Right"; }
bind "j" "Down" { MoveFocus "Down"; }
bind "k" "Up" { MoveFocus "Up"; }
bind "p" { SwitchFocus; }
bind "n" { NewPane; SwitchToMode "Normal"; }
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
bind "z" { TogglePaneFrames; SwitchToMode "Normal"; }
bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
}
move {
bind "Ctrl h" { SwitchToMode "Normal"; }
bind "n" "Tab" { MovePane; }
bind "p" { MovePaneBackwards; }
bind "h" "Left" { MovePane "Left"; }
bind "j" "Down" { MovePane "Down"; }
bind "k" "Up" { MovePane "Up"; }
bind "l" "Right" { MovePane "Right"; }
}
tab {
bind "Ctrl t" { SwitchToMode "Normal"; }
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
bind "l" "Right" "Down" "j" { GoToNextTab; }
bind "n" { NewTab; SwitchToMode "Normal"; }
bind "x" { CloseTab; SwitchToMode "Normal"; }
bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
bind "1" { GoToTab 1; SwitchToMode "Normal"; }
bind "2" { GoToTab 2; SwitchToMode "Normal"; }
bind "3" { GoToTab 3; SwitchToMode "Normal"; }
bind "4" { GoToTab 4; SwitchToMode "Normal"; }
bind "5" { GoToTab 5; SwitchToMode "Normal"; }
bind "6" { GoToTab 6; SwitchToMode "Normal"; }
bind "7" { GoToTab 7; SwitchToMode "Normal"; }
bind "8" { GoToTab 8; SwitchToMode "Normal"; }
bind "9" { GoToTab 9; SwitchToMode "Normal"; }
bind "Tab" { ToggleTab; }
}
scroll {
bind "Ctrl s" { SwitchToMode "Normal"; }
bind "e" { EditScrollback; SwitchToMode "Normal"; }
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
bind "j" "Down" { ScrollDown; }
bind "k" "Up" { ScrollUp; }
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
bind "d" { HalfPageScrollDown; }
bind "u" { HalfPageScrollUp; }
// uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; }
}
search {
bind "Ctrl s" { SwitchToMode "Normal"; }
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
bind "j" "Down" { ScrollDown; }
bind "k" "Up" { ScrollUp; }
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
bind "d" { HalfPageScrollDown; }
bind "u" { HalfPageScrollUp; }
bind "n" { Search "down"; }
bind "p" { Search "up"; }
bind "c" { SearchToggleOption "CaseSensitivity"; }
bind "w" { SearchToggleOption "Wrap"; }
bind "o" { SearchToggleOption "WholeWord"; }
}
entersearch {
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
bind "Enter" { SwitchToMode "Search"; }
}
renametab {
bind "Ctrl c" { SwitchToMode "Normal"; }
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
}
renamepane {
bind "Ctrl c" { SwitchToMode "Normal"; }
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
}
session {
bind "Ctrl o" { SwitchToMode "Normal"; }
bind "Ctrl s" { SwitchToMode "Scroll"; }
bind "d" { Detach; }
}
tmux {
bind "[" { SwitchToMode "Scroll"; }
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
bind "c" { NewTab; SwitchToMode "Normal"; }
bind "," { SwitchToMode "RenameTab"; }
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
bind "o" { FocusNextPane; }
bind "d" { Detach; }
bind "Space" { NextSwapLayout; }
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
bind "Ctrl q" { Quit; }
bind "Alt n" { NewPane; }
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
bind "Alt =" "Alt +" { Resize "Increase"; }
bind "Alt -" { Resize "Decrease"; }
bind "Alt [" { PreviousSwapLayout; }
bind "Alt ]" { NextSwapLayout; }
}
shared_except "normal" "locked" {
bind "Enter" "Esc" { SwitchToMode "Normal"; }
}
shared_except "pane" "locked" {
bind "Ctrl p" { SwitchToMode "Pane"; }
}
shared_except "resize" "locked" {
bind "Ctrl n" { SwitchToMode "Resize"; }
}
shared_except "scroll" "locked" {
bind "Ctrl s" { SwitchToMode "Scroll"; }
}
shared_except "session" "locked" {
bind "Ctrl o" { SwitchToMode "Session"; }
}
shared_except "tab" "locked" {
bind "Ctrl t" { SwitchToMode "Tab"; }
}
shared_except "move" "locked" {
bind "Ctrl h" { SwitchToMode "Move"; }
}
shared_except "tmux" "locked" {
bind "Ctrl b" { SwitchToMode "Tmux"; }
}
}
plugins {
tab-bar { path "tab-bar"; }
status-bar { path "status-bar"; }
strider { path "strider"; }
compact-bar { path "compact-bar"; }
}
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
// eg. when terminal window with an active zellij session is closed
// Options:
// - detach (Default)
// - quit
//
// on_force_close "quit"
// Send a request for a simplified ui (without arrow fonts) to plugins
// Options:
// - true
// - false (Default)
//
simplified_ui true
// Choose the path to the default shell that zellij will use for opening new panes
// Default: $SHELL
//
// default_shell "fish"
// Choose the path to override cwd that zellij will use for opening new panes
//
// default_cwd ""
// Toggle between having pane frames around the panes
// Options:
// - true (default)
// - false
//
pane_frames false
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
// Options:
// - true (default)
// - false
//
// auto_layout true
// Define color themes for Zellij
// For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
// Once these themes are defined, one of them should to be selected in the "theme" section of this file
//
// themes {
// dracula {
// fg 248 248 242
// bg 40 42 54
// red 255 85 85
// green 80 250 123
// yellow 241 250 140
// blue 98 114 164
// magenta 255 121 198
// orange 255 184 108
// cyan 139 233 253
// black 0 0 0
// white 255 255 255
// }
// }
// Choose the theme that is specified in the themes section.
// Default: default
//
// theme "default"
// The name of the default layout to load on startup
// Default: "default"
//
// default_layout "compact"
// Choose the mode that zellij uses when starting up.
// Default: normal
//
// default_mode "locked"
// Toggle enabling the mouse mode.
// On certain configurations, or terminals this could
// potentially interfere with copying text.
// Options:
// - true (default)
// - false
//
// mouse_mode false
// Configure the scroll back buffer size
// This is the number of lines zellij stores for each pane in the scroll back
// buffer. Excess number of lines are discarded in a FIFO fashion.
// Valid values: positive integers
// Default value: 10000
//
// scroll_buffer_size 10000
// Provide a command to execute when copying text. The text will be piped to
// the stdin of the program to perform the copy. This can be used with
// terminal emulators which do not support the OSC 52 ANSI control sequence
// that will be used by default if this option is not set.
// Examples:
//
// copy_command "xclip -selection clipboard" // x11
// copy_command "wl-copy" // wayland
// copy_command "pbcopy" // osx
// Choose the destination for copied text
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
// Does not apply when using copy_command.
// Options:
// - system (default)
// - primary
//
// copy_clipboard "primary"
// Enable or disable automatic copy (and clear) of selection when releasing mouse
// Default: true
//
// copy_on_select false
// Path to the default editor to use to edit pane scrollbuffer
// Default: $EDITOR or $VISUAL
//
// scrollback_editor "/usr/bin/vim"
// When attaching to an existing session with other users,
// should the session be mirrored (true)
// or should each user have their own cursor (false)
// Default: false
//
// mirror_session true
// The folder in which Zellij will look for layouts
//
// layout_dir "/path/to/my/layout_dir"
// The folder in which Zellij will look for themes
//
// theme_dir "/path/to/my/theme_dir"

8
.config/zls.json Normal file
View File

@@ -0,0 +1,8 @@
{
"inlay_hints_show_builtin": false,
"inlay_hints_exclude_single_argument": false,
"inlay_hints_hide_redundant_param_names": true,
"inlay_hints_hide_redundant_param_names_last_token": true,
"warn_style": true,
"use_comptime_interpreter": false
}

1
.gdbinit Normal file
View File

@@ -0,0 +1 @@
set debuginfod enabled on

View File

@@ -1,28 +0,0 @@
#!/usr/bin/bash
# Delay between running the command and flameshot launching
DELAY=$1
# Make the temp directory if it doesn't already exist
mkdir -p /tmp/jptesseract;
# flameshot is currently unable to only send output to stdout
# If we use flameshot gui --raw, we will send output to stdout and
# attempt to write a .png file. We **do not** want this .png file, since we can't
# easily predict the file name. Omitting --path causes a file explorer dialog to appear
# upon save. Writing to /dev/null is not allowed either, so our only option is to write them
# to somewhere we don't care about.
mkdir -p /tmp/jptesseract/.useless;
# Make sure we're in the right $PWD
cd /tmp/jptesseract || exit;
# Screenshot with flameshot, save to /tmp directory
if flameshot gui -d "$DELAY" -r --path /tmp/jptesseract/.useless > /tmp/jptesseract/jp_text_image.png; then
# Read from /tmp directory with Tesseract
tesseract -l jpn -c preserve_interword_spaces=1 /tmp/jptesseract/jp_text_image.png /tmp/jptesseract/jp_output
# Remove \f which will be present at the end of jp_output
tr -d '\f' < /tmp/jptesseract/jp_output.txt | xclip -selection clipboard;
fi

View File

@@ -1,3 +0,0 @@
#!/usr/bin/sh
flameshot full -c --path ~/Pictures/Screenshots;

View File

@@ -1,7 +0,0 @@
#!/usr/bin/sh
# Take screenshot w/ selection tools, save to ~/Pictures/Screenshots, and also
# write the image to a temp file (so we can put the image in the clipboard also)
if flameshot gui -r --path ~/Pictures/Screenshots > /tmp/flameshot_screenshot.png; then
xclip -selection clipboard -t image/png < /tmp/flameshot_screenshot.png;
fi

View File

@@ -1,3 +0,0 @@
GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=\@im=fcitx

View File

@@ -5,14 +5,15 @@
# Aliases
alias yay="yay --aur"
alias paru="paru --aur"
alias ls="exa"
alias ll="exa -albh"
alias ls="eza"
alias ll="eza -albh"
# alias hx="helix"
alias cat="bat"
alias find="fd"
alias grep="rg"
alias open="xdg-open"
alias zigup="zigup --path-link /home/paoda/.local/bin/zig --install-dir /opt/zigup/zig"
alias zigup="zigup --path-link /home/paoda/.local/bin/zig --install-dir /home/paoda/.local/share/zigup/zig"
alias objdump="objdump -M intel --disassembler-color=extended-color --visualize-jumps=extended-color"
# Functions
dotfile() {

29
.zshenv
View File

@@ -1,31 +1,30 @@
# DenoJS
export DENO_INSTALL="/home/paoda/.deno"
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
# Set Default Editor
export EDITOR="/usr/bin/hx"
export EDITOR="$HOME/.cargo/bin/hx"
# Add ~/.local/bin to PATH
export PATH="$HOME/.local/bin:$PATH"
# zigup
export PATH="/opt/zigup/bin:$PATH"
# Note: zizgup binary should be moved to ~/.local/bin
# Zig language Server
export PATH="/opt/zls/bin:$PATH"
# Rust
export PATH="$HOME/.cargo/bin:$PATH"
# Rust
. "$HOME/.cargo/env"
# Note: ZLS binary should be moved to ~/.local/bin
# Yarn Global
export PATH="$HOME/.yarn/bin:$PATH"
# QT5 on GNOME
export QT_QPA_PLATFORMTHEME="qt5ct"
# Zigmod
export PATH="$HOME/.zigmod/bin:$PATH"
# DevKitPro
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=/opt/devkitpro/devkitARM
export DEVKITPPC=/opt/devkitpro/devkitPPC
# Flutter
export PATH="/opt/flutter/bin:$PATH"
export PATH="/opt/devkitpro/tools/bin:$PATH";
# nvm
source /usr/share/nvm/init-nvm.sh
# Note: devkitPro handled by environment.d

6
.zshrc
View File

@@ -118,3 +118,9 @@ source ~/.paodarc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
[[ -f /home/paoda/.dart-cli-completion/zsh-config.zsh ]] && . /home/paoda/.dart-cli-completion/zsh-config.zsh || true
## [/Completion]