diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-05-13 19:32:22 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-05-13 19:32:22 -0400 |
| commit | 2f3f91682f7b4a33f1791781bfa8eca4f7c9527a (patch) | |
| tree | eaf91e90301d87363bcb22dcd5c2253e0b0bad6d /.config | |
| parent | be8c956b0e819f2db0c6ae3598b6590b62982a83 (diff) | |
new system on gentoo
Diffstat (limited to '.config')
41 files changed, 546 insertions, 1305 deletions
diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml deleted file mode 100644 index 5766001..0000000 --- a/.config/alacritty/alacritty.toml +++ /dev/null @@ -1,14 +0,0 @@ -[general] -import = [ - "~/.config/alacritty/themes/themes/theme.toml" -] - -[window] -padding = { x = 5, y = 5 } -opacity = 1.0 - -[font] -size = 13.0 - -[font.normal] -family = "Fantasque Sans Mono"
\ No newline at end of file diff --git a/.config/alacritty/theme.toml b/.config/alacritty/theme.toml deleted file mode 100644 index cd09ebe..0000000 --- a/.config/alacritty/theme.toml +++ /dev/null @@ -1,29 +0,0 @@ -# Colors (Tokyo Night) -# Source https//github.com/zatchheems/tokyo-night-alacritty-theme - -# Default colors -[colors.primary] -background = '#1a1b26' -foreground = '#a9b1d6' - -# Normal colors -[colors.normal] -black = '#32344a' -red = '#f7768e' -green = '#9ece6a' -yellow = '#e0af68' -blue = '#7aa2f7' -magenta = '#ad8ee6' -cyan = '#449dab' -white = '#787c99' - -# Bright colors -[colors.bright] -black = '#444b6a' -red = '#ff7a93' -green = '#b9f27c' -yellow = '#ff9e64' -blue = '#7da6ff' -magenta = '#bb9af7' -cyan = '#0db9d7' -white = '#acb0d0'
\ No newline at end of file diff --git a/.config/fastfetch/config.jsonc b/.config/fastfetch/config.jsonc deleted file mode 100644 index 52344a9..0000000 --- a/.config/fastfetch/config.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", - "modules": [ - "title", - "separator", - "os", - "host", - "kernel", - "uptime", - "packages", - "shell", - "display", - "de", - "wm", - "wmtheme", - "theme", - "icons", - "font", - "cursor", - "terminal", - "terminalfont", - "cpu", - "gpu", - "memory", - "swap", - "disk", - "battery", - "poweradapter", - "locale", - "break", - "colors" - ] -} diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini new file mode 100644 index 0000000..9f6b2f6 --- /dev/null +++ b/.config/foot/foot.ini @@ -0,0 +1,288 @@ +# -*- conf -*- + +# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) +# term=foot (or xterm-256color if built with -Dterminfo=disabled) +# login-shell=no + +# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode +# title=foot +# locked-title=no + +font=monospace:size=12 +# font-bold=<bold variant of regular font> +# font-italic=<italic variant of regular font> +# font-bold-italic=<bold+italic variant of regular font> +# font-size-adjustment=0.5 +# line-height=<font metrics> +# letter-spacing=0 +# horizontal-letter-offset=0 +# vertical-letter-offset=0 +# underline-offset=<font metrics> +# underline-thickness=<font underline thickness> +# strikeout-thickness=<font strikeout thickness> +# box-drawings-uses-font-glyphs=no +# dpi-aware=no +# gamma-correct-blending=no + +# initial-color-theme=dark +# initial-window-size-pixels=700x500 # Or, +# initial-window-size-chars=<COLSxROWS> +# initial-window-mode=windowed +pad=6x6 center-when-maximized-and-fullscreen +# resize-by-cells=yes +# resize-keep-grid=yes +# resize-delay-ms=100 + +# bold-text-in-bright=no +# word-delimiters=,│`|:"'()[]{}<> +# selection-target=primary +# workers=<number of logical CPUs> +# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux) +# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD) + +# uppercase-regex-insert=yes + +[environment] +# name=value + +[security] +# osc52=enabled # disabled|copy-enabled|paste-enabled|enabled + +[bell] +# system=yes +# urgent=no +# notify=no +# visual=no +# command= +# command-focused=no + +[desktop-notifications] +# command=notify-send --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint STRING:image-path:${icon} --hint BOOLEAN:suppress-sound:${muted} --hint STRING:sound-name:${sound-name} --replace-id ${replace-id} ${action-argument} --print-id -- ${title} ${body} +# command-action-argument=--action ${action-name}=${action-label} +# close="" +# inhibit-when-focused=yes + + +[scrollback] +# lines=1000 +# multiplier=3.0 +# indicator-position=relative +# indicator-format="" + +[url] +# launch=xdg-open ${url} +# label-letters=sadfjklewcmpgh +# osc8-underline=url-mode +# regex=(((https?://|mailto:|ftp://|file:|ssh:|ssh://|git://|tel:|magnet:|ipfs://|ipns://|gemini://|gopher://|news:)|www\.)([0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]+|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*')+([0-9a-zA-Z/#@$&*+=~_%^\-]|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*')) + +# You can define your own regex's, by adding a section called +# 'regex:<ID>' with a 'regex' and 'launch' key. These can then be tied +# to a key-binding. See foot.ini(5) for details + +# [regex:your-fancy-name] +# regex=<a POSIX-Extended Regular Expression> +# launch=<path to script or application> ${match} +# +# [key-bindings] +# regex-launch=[your-fancy-name] Control+Shift+q +# regex-copy=[your-fancy-name] Control+Alt+Shift+q + +[cursor] +# style=block +# blink=no +# blink-rate=500 +# beam-thickness=1.5 +# underline-thickness=<font underline thickness> + +[mouse] +# hide-when-typing=no +# alternate-scroll-mode=yes + +[touch] +# long-press-delay=400 + +[colors-dark] +# alpha=1.0 +# alpha-mode=default # Can be `default`, `matching` or `all` +# background=242424 +# foreground=ffffff +# flash=7f7f00 +# flash-alpha=0.5 + +# cursor=<inverse foreground/background> + +## Normal/regular colors (color palette 0-7) +# regular0=242424 # black +# regular1=f62b5a # red +# regular2=47b413 # green +# regular3=e3c401 # yellow +# regular4=24acd4 # blue +# regular5=f2affd # magenta +# regular6=13c299 # cyan +# regular7=e6e6e6 # white + +## Bright colors (color palette 8-15) +# bright0=616161 # bright black +# bright1=ff4d51 # bright red +# bright2=35d450 # bright green +# bright3=e9e836 # bright yellow +# bright4=5dc5f8 # bright blue +# bright5=feabf2 # bright magenta +# bright6=24dfc4 # bright cyan +# bright7=ffffff # bright white + +## dimmed colors (see foot.ini(5) man page) +# dim-blend-towards=black +# dim0=<not set> +# ... +# dim7=<not-set> + +## The remaining 256-color palette +# 16 = <256-color palette #16> +# ... +# 255 = <256-color palette #255> + +## Sixel colors +# sixel0 = 000000 +# sixel1 = 3333cc +# sixel2 = cc2121 +# sixel3 = 33cc33 +# sixel4 = cc33cc +# sixel5 = 33cccc +# sixel6 = cccc33 +# sixel7 = 878787 +# sixel8 = 424242 +# sixel9 = 545499 +# sixel10 = 994242 +# sixel11 = 549954 +# sixel12 = 995499 +# sixel13 = 549999 +# sixel14 = 999954 +# sixel15 = cccccc + +## Misc colors +# selection-foreground=<inverse foreground/background> +# selection-background=<inverse foreground/background> +# jump-labels=<regular0> <regular3> # black-on-yellow +# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue +# search-box-no-match=<regular0> <regular1> # black-on-red +# search-box-match=<regular0> <regular3> # black-on-yellow +# urls=<regular3> + +[colors-light] +# Alternative color theme, see man page foot.ini(5) +# Same builtin defaults as [color], except for: +# dim-blend-towards=white + +[csd] +# preferred=server +# size=26 +# font=<primary font> +# color=<foreground color> +# hide-when-maximized=no +# double-click-to-maximize=yes +# border-width=0 +# border-color=<csd.color> +# button-width=26 +# button-color=<background color> +# button-minimize-color=<regular4> +# button-maximize-color=<regular2> +# button-close-color=<regular1> + +[key-bindings] +# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up +# scrollback-up-half-page=none +# scrollback-up-line=none +# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down +# scrollback-down-half-page=none +# scrollback-down-line=none +# scrollback-home=none +# scrollback-end=none +# clipboard-copy=Control+Shift+c XF86Copy +# clipboard-paste=Control+Shift+v XF86Paste +# primary-paste=Shift+Insert +# search-start=Control+Shift+r +# font-increase=Control+plus Control+equal Control+KP_Add +# font-decrease=Control+minus Control+KP_Subtract +# font-reset=Control+0 Control+KP_0 +# spawn-terminal=Control+Shift+n +# minimize=none +# maximize=none +# fullscreen=none +# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-selected=[xargs -r firefox] none +# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard +# show-urls-launch=Control+Shift+o +# show-urls-copy=none +# show-urls-persistent=none +# prompt-prev=Control+Shift+z +# prompt-next=Control+Shift+x +# unicode-input=Control+Shift+u +# color-theme-switch-1=none +# color-theme-switch-2=none +# color-theme-toggle=none +# noop=none +# quit=none + +[search-bindings] +# cancel=Control+g Control+c Escape +# commit=Return KP_Enter +# find-prev=Control+r +# find-next=Control+s +# cursor-left=Left Control+b +# cursor-left-word=Control+Left Mod1+b +# cursor-right=Right Control+f +# cursor-right-word=Control+Right Mod1+f +# cursor-home=Home Control+a +# cursor-end=End Control+e +# delete-prev=BackSpace +# delete-prev-word=Mod1+BackSpace Control+BackSpace +# delete-next=Delete +# delete-next-word=Mod1+d Control+Delete +# delete-to-start=Control+u +# delete-to-end=Control+k +# extend-char=Shift+Right +# extend-to-word-boundary=Control+w Control+Shift+Right +# extend-to-next-whitespace=Control+Shift+w +# extend-line-down=Shift+Down +# extend-backward-char=Shift+Left +# extend-backward-to-word-boundary=Control+Shift+Left +# extend-backward-to-next-whitespace=none +# extend-line-up=Shift+Up +# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste +# primary-paste=Shift+Insert +# unicode-input=none +# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up +# scrollback-up-half-page=none +# scrollback-up-line=none +# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down +# scrollback-down-half-page=none +# scrollback-down-line=none +# scrollback-home=none +# scrollback-end=none + +[url-bindings] +# cancel=Control+g Control+c Control+d Escape +# toggle-url-visible=t + +[text-bindings] +# \x03=Mod4+c # Map Super+c -> Ctrl+c + +[mouse-bindings] +# scrollback-up-mouse=BTN_WHEEL_BACK +# scrollback-down-mouse=BTN_WHEEL_FORWARD +# font-increase=Control+BTN_WHEEL_BACK +# font-decrease=Control+BTN_WHEEL_FORWARD +# selection-override-modifiers=Shift +# primary-paste=BTN_MIDDLE +# select-begin=BTN_LEFT +# select-begin-block=Control+BTN_LEFT +# select-extend=BTN_RIGHT +# select-extend-character-wise=Control+BTN_RIGHT +# select-word=BTN_LEFT-2 +# select-word-whitespace=Control+BTN_LEFT-2 +# select-quote = BTN_LEFT-3 +# select-row=BTN_LEFT-4 + +# vim: ft=dosini diff --git a/.config/fuzzel/fuzzel.ini b/.config/fuzzel/fuzzel.ini deleted file mode 100644 index d89c975..0000000 --- a/.config/fuzzel/fuzzel.ini +++ /dev/null @@ -1,120 +0,0 @@ -# output=<not set> -# font=monospace -# dpi-aware=auto -# use-bold=no -# prompt="> " -# placeholder= -# icon-theme=default -# icons-enabled=yes -# hide-before-typing=no -# fields=filename,name,generic -# password-character=* -# filter-desktop=no -# match-mode=fzf -# sort-result=yes -# match-counter=no -# delayed-filter-ms=300 -# delayed-filter-limit=20000 -# show-actions=no -# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here -# launch-prefix=<not set> -# list-executables-in-path=no - -# anchor=center -# x-margin=0 -# y-margin=0 -# lines=15 -# width=30 -# tabs=8 -# horizontal-pad=40 -# vertical-pad=8 -# inner-pad=0 - -# scaling-filter=bilinear -image-size-ratio=0.5 - -# gamma-correct-blending=no -# line-height=<use font metrics> -# letter-spacing=0 - -# layer=overlay -# keyboard-focus=exclusive -# exit-on-keyboard-focus-loss=yes - -# cache=<not set> - -# render-workers=<number of logical CPUs> -# match-workers=<number of logical CPUs> - -[colors] -# background=fdf6e3ff -# text=657b83ff -# prompt=586e75ff -# placeholder=93a1a1ff -# input=657b83ff -# match=cb4b16ff -# selection=eee8d5ff -# selection-text=586e75ff -# selection-match=cb4b16ff -# counter=93a1a1ff -# border=002b36ff - -[border] -# width=1 -radius=0 - -[dmenu] -# mode=text # text|index -# exit-immediately-if-empty=no - -[key-bindings] -# cancel=Escape Control+g Control+c Control+bracketleft -# execute=Return KP_Enter Control+y -# execute-or-next=Tab -# execute-input=Shift+Return Shift+KP_Enter -# cursor-left=Left Control+b -# cursor-left-word=Control+Left Mod1+b -# cursor-right=Right Control+f -# cursor-right-word=Control+Right Mod1+f -# cursor-home=Home Control+a -# cursor-end=End Control+e -# delete-prev=BackSpace Control+h -# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w -# delete-line-backward=Control+u -# delete-next=Delete KP_Delete Control+d -# delete-next-word=Mod1+d Control+Delete Control+KP_Delete -# delete-line-forward=Control+k -# prev=Up Control+p -# prev-with-wrap=ISO_Left_Tab -# prev-page=Page_Up KP_Page_Up -# next=Down Control+n -# next-with-wrap=none -# next-page=Page_Down KP_Page_Down -# expunge=Shift+Delete -# clipboard-paste=Control+v XF86Paste -# primary-paste=Shift+Insert Shift+KP_Insert - -# custom-N: *dmenu mode only*. Like execute, but with a non-zero -# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3 -# with 12, and so on. - -# custom-1=Mod1+1 -# custom-2=Mod1+2 -# custom-3=Mod1+3 -# custom-4=Mod1+4 -# custom-5=Mod1+5 -# custom-6=Mod1+6 -# custom-7=Mod1+7 -# custom-8=Mod1+8 -# custom-9=Mod1+9 -# custom-10=Mod1+0 -# custom-11=Mod1+exclam -# custom-12=Mod1+at -# custom-13=Mod1+numbersign -# custom-14=Mod1+dollar -# custom-15=Mod1+percent -# custom-16=Mod1+dead_circumflex -# custom-17=Mod1+ampersand -# custom-18=Mod1+asterix -# custom-19=Mod1+parentleft - diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf deleted file mode 100644 index 8de4514..0000000 --- a/.config/hypr/binds.conf +++ /dev/null @@ -1,93 +0,0 @@ -# main mod -$mainMod = SUPER - -# used programs -$terminal = emacsclient -c -s main --eval "(my/switch-to-master-vterm)" -$browser = firefox -$menu = swenu-run -oi -$appMenu = swenu-run -coil 10 - -# main binds -bind = $mainMod, D, killactive, -bind = $mainMod CTRL SHIFT, D, exec, hyprctl kill -bind = $mainMod, V, togglefloating, -bind = $mainMod, F, fullscreen -bind = $mainMod, SPACE, layoutmsg, swapwithmaster -bind = $mainMod, G, fullscreenstate, 0 3 -bind = $mainMod, R, exec, $menu -bind = $mainMod, RETURN, exec, $appMenu -bind = $mainMod SHIFT, Q, exit, - -# app and util binds -bind = $mainMod CONTROLALT SHIFT, L, exec, xdg-open https://linkedin.com -bind = $mainMod, I, exec, sysinfo -bind = $mainMod, A, exec, $terminal -bind = $mainMod, W, exec, $browser -bind = $mainMod, E, exec, launchemacs -bind = $mainMod CTRL, P, exec, hyprpicker -a -bind = $mainMod, L, exec, simlock -bind = $mainMod, K, exec, $terminal -e htop -bind = $mainMod SHIFT, B, exec, /bin/sh -c "pidof waybar && pkill -x waybar || waybar" -bind = $mainMod SHIFT, E, exec, wlboomer - -# screenshot (region + full) -bind = $mainMod SHIFT, S, exec, screenshot -save -bind = $mainMod, S, exec, screenshot -full -save -# screenshot and copy -bind = $mainMod CTRL SHIFT, S, exec, screenshot -bind = $mainMod CTRL, S, exec, screenshot -full - -# brightess and audio controls -bindle = , xf86monbrightnessup , exec, brightnessctl set 10%+ -bindle = , xf86monbrightnessdown, exec, brightnessctl set 10%- -bindle = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ -bindle = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%- -bindle = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+ -bindle = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%- -bindle = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle - -# Move focus with mainMod + arrow keys -binde = $mainMod, left, movefocus, l -binde = $mainMod, right, movefocus, r -binde = $mainMod, n, cyclenext, prev -binde = $mainMod, p, cyclenext -binde = $mainMod, up, movefocus, u -binde = $mainMod, down, movefocus, d -bind = $mainMod, o, cyclenext, prev - -# Move windows -binde = $mainMod SHIFT,left ,movewindow, l -binde = $mainMod SHIFT,right ,movewindow, r -binde = $mainMod SHIFT, n, swapnext, prev -binde = $mainMod SHIFT, p, swapnext -binde = $mainMod SHIFT,up ,movewindow, u -binde = $mainMod SHIFT,down ,movewindow, d -bind = $mainMod SHIFT, o, swapnext, prev - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow - -# switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -# move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 -bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 -bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 -bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 -bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 -bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 -bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 -bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 -bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 -bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf deleted file mode 100644 index 96dfaa7..0000000 --- a/.config/hypr/hypridle.conf +++ /dev/null @@ -1,9 +0,0 @@ -general { - before_sleep_cmd = pidof simlock || simlock - after_sleep_cmd = hyprctl dispatch dpms on -} - -listener { - timeout = 300 # 5min - on-timeout = loginctl suspend -} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf deleted file mode 100644 index 1edcb6b..0000000 --- a/.config/hypr/hyprland.conf +++ /dev/null @@ -1,123 +0,0 @@ -source=binds.conf - -# Settings -monitor = eDP-1, 1920x1200@60, 0x0, 1 -env = XCURSOR_PATH=${XCURSOR_PATH}:/usr/share/icons -env = XCURSOR_SIZE,24 -env = XCURSOR_THEME,whiteglass - -exec-once = hyprctl setcursor whiteglass 24 -exec-once = xrdb ~/.Xresources - -# Startup -exec-once = startup -exec-once = hyprctl dispatch workspace 1 - -env = XDG_CURRENT_DESKTOP, Hyprland -env = XDG_SESSION_TYPE, wayland -env = XDG_SESSION_DESKTOP, Hyprland -exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -exec-once = start-xdg-portal-hyprland - -input { - kb_layout = us - kb_options = ctrl:nocaps - - follow_mouse = 1 - - repeat_delay = 300 - repeat_rate = 30 - - accel_profile = adaptive - - touchpad { - scroll_factor = 0.7 - natural_scroll = yes - disable_while_typing = false - } - - sensitivity = 0 # -1.0 - 1.0, 0 means no modification. -} - -general { - layout = master - allow_tearing = true - resize_on_border = false - - gaps_in = 0 - gaps_out = 0 - - border_size = 0 - - col.active_border = rgba(AFD7FFff) - col.inactive_border = rgba(59595900) -} - -cursor { - no_hardware_cursors = false - no_warps = false - persistent_warps = true - warp_on_change_workspace = true -} - -windowrulev2 = noshadow, floating:0 - -decoration { - rounding = 0 - - blur { - enabled = true - size = 1 - passes = 1 - } -} - -master { - new_status = slave - new_on_top = true - orientation = left - mfact = 0.5 -} - -misc { - force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers - enable_anr_dialog = false -} - -animations { - enabled = yes, please :) - - # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - - bezier = easeOutQuint,0.23,1,0.32,1 - bezier = easeInOutCubic,0.65,0.05,0.36,1 - bezier = linear,0,0,1,1 - bezier = almostLinear,0.5,0.5,0.75,1.0 - bezier = quick,0.15,0,0.1,1 - - animation = global, 1, 10, default - animation = border, 1, 5.39, easeOutQuint - - animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, slide - animation = windowsOut, 1, 2, linear, slide - - animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 2, easeOutQuint - animation = fade, 1, 3.03, quick - - animation = layers, 1, 3.81, easeOutQuint - animation = layersIn, 1, 4, easeOutQuint, fade - animation = layersOut, 1, 1.5, linear, fade - animation = fadeLayersIn, 1, 1.79, almostLinear - animation = fadeLayersOut, 1, 1.39, almostLinear - - animation = workspaces, 0, 1.94, almostLinear, fade - animation = workspacesIn, 0, 1.21, almostLinear, fade - animation = workspacesOut, 1, 1.94, almostLinear, fade -} - -# Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* -# Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf deleted file mode 100644 index e8d61a5..0000000 --- a/.config/hypr/hyprlock.conf +++ /dev/null @@ -1,40 +0,0 @@ -background { - path = screenshot - - blur_passes = 2 # 0 disables blurring - blur_size = 2 - noise = 0.0117 - contrast = 0.8916 - brightness = 0.8172 - vibrancy = 0.1696 - vibrancy_darkness = 0.0 -} -input-field { - # size = 200, 200 - # outline_thickness = 15 - # dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 - # dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 - # dots_center = false - # dots_rounding = -1 # -1 default circle, -2 follow input-field rounding - # outer_color = rgb(151515) - # inner_color = rgb(200, 200, 200) - # font_color = rgb(10, 10, 10) - # fade_on_empty = true - # fade_timeout = 50 # Milliseconds before fade_on_empty is triggered. - # hide_input = true - # rounding = -1 # -1 means complete rounding (circle/oval) - # check_color = rgb(100, 118, 48) - # fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color - # placeholder_text = - # fail_text = <i><b>($ATTEMPTS)</b></i> # can be set to empty - # fail_transition = 50 # transition time in ms between normal outer_color and fail_color - # capslock_color = -1 - # numlock_color = -1 - # bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) - # invert_numlock = false # change color if numlock is off - # swap_font_color = false # see below - - position = 0, -20 - halign = center - valign = center -} diff --git a/.config/hypr/hyprpaper.conf b/.config/hypr/hyprpaper.conf deleted file mode 100644 index 98f7b7c..0000000 --- a/.config/hypr/hyprpaper.conf +++ /dev/null @@ -1,2 +0,0 @@ -preload = $HOME/dotfiles/files/wallpapers/tlou.png -wallpaper = eDP-1,contain:$HOME/dotfiles/files/wallpapers/tlou.png diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf deleted file mode 100644 index ae2f7ab..0000000 --- a/.config/kitty/kitty.conf +++ /dev/null @@ -1,13 +0,0 @@ -cursor_blink_interval 0.5 -background_opacity 0.85 - -shell_integration enabled -shell /bin/zsh - -# padding -window_padding_width 3 - -# BEGIN_KITTY_THEME -# Bliss -include current-theme.conf -# END_KITTY_THEME diff --git a/.config/mango/config.conf b/.config/mango/config.conf new file mode 100644 index 0000000..9d20b25 --- /dev/null +++ b/.config/mango/config.conf @@ -0,0 +1,258 @@ +# More option see https://github.com/DreamMaoMao/mango/wiki/ + +# Window effect +blur=0 +blur_layer=0 +blur_optimized=1 +blur_params_num_passes = 2 +blur_params_radius = 5 +blur_params_noise = 0.02 +blur_params_brightness = 0.9 +blur_params_contrast = 0.9 +blur_params_saturation = 1.2 + +shadows = 0 +layer_shadows = 0 +shadow_only_floating = 1 +shadows_size = 10 +shadows_blur = 15 +shadows_position_x = 0 +shadows_position_y = 0 +shadowscolor= 0x000000ff + +border_radius=0 +no_radius_when_single=0 +focused_opacity=1.0 +unfocused_opacity=1.0 + +# Animation Configuration(support type:zoom,slide) +# tag_animation_direction: 1-horizontal,0-vertical +animations=1 +layer_animations=1 +animation_type_open=slide +animation_type_close=slide +animation_fade_in=1 +animation_fade_out=1 +tag_animation_direction=1 +zoom_initial_ratio=0.4 +zoom_end_ratio=0.8 +fadein_begin_opacity=0.5 +fadeout_begin_opacity=0.8 +animation_duration_move=500 +animation_duration_open=400 +animation_duration_tag=350 +animation_duration_close=800 +animation_duration_focus=0 +animation_curve_open=0.46,1.0,0.29,1 +animation_curve_move=0.46,1.0,0.29,1 +animation_curve_tag=0.46,1.0,0.29,1 +animation_curve_close=0.08,0.92,0,1 +animation_curve_focus=0.46,1.0,0.29,1 +animation_curve_opafadeout=0.5,0.5,0.5,0.5 +animation_curve_opafadein=0.46,1.0,0.29,1 + +# Scroller Layout Setting +scroller_structs=20 +scroller_default_proportion=0.8 +scroller_focus_center=0 +scroller_prefer_center=0 +edge_scroller_pointer_focus=1 +scroller_default_proportion_single=1.0 +scroller_proportion_preset=0.5,0.8,1.0 + +# Master-Stack Layout Setting +new_is_master=1 +default_mfact=0.55 +default_nmaster=1 +smartgaps=0 + +# Overview Setting +hotarea_size=10 +enable_hotarea=1 +ov_tab_mode=0 +overviewgappi=5 +overviewgappo=30 + +# Misc +no_border_when_single=1 +axis_bind_apply_timeout=100 +focus_on_activate=1 +idleinhibit_ignore_visible=0 +sloppyfocus=1 +warpcursor=1 +focus_cross_monitor=0 +focus_cross_tag=0 +enable_floating_snap=0 +snap_distance=30 +cursor_size=24 +drag_tile_to_tile=1 + +# keyboard +repeat_rate=30 +repeat_delay=300 +numlockon=0 +xkb_rules_layout=us +xkb_rules_options=ctrl:nocaps + +# Trackpad +# need relogin to make it apply +disable_trackpad=0 +tap_to_click=1 +tap_and_drag=1 +drag_lock=1 +trackpad_natural_scrolling=1 +disable_while_typing=0 +left_handed=0 +middle_button_emulation=0 +swipe_min_threshold=1 + +# mouse +# need relogin to make it apply +mouse_natural_scrolling=0 + +# Appearance +gappih=0 +gappiv=0 +gappoh=0 +gappov=0 +scratchpad_width_ratio=0.8 +scratchpad_height_ratio=0.9 +borderpx=2 +rootcolor=0x201b14ff +bordercolor=0x44444400 +focuscolor=0x444444ff +maximizescreencolor=0x89aa61ff +urgentcolor=0xad401fff +scratchpadcolor=0x516c93ff +globalcolor=0xb153a7ff +overlaycolor=0x14a57cff + +# layout support: +# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller +tagrule=id:1,layout_name:tile +tagrule=id:2,layout_name:tile +tagrule=id:3,layout_name:tile +tagrule=id:4,layout_name:tile +tagrule=id:5,layout_name:tile +tagrule=id:6,layout_name:tile +tagrule=id:7,layout_name:tile +tagrule=id:8,layout_name:tile +tagrule=id:9,layout_name:tile + +# Key Bindings +# key name refer to `xev` or `wev` command output, +# mod keys name: super,ctrl,alt,shift,none + +# reload config +bind=SUPER,r,reload_config + +# menu and terminal and browser +bind=SUPER,Return,spawn,swenu-run +bind=SUPER,w,spawn,librewolf +bind=SUPER,a,spawn,foot + +# exit +bind=SUPER,m,quit +bind=SUPER,d,killclient, + +# switch window focus +bind=SUPER,Tab,focusstack,next +bind=SUPER,h,focusdir,left +bind=SUPER,j,focusdir,down +bind=SUPER,k,focusdir,up +bind=SUPER,l,focusdir,right + +# swap window +bind=SUPER+SHIFT,h,exchange_client,left +bind=SUPER+SHIFT,j,exchange_client,down +bind=SUPER+SHIFT,k,exchange_client,up +bind=SUPER+SHIFT,l,exchange_client,right + +# switch window status +bind=SUPER,g,toggleglobal, +bind=ALT,Tab,toggleoverview, +bind=SUPER,v,togglefloating, +bind=ALT,a,togglemaximizescreen, +bind=SUPER,f,togglefullscreen, +bind=ALT+SHIFT,f,togglefakefullscreen, +bind=SUPER,i,minimized, +bind=SUPER,o,toggleoverlay, +bind=SUPER+SHIFT,I,restore_minimized +bind=ALT,z,toggle_scratchpad + +# scroller layout +bind=ALT,e,set_proportion,1.0 +bind=ALT,x,switch_proportion_preset, + +# switch layout +bind=SUPER,n,switch_layout + +# tag switch +bind=SUPER,Left,viewtoleft,0 +bind=CTRL,Left,viewtoleft_have_client,0 +bind=SUPER,Right,viewtoright,0 +bind=CTRL,Right,viewtoright_have_client,0 +bind=CTRL+SUPER,Left,tagtoleft,0 +bind=CTRL+SUPER,Right,tagtoright,0 + +bind=SUPER,1,view,1,0 +bind=SUPER,2,view,2,0 +bind=SUPER,3,view,3,0 +bind=SUPER,4,view,4,0 +bind=SUPER,5,view,5,0 +bind=SUPER,6,view,6,0 +bind=SUPER,7,view,7,0 +bind=SUPER,8,view,8,0 +bind=SUPER,9,view,9,0 + +# tag: move client to the tag and focus it +# tagsilent: move client to the tag and not focus it +# bind=Alt,1,tagsilent,1 +bind=SUPER+SHIFT,1,tagsilent,1,0 +bind=SUPER+SHIFT,2,tagsilent,2,0 +bind=SUPER+SHIFT,3,tagsilent,3,0 +bind=SUPER+SHIFT,4,tagsilent,4,0 +bind=SUPER+SHIFT,5,tagsilent,5,0 +bind=SUPER+SHIFT,6,tagsilent,6,0 +bind=SUPER+SHIFT,7,tagsilent,7,0 +bind=SUPER+SHIFT,8,tagsilent,8,0 +bind=SUPER+SHIFT,9,tagsilent,9,0 + +# monitor switch +bind=alt+shift,Left,focusmon,left +bind=alt+shift,Right,focusmon,right +bind=SUPER+Alt,Left,tagmon,left +bind=SUPER+Alt,Right,tagmon,right + +# gaps +bind=ALT+SHIFT,X,incgaps,1 +bind=ALT+SHIFT,Z,incgaps,-1 +bind=ALT+SHIFT,R,togglegaps + +# movewin +bind=CTRL+SHIFT,Up,movewin,+0,-50 +bind=CTRL+SHIFT,Down,movewin,+0,+50 +bind=CTRL+SHIFT,Left,movewin,-50,+0 +bind=CTRL+SHIFT,Right,movewin,+50,+0 + +# resizewin +bind=CTRL+ALT,Up,resizewin,+0,-50 +bind=CTRL+ALT,Down,resizewin,+0,+50 +bind=CTRL+ALT,Left,resizewin,-50,+0 +bind=CTRL+ALT,Right,resizewin,+50,+0 + +# Mouse Button Bindings +# btn_left and btn_right can't bind none mod key +mousebind=SUPER,btn_left,moveresize,curmove +mousebind=NONE,btn_middle,togglemaximizescreen,0 +mousebind=SUPER,btn_right,moveresize,curresize + + +# Axis Bindings +axisbind=SUPER,UP,viewtoleft_have_client +axisbind=SUPER,DOWN,viewtoright_have_client + + +# layer rule +layerrule=animation_type_open:zoom,layer_name:rofi +layerrule=animation_type_close:zoom,layer_name:rofi diff --git a/.config/nvim/.gitignore b/.config/nvim/.gitignore deleted file mode 100644 index e033bc6..0000000 --- a/.config/nvim/.gitignore +++ /dev/null @@ -1 +0,0 @@ -lazy-lock.json diff --git a/.config/nvim/TODO b/.config/nvim/TODO deleted file mode 100644 index 655d2e7..0000000 --- a/.config/nvim/TODO +++ /dev/null @@ -1,5 +0,0 @@ -- save more than one yank (emacs killring like) -- undo chunks typed in insert mode -- argument preview in status bar -- next snippet argument -- fix yank taking time diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua deleted file mode 100644 index c4af29d..0000000 --- a/.config/nvim/init.lua +++ /dev/null @@ -1,24 +0,0 @@ -require('options') -require('keymaps') -require('autocmds') - -local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' -if not vim.loop.fs_stat(lazypath) then - vim.fn.system { - 'git', - 'clone', - '--filter=blob:none', - 'https://github.com/folke/lazy.nvim.git', - '--branch=stable', -- latest stable release - lazypath, - } -end -vim.opt.rtp:prepend(lazypath) - -require('lazy').setup( - 'plugins', - { - change_detection = { enabled = false } - } -) - diff --git a/.config/nvim/lua/autocmds.lua b/.config/nvim/lua/autocmds.lua deleted file mode 100644 index bff808a..0000000 --- a/.config/nvim/lua/autocmds.lua +++ /dev/null @@ -1,22 +0,0 @@ --- Wrap and check for spell in text filetypes. -vim.api.nvim_create_autocmd('FileType', { - group = vim.api.nvim_create_augroup('wrap_spell', { clear = true }), - pattern = { 'gitcommit', 'markdown' }, - callback = function() - vim.opt_local.wrap = true - vim.opt_local.spell = true - end, -}) - --- Go to last loc when opening a buffer. -vim.api.nvim_create_autocmd('BufReadPost', { - group = vim.api.nvim_create_augroup('last_loc', { clear = true }), - callback = function() - local mark = vim.api.nvim_buf_get_mark(0, '"') - local lcount = vim.api.nvim_buf_line_count(0) - if mark[1] > 0 and mark[1] <= lcount then - -- Protected call to catch errors. - pcall(vim.api.nvim_win_set_cursor, 0, mark) - end - end, -}) diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua deleted file mode 100644 index 7b5a27a..0000000 --- a/.config/nvim/lua/keymaps.lua +++ /dev/null @@ -1,49 +0,0 @@ --- Remap for dealing with word wrap -vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) -vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) - --- Move to window using the <C-hjkl> keys -vim.keymap.set('n', '<C-h>', '<C-w>h', { desc = 'Switch to left window' }) -vim.keymap.set('n', '<C-j>', '<C-w>j', { desc = 'Switch to lower window' }) -vim.keymap.set('n', '<C-k>', '<C-w>k', { desc = 'Switch to upper window' }) -vim.keymap.set('n', '<C-l>', '<C-w>l', { desc = 'Switch to right window' }) - --- Quickfix list -vim.keymap.set('n', '[q', vim.cmd.cprev, { desc = 'Previous quickfix item' }) -vim.keymap.set('n', ']q', vim.cmd.cnext, { desc = 'Next quickfix item' }) - --- Diagnostics -vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to prev diagnostic message' }) -vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' }) -vim.keymap.set('n', 'gl', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' }) -vim.keymap.set('n', '<leader>q', vim.diagnostic.setqflist, { desc = 'Open diagnostic quickfix list' }) - --- Nagivation in insert -vim.keymap.set({'i', 'c'}, '<C-h>', '<Left>', { desc = "Forward char" }) -vim.keymap.set({'i', 'c'}, '<C-j>', '<C-o>gj', { desc = "Up char" }) -vim.keymap.set({'i', 'c'}, '<C-k>', '<C-o>gk', { desc = "Down char" }) -vim.keymap.set({'i', 'c'}, '<C-l>', '<Right>', { desc = "Backward char" }) - --- <C-g> to exit -vim.keymap.set({'i', 'n', 'v', 'c'}, '<C-g>', '<Esc>', { desc = "Exit mode" }) -vim.cmd('cmap <C-g> <C-c>') - --- C-d to delete -vim.keymap.set('i', '<C-d>', '<Del>', { desc = "Delete forward char"}) - --- Jump forward and back -vim.keymap.set('n', '<C-l>', '$', { desc = "Delete forward char"}) -vim.keymap.set('n', '<C-h>', '_', { desc = "Delete forward char"}) - --- File managerment -vim.keymap.set('n', '<leader>e', ':e <C-R>=expand("%:p:h") . "/"<CR>', { desc = 'Open file in current directory' }) - --- Insert at correct tab -vim.keymap.set("n", "i", function() - local line = vim.api.nvim_get_current_line() - if #line == 0 then - return [["_cc]] - else - return "i" - end -end, { expr = true, noremap = true }) diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua deleted file mode 100644 index d0adefb..0000000 --- a/.config/nvim/lua/options.lua +++ /dev/null @@ -1,40 +0,0 @@ --- tabs -vim.opt.tabstop = 4 -vim.opt.shiftwidth = 0 -vim.opt.expandtab = false -vim.opt.autoindent = true -vim.opt.smartindent = true --- display cursor at front of tabs -vim.opt.list = true -vim.opt.listchars = { tab = " " } - -vim.opt.shortmess:append { s = true, I = true } - -vim.g.mapleader = ' ' -vim.g.maplocalleader = '\\' - --- line numbers -vim.opt.signcolumn="number" -vim.opt.number=true -vim.opt.fillchars:append({ eob = " " }) -vim.opt.scrolloff = 7 - -vim.opt.splitright = true - -vim.opt.cinoptions:append("g0") -vim.opt.cinoptions:append("L0") - -vim.opt.cursorline = true - -vim.diagnostic.config({ - virtual_text = true, -}) - --- undo -vim.opt.swapfile = false -vim.opt.backup = false -vim.opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir" -vim.opt.undofile = true - --- misc -vim.opt.updatetime = 700 diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua deleted file mode 100644 index f515e17..0000000 --- a/.config/nvim/lua/plugins/cmp.lua +++ /dev/null @@ -1,53 +0,0 @@ -return { - 'hrsh7th/nvim-cmp', - event = { 'InsertEnter', 'CmdlineEnter' }, - dependencies = { - 'saadparwaiz1/cmp_luasnip', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-cmdline', - 'hrsh7th/cmp-path', - }, - opts = function() - local cmp = require('cmp') - local select_opts = {behavior = cmp.SelectBehavior.Select} - - return { - snippet = { - expand = function(args) - require('luasnip').lsp_expand(args.body) - end, - }, - mapping = { - ['<C-p>'] = cmp.mapping.select_prev_item(select_opts), - ['<C-n>'] = cmp.mapping.select_next_item(select_opts), - ['<C-u>'] = cmp.mapping.scroll_docs(-4), - ['<C-d>'] = cmp.mapping.scroll_docs(4), - ['<C-e>'] = cmp.mapping.abort(), - ['<Tab>'] = cmp.mapping.confirm({select = true}), - }, - sources = cmp.config.sources({ - { name = 'nvim_lsp', max_item_count = 5, keyword_length = 1 }, - { name = "luasnip", max_item_count = 5, keyword_length = 2 }, - }, { - { name = 'buffer', max_item_count = 2, keyword_length = 3 }, - }, { - { name = 'path', max_item_count = 2 }, - }), - sorting = { - comparators = { - cmp.config.compare.offset, - cmp.config.compare.exact, - --cmp.config.compare.scopes, - cmp.config.compare.score, - - cmp.config.compare.locality, - cmp.config.compare.kind, - --cmp.config.compare.sort_text, - cmp.config.compare.length, - cmp.config.compare.order, - }, - }, - } - end, -} - diff --git a/.config/nvim/lua/plugins/colorscheme.lua b/.config/nvim/lua/plugins/colorscheme.lua deleted file mode 100644 index acdc3ee..0000000 --- a/.config/nvim/lua/plugins/colorscheme.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "folke/tokyonight.nvim", - config = function () - vim.cmd[[colorscheme tokyonight-moon]] - end -} diff --git a/.config/nvim/lua/plugins/comment.lua b/.config/nvim/lua/plugins/comment.lua deleted file mode 100644 index 4fbab38..0000000 --- a/.config/nvim/lua/plugins/comment.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - 'numToStr/Comment.nvim', - config = true, -} diff --git a/.config/nvim/lua/plugins/fidget.lua b/.config/nvim/lua/plugins/fidget.lua deleted file mode 100644 index facf28b..0000000 --- a/.config/nvim/lua/plugins/fidget.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - 'j-hui/fidget.nvim', - tag = 'v1.4.1', - lazy = true, - opts = { - progress = { - display = { - progress_icon = { pattern = 'line', period = 0.7 }, - }, - }, - notification = { - window = { - winblend = 0, - }, - }, - }, -} diff --git a/.config/nvim/lua/plugins/glance.lua b/.config/nvim/lua/plugins/glance.lua deleted file mode 100644 index 9c43939..0000000 --- a/.config/nvim/lua/plugins/glance.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - 'dnlhc/glance.nvim', - cmd = 'Glance', - config = function() - require("glance").setup({}) - end, - keys = { - { 'gr', '<CMD>Glance references<CR>' } - } -} diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua deleted file mode 100644 index a564707..0000000 --- a/.config/nvim/lua/plugins/init.lua +++ /dev/null @@ -1 +0,0 @@ -return {} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua deleted file mode 100644 index ee8c464..0000000 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ /dev/null @@ -1,96 +0,0 @@ -local on_attach = function(client, bufnr) - local keymap = function(mode, keys, func, opts) - opts.buffer = bufnr - vim.keymap.set(mode, keys, func, opts) - end - - keymap('n', 'gd', vim.lsp.buf.definition, { desc = 'Go to definition' }) - keymap('n', 'gD', vim.lsp.buf.declaration, { desc = 'Go to declaration' }) - keymap('n', 'gI', vim.lsp.buf.implementation, { desc = 'Go to implementation' }) - keymap('n', 'gy', vim.lsp.buf.type_definition, { desc = 'Go to type definition' }) - -- keymap('n', 'gr', vim.lsp.buf.references, { desc = 'List references' }) - - keymap('n', '<leader>ds', vim.lsp.buf.document_symbol, { desc = 'List document symbols' }) - keymap('n', '<leader>ws', vim.lsp.buf.workspace_symbol, { desc = 'List workspace symbols' }) - - keymap('n', 'K', vim.lsp.buf.hover, { desc = 'Show documentation' }) - keymap('n', 'gK', vim.lsp.buf.signature_help, { desc = 'Show signature' }) - keymap('i', '<C-s>', vim.lsp.buf.signature_help, { desc = 'Show signature' }) - - keymap('n', '<leader>rn', vim.lsp.buf.rename, { desc = 'Rename symbol' }) - keymap('n', '<leader>ca', vim.lsp.buf.code_action, { desc = 'Code action' }) - - keymap('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, { desc = 'Add workspace folder' }) - keymap('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, { desc = 'Remove workspace folder' }) - keymap('n', '<leader>cf', vim.cmd.ClangdSwitchSourceHeader, { desc = 'Switch source with header' }) - keymap( - 'n', - '<leader>wl', - function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, - { desc = 'List workspace folders' } - ) -end - -return { - 'neovim/nvim-lspconfig', - dependencies = { - "hrsh7th/cmp-nvim-lsp", - 'j-hui/fidget.nvim', - }, - ft = { 'c', 'cpp', 'lua', 'zig' }, - opts = { - servers = { - lua_ls = { - settings = { - Lua = { - workspace = { checkThirdParty = false }, - telemetry = { enable = false }, - }, - }, - }, - clangd = { - settings = {}, - cmd = { "clangd", "--header-insertion=never" }, - }, - zls = { - settings = {}, - }, - }, - }, - config = function(_, opts) - local lspconfig = require('lspconfig'); - local capabilities = require('cmp_nvim_lsp').default_capabilities() - - for name, conf in pairs(opts.servers) do - lspconfig[name].setup { - capabilities = capabilities, - settings = conf.settings, - on_attach = function(client, bufnr) - local _, err = pcall(on_attach, client, bufnr) - if err then - vim.notify('[on_attach] error: ' .. err, vim.log.levels.ERROR) - else - vim.notify('[on_attach] ' .. client.name .. ' attached to buffer ' .. bufnr, vim.log.levels.INFO) - end - end, - } - end - - -- Autohighlight symbol under cursor - vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { - callback = function() - local bufnr = vim.api.nvim_get_current_buf() - if next(vim.lsp.get_clients({ buffer = bufnr })) then - vim.lsp.buf.document_highlight() - end - end, - }) - -- Clear highlights when cursor moves - vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, { - callback = function() - vim.lsp.buf.clear_references() - end, - }) - - end -} diff --git a/.config/nvim/lua/plugins/luadev.lua b/.config/nvim/lua/plugins/luadev.lua deleted file mode 100644 index 7011f66..0000000 --- a/.config/nvim/lua/plugins/luadev.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "folke/lazydev.nvim", - ft = "lua", - config = true, -} diff --git a/.config/nvim/lua/plugins/luasnip.lua b/.config/nvim/lua/plugins/luasnip.lua deleted file mode 100644 index 8ed8c24..0000000 --- a/.config/nvim/lua/plugins/luasnip.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - 'L3MON4D3/LuaSnip', - lazy = true, - dependencies = { 'rafamadriz/friendly-snippets' }, - keys = { - { '<M-h>', function() require('luasnip').jump(-1) end, mode = { 'i', 's' } }, - { '<M-l>', function() require('luasnip').jump(1) end, mode = { 'i', 's' } }, - }, - config = function() - require('luasnip.loaders.from_vscode').lazy_load() - end, -} diff --git a/.config/nvim/lua/plugins/multicursor.lua b/.config/nvim/lua/plugins/multicursor.lua deleted file mode 100644 index 75f8b6e..0000000 --- a/.config/nvim/lua/plugins/multicursor.lua +++ /dev/null @@ -1,61 +0,0 @@ -return { - "jake-stewart/multicursor.nvim", - branch = "1.0", - config = function() - local mc = require("multicursor-nvim") - mc.setup() - - local set = vim.keymap.set - - -- Add or skip cursor above/below the main cursor. - set({"n", "x"}, "<up>", function() mc.lineAddCursor(-1) end) - set({"n", "x"}, "<down>", function() mc.lineAddCursor(1) end) - set({"n", "x"}, "<leader><up>", function() mc.lineSkipCursor(-1) end) - set({"n", "x"}, "<leader><down>", function() mc.lineSkipCursor(1) end) - - -- Add or skip adding a new cursor by matching word/selection - set({"n", "x"}, "<leader>n", function() mc.matchAddCursor(1) end) - set({"n", "x"}, "<leader>s", function() mc.matchSkipCursor(1) end) - set({"n", "x"}, "<leader>N", function() mc.matchAddCursor(-1) end) - set({"n", "x"}, "<leader>S", function() mc.matchSkipCursor(-1) end) - - -- Add and remove cursors with control + left click. - set("n", "<c-leftmouse>", mc.handleMouse) - set("n", "<c-leftdrag>", mc.handleMouseDrag) - set("n", "<c-leftrelease>", mc.handleMouseRelease) - - -- Disable and enable cursors. - set({"n", "x"}, "<c-q>", mc.toggleCursor) - - -- Mappings defined in a keymap layer only apply when there are - -- multiple cursors. This lets you have overlapping mappings. - mc.addKeymapLayer(function(layerSet) - - -- Select a different cursor as the main one. - layerSet({"n", "x"}, "<left>", mc.prevCursor) - layerSet({"n", "x"}, "<right>", mc.nextCursor) - - -- Delete the main cursor. - layerSet({"n", "x"}, "<leader>x", mc.deleteCursor) - - -- Enable and clear cursors using escape. - layerSet("n", "<esc>", function() - if not mc.cursorsEnabled() then - mc.enableCursors() - else - mc.clearCursors() - end - end) - end) - - -- Customize how cursors look. - local hl = vim.api.nvim_set_hl - hl(0, "MultiCursorCursor", { reverse = true }) - hl(0, "MultiCursorVisual", { link = "Visual" }) - hl(0, "MultiCursorSign", { link = "SignColumn"}) - hl(0, "MultiCursorMatchPreview", { link = "Search" }) - hl(0, "MultiCursorDisabledCursor", { reverse = true }) - hl(0, "MultiCursorDisabledVisual", { link = "Visual" }) - hl(0, "MultiCursorDisabledSign", { link = "SignColumn"}) - end -} diff --git a/.config/nvim/lua/plugins/neogit.lua b/.config/nvim/lua/plugins/neogit.lua deleted file mode 100644 index 0f5f90e..0000000 --- a/.config/nvim/lua/plugins/neogit.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "NeogitOrg/neogit", - dependencies = { - "nvim-lua/plenary.nvim", -- required - "sindrets/diffview.nvim", -- optional - Diff integration - "nvim-telescope/telescope.nvim", -- optional - }, -} diff --git a/.config/nvim/lua/plugins/pair.lua b/.config/nvim/lua/plugins/pair.lua deleted file mode 100644 index 5698563..0000000 --- a/.config/nvim/lua/plugins/pair.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'windwp/nvim-autopairs', - event = "InsertEnter", - config = true -} diff --git a/.config/nvim/lua/plugins/scroll.lua b/.config/nvim/lua/plugins/scroll.lua deleted file mode 100644 index 4de5939..0000000 --- a/.config/nvim/lua/plugins/scroll.lua +++ /dev/null @@ -1,23 +0,0 @@ -return { - "karb94/neoscroll.nvim", - opts = { - mappings = { -- Keys to be mapped to their corresponding default scrolling animation - '<C-u>', '<C-d>', - '<C-b>', '<C-f>', - '<C-y>', '<C-e>', - 'zt', 'zz', 'zb', - }, - hide_cursor = true, -- Hide cursor while scrolling - stop_eof = true, -- Stop at <EOF> when scrolling downwards - respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file - cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further - duration_multiplier = 1.0, -- Global duration multiplier - easing = 'linear', -- Default easing function - pre_hook = nil, -- Function to run before the scrolling animation starts - post_hook = nil, -- Function to run after the scrolling animation ends - performance_mode = false, -- Disable "Performance Mode" on all buffers. - ignored_events = { -- Events ignored while scrolling - 'WinScrolled', 'CursorMoved' - }, - }, -} diff --git a/.config/nvim/lua/plugins/signature.lua b/.config/nvim/lua/plugins/signature.lua deleted file mode 100644 index 0d0a174..0000000 --- a/.config/nvim/lua/plugins/signature.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - "ray-x/lsp_signature.nvim", - event = "InsertEnter", - opts = { - bind = true, - handler_opts = { - border = "rounded" - } - }, -} diff --git a/.config/nvim/lua/plugins/surround.lua b/.config/nvim/lua/plugins/surround.lua deleted file mode 100644 index 7504211..0000000 --- a/.config/nvim/lua/plugins/surround.lua +++ /dev/null @@ -1,21 +0,0 @@ -return { - "echasnovski/mini.surround", - event = "VeryLazy", - config = function() - require("mini.surround").setup({ - mappings = { - add = '', - delete = 'ds', - find = '', - find_left = '', - highlight = '', - replace = '', - update_n_lines = '', - - -- Add this only if you don't want to use extended mappings - suffix_last = '', - suffix_next = '', - } - }) - end -} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 264a77b..0000000 --- a/.config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,45 +0,0 @@ -return { - 'nvim-telescope/telescope.nvim', - cmd = 'Telescope', - dependencies = { - 'nvim-lua/plenary.nvim', - }, - keys = function() - local lazy_telescope = function(builtin) - return function(...) - if builtin == 'find_files_custom' then - require('telescope.builtin').find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git', '-g', '!external/', '-g', '!build/' }}) - else - require('telescope.builtin')[builtin](...) - end - end - end - return { - { '<leader>fb', lazy_telescope('buffers'), desc = 'Find buffers' }, - { '<leader>fd', lazy_telescope('diagnostics'), desc = 'Find diagnostics' }, - { '<leader>fF', lazy_telescope('git_files'), desc = 'Find Git files' }, - { '<leader>fG', lazy_telescope('git_status'), desc = 'Find Git status' }, - { '<leader>ff', lazy_telescope('find_files_custom'), desc = 'Find files' }, - { '<leader>fg', lazy_telescope('live_grep'), desc = 'Find files by content' }, - { '<leader>fh', lazy_telescope('help_tags'), desc = 'Find help tags' }, - { '<leader>fo', lazy_telescope('oldfiles'), desc = 'Find recently opened files' }, - { '<leader>fw', lazy_telescope('grep_string'), desc = 'Find word in buffer' }, - { '<leader>f/', lazy_telescope('current_buffer_fuzzy_find'), desc = 'Find fuzzy match in current buffer' }, - } - end, - config = function() - local telescope = require('telescope') - telescope.setup({ - defaults = { - mappings = { - i = { - ["<C-g>"] = require('telescope.actions').close, - }, - n = { - ["<C-g>"] = require('telescope.actions').close, - }, - }, - }, - }) - end, -} diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index 268e13d..0000000 --- a/.config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - 'nvim-treesitter/nvim-treesitter', - ft = { 'c', 'cpp', 'zig', 'lua', 'rust' }, - build = ':TSUpdate', - config = function() - require('nvim-treesitter.configs').setup { - -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'lua', 'rust', 'vimdoc', 'vim', 'zig' }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - auto_install = false, - - highlight = { - enable = true, - disable = function(_, bufnr) return vim.api.nvim_buf_line_count(bufnr) > 10000 end, - additional_vim_regex_highlighting = false, - }, - } - end, -} diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua deleted file mode 100644 index 3741f30..0000000 --- a/.config/nvim/lua/plugins/trouble.lua +++ /dev/null @@ -1,37 +0,0 @@ -return { - "folke/trouble.nvim", - opts = {}, -- for default options, refer to the configuration section for custom setup. - cmd = "Trouble", - keys = { - { - "<leader>xx", - "<cmd>Trouble diagnostics toggle<cr>", - desc = "Diagnostics (Trouble)", - }, - { - "<leader>xX", - "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", - desc = "Buffer Diagnostics (Trouble)", - }, - { - "<leader>cs", - "<cmd>Trouble symbols toggle focus=false<cr>", - desc = "Symbols (Trouble)", - }, - { - "<leader>cl", - "<cmd>Trouble lsp toggle focus=false win.position=right<cr>", - desc = "LSP Definitions / references / ... (Trouble)", - }, - { - "<leader>xL", - "<cmd>Trouble loclist toggle<cr>", - desc = "Location List (Trouble)", - }, - { - "<leader>xQ", - "<cmd>Trouble qflist toggle<cr>", - desc = "Quickfix List (Trouble)", - }, - }, -} diff --git a/.config/nvim/lua/plugins/yank.lua b/.config/nvim/lua/plugins/yank.lua deleted file mode 100644 index cdf0f15..0000000 --- a/.config/nvim/lua/plugins/yank.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - "svban/YankAssassin.nvim", - event = "VeryLazy", - config = function() - require("YankAssassin").setup { - auto_normal = true, -- if true, autocmds are used. Whenever y is used in normal mode, the cursor doesn't move to start - auto_visual = true, -- if true, autocmds are used. Whenever y is used in visual mode, the cursor doesn't move to start - } - end, -} diff --git a/.config/pipewire.conf.d/10-wireplumber.conf b/.config/pipewire.conf.d/10-wireplumber.conf deleted file mode 100644 index 50c64d3..0000000 --- a/.config/pipewire.conf.d/10-wireplumber.conf +++ /dev/null @@ -1 +0,0 @@ -context.exec = [ { path = "/usr/bin/wireplumber" args = "" } ] diff --git a/.config/pipewire.conf.d/20-pipewire-pulse.conf b/.config/pipewire.conf.d/20-pipewire-pulse.conf deleted file mode 100644 index 4e650f7..0000000 --- a/.config/pipewire.conf.d/20-pipewire-pulse.conf +++ /dev/null @@ -1 +0,0 @@ -context.exec = [ { path = "/usr/bin/pipewire" args = "-c pipewire-pulse.conf" } ] diff --git a/.config/sway/config b/.config/sway/config deleted file mode 100644 index 1cca1e9..0000000 --- a/.config/sway/config +++ /dev/null @@ -1,233 +0,0 @@ -### Variables - -set $mod Mod4 - -# home row direction keys, like vim -set $left h -set $down j -set $up k -set $right l - -set $term alacritty -set $menu swenu-run -set $browser firefox - -# init -exec startup - -### Output configuration -# -# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/) -output * bg ~/dotfiles/files/wallpapers/sunset.jpg fill -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# -# You can get the names of your outputs by running: swaymsg -t get_outputs -output eDP-1 position -0,0 -# output HDMI-A-1 position -0,0 mode 1920x1080 - -### Idle configuration -exec swayidle -w \ - timeout 150 'sleep_computer' \ - -### Input configuration -input type:touchpad { - natural_scroll enabled - dwt disabled -} - -input type:keyboard { - xkb_options ctrl:nocaps - repeat_delay 300 - repeat_rate 30 -} - -### Style -default_border none - -### Key bindings -# -# Basics: -# - # Start a terminal - bindsym $mod+a exec $term - - bindsym $mod+i exec sysinfo - - # Kill focused window - bindsym $mod+d kill - - # emacs - bindsym $mod+e exec open-emacs - bindsym $mod+Shift+e exec open-emacs-project - - # Start your launcher - bindsym $mod+Return exec $menu - - # Start your browser - bindsym $mod+w exec $browser - - # Start screen locker - bindsym $mod+Ctrl+l exec lock - - # screenshot - bindsym $mod+s exec screenshot -save - bindsym $mod+Shift+s exec screenshot - - # Drag floating windows by holding down $mod and left mouse button. - floating_modifier $mod normal - - # Reload the configuration file - bindsym $mod+Shift+c reload - - # Exit sway (logs you out of your Wayland session) - bindsym $mod+Shift+q exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' -# -# Moving around: -# - # Move your focus around - bindsym $mod+$left focus left - bindsym $mod+$down focus down - bindsym $mod+$up focus up - bindsym $mod+$right focus right - # Or use $mod+[up|down|left|right] - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right - - # Move the focused window with the same, but add Shift - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right - # Ditto, with arrow keys - bindsym $mod+Shift+Left move left - bindsym $mod+Shift+Down move down - bindsym $mod+Shift+Up move up - bindsym $mod+Shift+Right move right -# -# Workspaces: -# - # Switch to workspace - bindsym $mod+1 workspace number 1 - bindsym $mod+2 workspace number 2 - bindsym $mod+3 workspace number 3 - bindsym $mod+4 workspace number 4 - bindsym $mod+5 workspace number 5 - bindsym $mod+6 workspace number 6 - bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 - # Move focused container to workspace - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 - bindsym $mod+Shift+5 move container to workspace number 5 - bindsym $mod+Shift+6 move container to workspace number 6 - bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 - # Note: workspaces can have any name you want, not just numbers. - # We just use 1-10 as the default. -# -# Layout stuff: -# - # You can "split" the current object of your focus with - # $mod+b or $mod+v, for horizontal and vertical splits - # respectively. - bindsym $mod+b splith - # bindsym $mod+v splitv - - # Switch the current container between different layout styles - # bindsym $mod+s layout stacking - # bindsym $mod+w layout tabbed - # bindsym $mod+e layout toggle split - - # Make the current focus fullscreen - bindsym $mod+f fullscreen - - # Toggle the current focus between tiling and floating mode - bindsym $mod+v floating toggle - - # Swap focus between the tiling area and the floating area - bindsym $mod+space focus mode_toggle - - # Move focus to the parent container - # bindsym $mod+a focus parent -# -# Scratchpad: -# - # Sway has a "scratchpad", which is a bag of holding for windows. - # You can send windows there and get them back later. - - # Move the currently focused window to the scratchpad - bindsym $mod+Shift+minus move scratchpad - - # Show the next scratchpad window or hide the focused scratchpad window. - # If there are multiple scratchpad windows, this command cycles through them. - bindsym $mod+minus scratchpad show -# -# Resizing containers: -# -mode "resize" { - # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - - # Ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - - # Return to default mode - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+r mode "resize" -# -# Utilities: -# - # Special keys to adjust volume via PulseAudio - bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle - bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% - bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% - bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle - - # Special keys to adjust brightness via brightnessctl - bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- - bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ - - # Special key to take a screenshot with grim - bindsym Print exec grim - -# -# Status Bar: -# -# Read `man 5 sway-bar` for more information about this section. -# bar { -# position top - -# # When the status_command prints a new line to stdout, swaybar updates. -# # The default just shows the current date and time. -# status_command while true; do echo $(TERM="" sysinfo | tr '\n' ' '); sleep 1; done - -# colors { -# statusline #ffffff -# background #323232 -# inactive_workspace #32323200 #32323200 #5c5c5c -# } -# } - -include @sysconfdir@/sway/config.d/* diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf deleted file mode 100644 index 2d25dd9..0000000 --- a/.config/tmux/tmux.conf +++ /dev/null @@ -1,5 +0,0 @@ -# set -g status-position top -# set -g status-style 'bg=purple' -set -g status off - -bind r source-file ~/.config/tmux/tmux.conf |
