diff --git a/config/niri/' b/config/niri/' new file mode 100644 index 0000000..bfd0360 --- /dev/null +++ b/config/niri/' @@ -0,0 +1,262 @@ +input { + keyboard { + xkb { + } + numlock + repeat-delay 600 + repeat-rate 25 + } + + touchpad { + tap + natural-scroll + } + + trackpoint { + } +} + +gestures { + hot-corners { + off + } +} + +cursor { + xcursor-theme "Adwaita" + xcursor-size 24 +} + +output "HDMI-A-1" { + mode "1920x1080@74.973" + scale 1 + transform "normal" +} + +output "eDP-1" { + off + scale 1 + transform "normal" + position x=1280 y=0 +} + +layout { + gaps 8 + center-focused-column "never" + + preset-column-widths { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + } + + default-column-width { + proportion 0.5; + } + + focus-ring { + width 4 + active-color "#3c3836" + inactive-color "#505050" + } + + border { + off + width 4 + active-color "#ffc87f" + inactive-color "#505050" + urgent-color "#9b0000" + } + + shadow { + on + softness 30 + spread 5 + offset x=0 y=5 + color "#0007" + } + + struts { + } +} + +prefer-no-csd + +screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" + +spawn-at-startup "waybar" +spawn-at-startup "swww-daemon" +spawn-at-startup "swww img --outputs HDMI-A-1 ~/Wallpapers/wall9.png" +spawn-at-startup "eww daemon" +spawn-at-startup "eww open-many year month day daytype" + + +window-rule { + match title="Waydroid" + open-fullscreen true +} +window-rule { + match app-id=r#"firefox$"# title="^Picture-in-Picture$" + open-floating true +} + +window-rule { + match app-id=r#"waydroid$"# + open-fullscreen true +} + +window-rule { + geometry-corner-radius 7 + clip-to-geometry true +} + +binds { + Mod+Shift+Slash { show-hotkey-overlay; } + Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } + Mod+R hotkey-overlay-title="Run an Application: rofi" { spawn-sh "rofi -show drun -config ~/.config/rofi/gruvbox.rasi"; } + Mod+Shift+Return hotkey-overlay-title="Run an application: rofi (run)" { spawn-sh "rofi -show run -config ~/.config/rofi/gruvbox.rasi"; } + Super+Alt+L hotkey-overlay-title="Lock the screen" { spawn "swaylock"; } + Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; } + + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; } + XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; } + XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; } + XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; } + + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; } + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; } + + Mod+O repeat=false { toggle-overview; } + Mod+S repeat=false { close-window; } + + Mod+Left { focus-column-left; } + Mod+Down { focus-window-down; } + Mod+Up { focus-window-up; } + Mod+Right { focus-column-right; } + Mod+H { focus-column-left; } + Mod+J { focus-window-down; } + Mod+K { focus-window-up; } + Mod+L { focus-column-right; } + + Mod+Ctrl+Left { move-column-left; } + Mod+Ctrl+Down { move-window-down; } + Mod+Ctrl+Up { move-window-up; } + Mod+Ctrl+Right { move-column-right; } + Mod+Shift+H { move-column-left; } + Mod+Shift+J { move-window-down; } + Mod+Shift+K { move-window-up; } + Mod+Shift+L { move-column-right; } + + Mod+Home { focus-column-first; } + Mod+End { focus-column-last; } + Mod+Ctrl+Home { move-column-to-first; } + Mod+Ctrl+End { move-column-to-last; } + + Mod+Shift+Left { focus-monitor-left; } + Mod+Shift+Down { focus-monitor-down; } + Mod+Shift+Up { focus-monitor-up; } + Mod+Shift+Right { focus-monitor-right; } + Mod+Ctrl+H { focus-monitor-left; } + Mod+Ctrl+J { focus-monitor-down; } + Mod+Ctrl+K { focus-monitor-up; } + Mod+Ctrl+L { focus-monitor-right; } + + Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } + Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } + Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } + Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } + Mod+Shift+Ctrl+H { move-column-to-monitor-left; } + Mod+Shift+Ctrl+J { move-column-to-monitor-down; } + Mod+Shift+Ctrl+K { move-column-to-monitor-up; } + Mod+Shift+Ctrl+L { move-column-to-monitor-right; } + + Mod+Page_Down { focus-workspace-down; } + Mod+Page_Up { focus-workspace-up; } + Mod+N { focus-workspace-down; } + Mod+M { focus-workspace-up; } + Mod+Ctrl+Page_Down { move-column-to-workspace-down; } + Mod+Ctrl+Page_Up { move-column-to-workspace-up; } + Mod+Ctrl+M { move-column-to-workspace-down; } + Mod+Ctrl+N { move-column-to-workspace-up; } + + Mod+Shift+P hotkey-overlay-title="Restart waybar and eww" { spawn-sh "pkill waybar && waybar & disown && eww kill && eww daemon && eww open-many year month day daytype"; } + + Mod+Shift+Page_Down { move-workspace-down; } + Mod+Shift+Page_Up { move-workspace-up; } + Mod+Shift+M { move-workspace-down; } + Mod+Shift+N { move-workspace-up; } + + Mod+1 { focus-workspace 1; } + Mod+2 { focus-workspace 2; } + Mod+3 { focus-workspace 3; } + Mod+4 { focus-workspace 4; } + Mod+5 { focus-workspace 5; } + Mod+6 { focus-workspace 6; } + Mod+7 { focus-workspace 7; } + Mod+8 { focus-workspace 8; } + Mod+9 { focus-workspace 9; } + Mod+Shift+1 { move-column-to-workspace 1; } + Mod+Shift+2 { move-column-to-workspace 2; } + Mod+Shift+3 { move-column-to-workspace 3; } + Mod+Shift+4 { move-column-to-workspace 4; } + Mod+Shift+5 { move-column-to-workspace 5; } + Mod+Shift+6 { move-column-to-workspace 6; } + Mod+Shift+7 { move-column-to-workspace 7; } + Mod+Shift+8 { move-column-to-workspace 8; } + Mod+Shift+9 { move-column-to-workspace 9; } + + Mod+BracketLeft { consume-or-expel-window-left; } + Mod+BracketRight { consume-or-expel-window-right; } + + Mod+Comma { consume-window-into-column; } + Mod+Period { expel-window-from-column; } + + Mod+D { switch-preset-column-width; } + Mod+Shift+R { switch-preset-window-height; } + Mod+Ctrl+R { reset-window-height; } + Mod+W { maximize-column; } + Mod+Shift+W { fullscreen-window; } + + Mod+Ctrl+F { expand-column-to-available-width; } + Mod+C { center-column; } + Mod+Ctrl+C { center-visible-columns; } + + Mod+Minus { set-column-width "-10%"; } + Mod+Equal { set-column-width "+10%"; } + + Mod+Shift+Minus { set-window-height "-10%"; } + Mod+Shift+Equal { set-window-height "+10%"; } + + Mod+Space { toggle-window-floating; } + Mod+Shift+V { switch-focus-between-floating-and-tiling; } + + Mod+Shift+F { toggle-column-tabbed-display; } + Mod+F hotkey-overlay-title="Spawn file manager (nautilus)" { spawn "nautilus"; } + + Print { screenshot; } + Super+Shift+S { screenshot; } + Ctrl+Print { screenshot-screen; } + Alt+Print { screenshot-window; } + + Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } + + Mod+Shift+E { quit; } + Ctrl+Alt+Delete { quit; } + + Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } + Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } + Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } + Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } + + Mod+WheelScrollRight { focus-column-right; } + Mod+WheelScrollLeft { focus-column-left; } + Mod+Ctrl+WheelScrollRight { move-column-right; } + Mod+Ctrl+WheelScrollLeft { move-column-left; } + + Mod+Shift+WheelScrollDown { focus-column-right; } + Mod+Shift+WheelScrollUp { focus-column-left; } + Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } + Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } +} + + diff --git a/config/niri/config.kdl b/config/niri/config.kdl index fd9b630..5b99367 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -3,6 +3,8 @@ input { xkb { } numlock + repeat-delay 600 + repeat-rate 25 } touchpad { @@ -90,7 +92,7 @@ spawn-at-startup "eww open-many year month day daytype" window-rule { - match title="Chromium" + match title="Waydroid" open-fullscreen true } window-rule { @@ -140,10 +142,10 @@ binds { Mod+Ctrl+Down { move-window-down; } Mod+Ctrl+Up { move-window-up; } Mod+Ctrl+Right { move-column-right; } - Mod+Ctrl+H { move-column-left; } - Mod+Ctrl+J { move-window-down; } - Mod+Ctrl+K { move-window-up; } - Mod+Ctrl+L { move-column-right; } + Mod+Shift+H { move-column-left; } + Mod+Shift+J { move-window-down; } + Mod+Shift+K { move-window-up; } + Mod+Shift+L { move-column-right; } Mod+Home { focus-column-first; } Mod+End { focus-column-last; } @@ -154,10 +156,10 @@ binds { Mod+Shift+Down { focus-monitor-down; } Mod+Shift+Up { focus-monitor-up; } Mod+Shift+Right { focus-monitor-right; } - Mod+Shift+H { focus-monitor-left; } - Mod+Shift+J { focus-monitor-down; } - Mod+Shift+K { focus-monitor-up; } - Mod+Shift+L { focus-monitor-right; } + Mod+Ctrl+H { focus-monitor-left; } + Mod+Ctrl+J { focus-monitor-down; } + Mod+Ctrl+K { focus-monitor-up; } + Mod+Ctrl+L { focus-monitor-right; } Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } @@ -232,6 +234,8 @@ binds { Mod+F hotkey-overlay-title="Spawn file manager (nautilus)" { spawn "nautilus"; } Print { screenshot; } + Super+Shift+S { screenshot; } + Control+Alt+S { screenshot-window; } Ctrl+Print { screenshot-screen; } Alt+Print { screenshot-window; } diff --git a/config/nushell/config.nu b/config/nushell/config.nu index f364e2b..ae975d2 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -5,31 +5,33 @@ $env.config.show_banner = false $env.config.table.mode = 'none' $env.TERM = "xterm" $env.USER = "coast" + $env.PROMPT_COMMAND = { let dir = (pwd | path basename) - $"0 (echo $env.USER) ($dir | sed 's/coast/home/g') " + let home_dir = ($dir | str replace "coast" "home") + $"(ansi reset)0 ($env.USER) ($home_dir) " } + $env.PROMPT_INDICATOR = "" let carapace_completer = {|spans| -carapace $spans.0 nushell ...$spans | from json + carapace $spans.0 nushell ...$spans | from json } $env.config = { - show_banner: false, - completions: { - case_sensitive: false - quick: true - partial: true - algorithm: "fuzzy" - external: { - enable: true - max_results: 100 - completer: $carapace_completer - } - } -} - + show_banner: false + completions: { + case_sensitive: false + quick: true + partial: true + algorithm: "fuzzy" + external: { + enable: true + max_results: 100 + completer: $carapace_completer + } + } +} alias sd = sudo alias nano = vim @@ -37,5 +39,59 @@ alias suod = sudo alias sduo = sudo alias hotp = htop alias c = clear +alias dir = tree -idA -source ~/.config/nushell/starship.nu +let bg0 = "#282828" +let bg1 = "#3c3836" +let bg2 = "#504945" +let fg0 = "#fbf1c7" +let fg1 = "#ebdbb2" +let fg2 = "#d5c4a1" + +let red = "#cc241d" +let green = "#98971a" +let yellow = "#d79921" +let blue = "#458588" +let purple = "#b16286" +let aqua = "#689d6a" +let orange = "#d65d0e" +let gray = "#928374" + +let gruvbox_dark = { + separator: gray, + leading_trailing_space_bg: bg1, + header: yellow, + datetime: blue, + filesize: green, + row_index: gray, + + bool: green, + int: orange, + float: yellow, + string: fg1, + nothing: gray, + binary: red, + cell-path: blue, + hints: gray, + + shape_garbage: { fg: fg0 bg: red attr: b }, + shape_bool: green, + shape_int: { fg: orange attr: b }, + shape_float: { fg: yellow attr: b }, + shape_range: { fg: yellow attr: b }, + shape_internalcall: { fg: aqua attr: b }, + shape_external: blue, + shape_externalarg: { fg: green attr: b }, + shape_literal: fg1, + shape_operator: orange, + shape_signature: { fg: yellow attr: b }, + shape_string: purple, + shape_filepath: blue, + shape_globpattern: { fg: blue attr: b }, + shape_variable: aqua, + shape_flag: { fg: yellow attr: b }, + shape_custom: { attr: b } +} + +$env.config.color_config = $gruvbox_dark +$env.config.use_ansi_coloring = true diff --git a/config/nushell/history.txt b/config/nushell/history.txt index 7669aa4..6a89744 100644 --- a/config/nushell/history.txt +++ b/config/nushell/history.txt @@ -830,3 +830,1374 @@ rm -rf wall/ git add -A git commit vim .gitignore +git add -A +git commit +git push coasteen master +cd Projects/c/cutils +ls +cd src +s +ls +mkdir cat +cd cat +ls +vim cat.c +gcc cat.c -o cat +vim cat.c +gcc cat.c -o cat +vim cat.c +gcc cat.c -o cat +./cat +./cat cat.c +ks +ls +vim ../../.gitignore +git add -A +git commit +git push coasteen master +ls +gdb +gcc -arch +clang +nix-search clangf +nix-search clang_multi +sudo vim /etc/nixos/home-configuration/configuration.nix +sd nixos-rebuild switch +git fork +git bash +clang +sd nixos-rebuild switch +ld +sudo vim /etc/nixos/home-configuration/configuration.nix +sd nixos-rebuild switch +clang +cc +ldd +ld +man ld +ld --help +ld --help | less +ld --version +lsblk +clang --version +cd Projects/c/cutils +ls +cd src/ +ls +cd yes +ls +clang yes.c -o yes +./yes +ls +rm yes +vim yes.c +clang yes.c -o yes +vim yes.c +clang yes.c -o yes +vim yes.c +clang yes.c -o yes +./yes +./yes --version +ls +clang yes.c -o yes +man argc +man argcERR +man argv +vim yes.c +vim ~/.config/nvim/lua/config.lua +ls +rm yes +clang yes.c -o yes +./yes --version +vim yes.c +ls +cd .. +ls +cd sed +ls +vim sed.c +clang sed.c -o sed +vim sed.c +clang sed.c -o sed +./sed --version +cd ../yes +vim yes.c +clang yes.c -o yes +./yes +./yes --version +cd .. +ls +cd rmdir +clang rmdir.c -o rmdir +./rmdir +./rmdir --version +vim rmdir.c +clang rmdir.c -o rmdir +./rmdir --version +./rmdir +ls +mkdir test +./rmdir test +ls +EXIT +exit +cd ../rm +ls +clang rm.c -o rm +ls +echo test o> test +cat test +./rm test +./rm --version +:q +vim rm.c +ls +./rm rm +ls +cd .. +s +ls +cd mkdir +vim mkdir.c +ls +clang mkdir.c -o mkdir +./mkdir version +./mkdir --version +ls +../rmdir/rmdir `--version/` +ls +vim mkdir.c +clang mkdir.c -o mkdir +./mkdir --version +ls +rm mkdir +ls +cd .. +ls +cd cp +ls +vim cp.c +clang cp.c -o cp +./cp --version +ls +rm cp +ls +cd .. +ls +cd cat +ls +vim cat.c +clang cat.c -o cat +cat ../rmdir/rmdir.c +vim cat.c +clang cat.c -o cat +vim cat.c +clang cat.c -o cat +./cat --version +vim cat.c +ls +rm cat +ls +c d.. +ls +cd .. +ls +cd echo +vim echo.c +ls +clang echo.c -o echo +./echo --version +echo --version +/run/current-system/sw/bin/echo --version +ls +vim echo.c +./echo hiwgopnhwg +./echo hiwgopnhwg woiuhgwoiegn +rm echo +ls +cd .. +ls +cd ed +vim ed.c +clang ed.c -o ed +./ed --version +ed +ls +cd .,. +cd .. +ls +cd ls +ls +vim ls.c +ls +clang ls.c -o ls +vim ls.c +clang ls.c -o ls +vim ls.c +clang ls.c -o ls +./ls --version +ls +rm ls +cd .. +ls +cd lsblk +ls +vim lsblk.c +ls +clang lsblk.c -o lsblk +cat ../rmdir/rmdir.c +vim lsblk.c +clang lsblk.c -o lsblk +./lsblk +./lsblk --version +s +ls +rm lsblk +cd .. +ls +cd rm +vim rm.c +cd .. +git add -A +git commit +git push coasteen master +podman ps -a +podman start -ai pensive_roentgen +git clone https://git.sr.ht/~coasteen/cutils --depth 1 +cd cutils +ls +cd src +ls +cd yes +ls +clang +clang yes.c -o yes +ls +cd .. +ls +rm -rf cutils/ +podman start -ai pensive_roentgen +ls +podman rm -f pensive_roentgen +ls +vim uname.c +clang uname.c -o uname +./una,e +./uname +./uname -r +una,e +uname +./uname +vim uname/c +vim uname.c +clang uname.c -o uname +rm uname +rm uname.c +cd Projects/c/cutils +ls +cd src +ls +mkdir uname +cd uname +ls +clang uname.c -o uname +./uname +ls +./uname -r +./uname -sr +./uname -v +uname -v +command uname +env uname +env uname -v +./uname -abi +./uname -a +EXIT +exit +vim uname.c +clang uname.c -o uname +./uname --help +./uname -s +./uname -n +./uname -r +./uname -a +./uname -v +./uname -n +./uname -m +./uname --versio +./uname --version +./uname +ls +rm uname +vim ../../.gitignore +ls +cd .. +ls +mkdir wc +cd wc +vim wc.c +ls +clang wc.c -o wc +ls +./wc +wc +./wc -l +ls ~ | ./wc -l +ls -A ~ | ./wc -l +env ls -A ~ | ./wc -l +ls +./wc --version +vim ../../.gitignore +ls +cd .. +git add -A +git commit +git push coasteen master +cd Projects/c +ls +cp -r cutils/ cut +cd cut +ls +cd src +ls +vim patch +patch < patch +rm <.rej +ls +rm < +rm <.orig +ls +git apply patch +ls +cp patch ../ +rm patch +cd .. +ls +patch < patch +ls +rm < +rm <.orig +m <.rej +ls +rm <.rej +ls +rm patch +vim makefile +vim config.mnk +vim config.mk +los +ls +cd .. +ls +rm -rf cutils +ls +mv cut cutils +git clone https://git.sr.ht/~xsoder/cutils xsoders +cd xsoders +ls +cp ChangeLog.md ../cutils/CHANGELOG +cp changelog-pic.png ../cutils/changelog-pic.png +ls +cd ../cutils +ls +mv CHANGELOG CHANGELOG.md +ls +ls -a +tree +ls +cp -r ../xsoders/tests/ . +ls +git add -A +git commit +git push coasteen master +cd .config/niri +vim config.kdl +sudo vim /etc/nixos/configuration/configuration.nix +sudo nix-collect-garbage +sudo nixos-rebuild switch +hyprland +dbus-run-session hyprland +cp .local/src/config/hypr/hyprland.conf .config/hypr/ +dbus-run-session hyprland +cd .config/hypr +vim hyprland.conf +cd +cd .config/hypr +vim hyprland.conf +cd Wallpapers/ +ls +cd ../waybar +vim config.jsonc +cd ../hypr +ls +vim hyprland.conf +swaybg +exec-once = swww img ~/Wallpapers/wall9.png +swww img ~/Wallpapers/wall9.png +swww img +swww-daemon +swww-daemon & disown +swww-daemon && disown +swww-daemon; disown +vim hyprland.conf +swww-daemon | and +nohup swww-daemon & +swww img ~/Wallpapers/wall9.png +dbus-run-session hyprland +cd .config/hypr +vim hyprland.conf +cd .config/hypr +vim hyprland.conf +niri +cd .config/ +rm -rf hypr +pkill hypr +pkill hyprland +killall +pkill hyprland +poweroff +sudo vim /etc/nixos/configuration/configuration.nix +sudo nixos-rebuild switch +cd .config/niri +vim config.kdl +cd .config/waybar +vim config.jsonc +ls +rm nohup.out +vim main.c +clang main.c -o main +./main +vim main.c +clang main.c -o main +./main +rm main +rm main.c +ls +cd .config/niri +vim config.kdl +cd +cd .config/waybar +vim config.jsonc +sudo nmtui +ifconfig +cd .config/waybar +vim config.jsonc +vim main.cpp +vim main.c +clang++ main.c +clang++ main.c -lstdc++ +ls +rm main.c +clang main.c -o main +./main +ls +rm main +rm main.c +exit +vim main.c +cd Projects/c +ls +mkdir learning +rm -rf xsoders +cd learning +ls +cls +man scanf +scandf +scanf +vim user-input.c +clang user-input.c -o userinput +./userinput +vim user-input.c +clang user-input.c -o userinput +./userinput +podman run -it alpine:latest +podman rm -f vibrant_diffie +mkdir Waydroid/shared -p +mkdir -p Waydroid/shared +mkdir Waydroid +cd Waydroid/ +ls +mkdir shared +cd ~/.local/share/waydroid/ +ls +cd data +ls +ls -a +ls -l +cd datra +cd data +ls +cd .. +ls +cd .. +ls +cd waydroid/ +ls +cd data./ +cd data/ +ls +cd local +ls +sudo ls +su +ls +su +cd .. +ls +cd user/0 +ls +mkdir shared +sudo mount --bind ~/Waydroid/shared shared +ls +cd shared +ls +cd .. +cd Waydroid/shared/ +ls +rm -rf Waydroid/ +ls -l +lsblk +sudo umount .local/share/waydroid/data/user/0/shared/ +lsblk +sudo vim /etc/nixos/configuration/configuration.nix +sudo nixos-rebuild switch +cd .local/share/waydroid/ +ls +cd .. +rm -rf waydroid/ +sudo rm -rf waydroid/ +ls +cd +ls +rm -rf Waydroid/ +ls +ks +ls +cd Projects/ +clear +ls +cd c/cutils +ls +cd src +ls +vim ../.gitignore +cp -r yes yes-test +cd tes +cd yes +ls +vim yes.c +ls +clang yes.c -o yes +./yes +./yes --version +vim yes.c +cd ../rm +ls +cat rm.c | wl-copy +clang rm.c -o rm +ls +mkdir test +./rm -rf test +ls +./rm rm +ls +cd ../mkdir +ls +clang mkdir.c -o mkdir +./mkdir test +ls +rm -rf test +ls +./mkdir -p test/test/test +tree +vim rm.c +ls +git add -A +git commit +git push coasteen master +cd .. +ls +cd .. +ls +make +ls +cd bin +ls +./cat +./cat --version +cd .. +ls +vim .gitignore +git add -A +git commit +git push coasteen master +vim makefile +make test +ls +cd bin +ls +cd tests +ls +cd .. +rm -rf tests +./yes-test --version +yes --version +./yes +ls +yes +ls +./copy-dir +/.cp +./cp +ls +rm -rf master +ls +cd .. +ls +less README +vim less.c +clang less.c -o less +./less less.c +ls +rm less +rm less.c +ls +vim less.c +clang less.c -o less +./less +./less less.c +rm less +rm less.c +lllll +lld +dd +man dd +ls +clear +ls +sb-battery +cd .config/niri +vim config.kdl +cd ../waybar +vim config.jsonc +qemu +lsblk +cd Projects/c/cutils +ls +cd bin +ls +./lsblk +lsblk +nan +nAn +NaN +echo NaN +if +$env.USER = "coast" +if ($env.USER == NaN) {<\n>echo "No"<\n>} else {<\n>echo "yes"<\n>} +cd Downloads/ +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +nix-shell -p lxappearance +sudo nix-collect-garbage +nvim +vim +cd $PKGS +ls /nix/store | grep nvim +ls /nix/store | grep neovim +cd /nix/store/fs0snm7jdw07nnb252qpix9cq4790kd7-neovim-0.11.4 +ls +cd bin +ls +./nvim +nvidia-smi +nvim-python3 +ls +./nvim-python3 +vim +cd .config/nvim +ls +cd lua +ls +vim config.lua +cd +cd .config/nushell +config nu +$env.PROMPT_COMMAND = {<\n> let dir = (pwd | path basename)<\n> $"0 (echo $env.USER) ($dir | sed 's/coast/home/g') "<\n>}<\n>$env.PROMPT_INDICATOR = ""<\n> +ls +vim config.nu +cd .config/nushell +config nu +lsblk +swaylock -c 000000 +cd .config/nvim +ls +cd lua/ +vim config.lua +cd .local/share/applications/ +lks +ls +rm waydroid* +ls +rm Waydroid.desktop +cd .config/nvim/lua/plugins/ +ls +cd lazy +vim plugins.lua +cd plugins/ +ls +cd lazy +ls +vim plugins.lua +cd .config/nvim/lua/plugins/lazy +vim plugins.lua +cd ../.. +ls +vim config.lua +cd .. +vim init.lua +ls +cd lua/plugins/lazy +vim plugins.lua +cd .. +ls +cd .. +lsblk +uname +ls +vim init.lua +cd .config/nvim/lua +vim config.lua +cd .config/nvim +vim lua/config.lua +cd +vim test.sh +./test.sh +rm test +rm test.sh +man printf +cd Projects/c/cutils +ls +cd src/ +ls +mkdir printf +cd printf +ls +man 0 +echo +vim printf.c +ls +clang printf.c -o printf +vim printf.c +clang printf.c -o printf +./printf +printc +printf +printf --help +./printt hi +./printf hiu +./printf hi +./printf hi how are you +./printf hi how are you --version +./printf --version +./printf hi \n hi +vim printf.c +clang printf.c -o printf +vim ../../.gitignore +ls +./printf +printf +./printf +./printf --help +./printf "hi \a" +./printf "hi \b" +./printf "hi \b\b" +./printf "hi\b\b" +./printf "hi\nhi" +s +ls +git add -a +git add -A +git commit +git push coasteen master +./printf "hi %s hi" "hello" +ls +cd +vim puts.c +ls +cd -\ +cd - +ls +vim printf.c +ls +clang printf.c -o printf +./printf "hi %s hello" "hello" +ls +git add printf.c +git commit +git push coasteen master +./printf +./printf --help +vim printf.c +clang printf.c -o printf +./printf --help +git add printf.c +git commit +git push coasteen master +man sizeo +man sizeog +man sizeof +ls +cd Projects/c/ +ls +cd .. +ls +cd go +ls +cd learn +ls +ls -l +clear +ls +ls --short-names +ls -ll +ls -llah +ls -lah +ls -la +ls ~ +vim aurtest.sh +./aurtest.sh +cp aurtest.sh .local/bin +rm aurtest.sh +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +NO_COLORS=0 +cd .config/nushell +vim config.nu +source config.nu +cd +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +vim .Xresources +xrdb -merge .Xresources +echo $XCURSOR_THEME +echo $env.XCURSOR_THEME +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +cd .config/waybar +vim config.jsonc +cd Projects/ +ls +cd c +;s +cd +cd - +ls +cd cutils +ls +ls .. +cd .config/nushell +vim config.nu +source config.nu +cd ../niri +niri validate +vim config.kdl +cd .config/niri +vim config.kdl +ls +cd Projects/c +cd coreutils +cd cutils +ls +cd tests +ls +mkdir wc +cd wc +ls +mkdir test1 +cd test1 +ls +mkdir files/ +touch files/cache-{1...500}-cache +ls files/ +cd rm `files/cache-{1...500}-cache` +rm `files/cache-{1...500}-cache` +bash +l;s +;s +ls +cd .. +ls +make +cd src/printf/ +vim printf +vim printf.c +cd - +cd bin +ls +cp wc ~/Projects/c/cutils/tests/wc/test1 +cd ~/Projects/c/cutils/tests/wc/test1 +ls +ls files/ | ./wc -l +ls files/ | ./wc +/run/current-system/sw/bin/ls files/ | ./wc +ls files/ | less +ls +cd .. +ls +cd .. +,s +.s +,s +ls +cd .. +ls +vim .gitignore +git add -A +git commit +cp -r tests .. +rm -rf tests +git add -A +git commit +git push coasteen master +l +ls +mv ../tests/ . +ls .. +tree +tree -idA +ls +dir +which dir +clear +tree -idA +vim ~/.config/nushell/config.nu +source ~/.config/nushell/config.nu +vim ~/.config/nushell/config.nu +config nu +source ~/.config/nushell/config.nu +dir +nix-search sublime-text +sudo vim /etc/nixos/home-configuration/configuration.nix +clear +ls +vim +cd .config/nvim +ls +vim lua/config.lua +sudo nixos-rebuild switch +sublime +nix-search gcc.cc +clang++ +sudo vim /etc/nixos/home-configuration/configuration.nix +sudo nixos-rebuild switch +sublime +g++ +cat /etc/nixos/home-configuration/configuration.nix +sudo nixos-rebuild switch +sudo vim /etc/nixos/home-configuration/ +sudo nixos-rebuild switch +sublime +nix-locate libstdc++.so.6 +sudo nixos-rebuild switch +sublime +sudo nixos-rebuild switch +sudo vim /etc/nixos/home-configuration/ +sudo nixos-rebuild switch +sd nixos-rebuild switch +sublime +sudo vim /etc/nixos/configuration/configuration.nix +nix-search geany +vim +sudo vim /etc/nixos/home-configuration/configuration.nix +sd nixos-rebuild switch +clang +clang++ +sudo vim /etc/nixos/home-configuration/configuration.nix +sudo nixos-rebuild switch +mls +ls +rm untitled.c +rm untitled +sudo vim /etc/nixos/home-configuration/configuration.nix +vim main.c +clang +ls +gcc main.c -o main +./main +vim main.c +gcc main.c -o main +./main +vim main.c +gcc main.c -o main +./main +rm main +rm main.c +ls +while :; +while :; do fastfetch & done +while true { open /dev/null | fastfetch & } +run +ls +start +run --detached +setsid +man setsid +pkill swww +sh -c "swww-daemon & disown" +ls +cd Projects/c/cutils +l;s +ls +cd bin +ls +./rm --version +csd .. +cd .. +ls +cd src +ls +cd rm +ls +vim rm.c +ls +clang +gcc rm.c -o rm +./rm --version +git add -A +git commit +git push coasteen master +cd Projects/c/cutils +ls +cat config.mk +tree +dir +vim ls +ls +vim config.mk +rm -rf bin +ls +make +cd bin +ls +cd .. +cat makefile |wl-copy +tree src/ +vim makefile +rm -rf bin +make +cd bin +./lsblk +ls +cd .. +ls +vim config.mk +make +ls +rm -rf bin +git add -A +git commit +git push coasteen master +git clone https://git.sr.ht/~coasteen/cutils +podman cp cutils/ boring_driscoll:/ +rm -rf cutils/ +go version +cd Projects/go +mkdir learn3 +rm -rf * +mkdir learning +cd learning +vim +vim file.go +go mod init learning +ls +ls -a +vim go.mod +mkdir cmd +mkdir cmd/tutorial_1 +cd cmd/tutorial_1/ +vim main.go +ls +go build main.go +ls +./main +ldd main +ls +rm main +ls +clear +vim main.go +vim vars.go +ls +cat vars.go +rm vars.go +man tryue +man if +if +tty +cvd /dev/pts +ls +cd /dev/pts +ls +pkill ./1 +cd 1 +cat 1 +cat 0 +ls -a +whatis +whatis love +cd Projects/c/cutils +ls +cd src/ +ls +rm -rf yes-test +ls +clear +ls +cd +cd Projects/c/cutils/src/yes +vim main.c +ls +gcc main.c -o main +./main +./main 12 +./main 1 +vim address +:q +vim main.c +gcc main.c -o main +./main 1 +./main 1 1324r +./main hello world +vim main.c +./main hello world +gcc main.c -o main +./main hello world +python3 +math 500 * 730 +math 500 \* 730 +go install golang.org/x/website/tour@latest +cd go +ls +cd bin +s +ls +cd tour +./tour +python3 +gofmy +gofmt +vim main.c +gcc main.c -o main +./main hi hello +vim main.c +gcc main.c -o main +./main hi hello +vim main.c +./main hi hello +gcc main.c -o main +./main hi hello +vim main.c +gcc main.c -o main +./main hi hello +./main +./main poijiwjerhouwehg +./main ./main +./main ./main "hi hello hi" hi hi hi +cd /usr/ +ls +cd /run/current-system/sw/bin +cd .. +ls +cd lib +ls +cd +neofetch +fastfetch +cd /etc/nixos/home-configuration/ +sudo vim ../flake.nix +cd apps/ +sudo nixos-rebuild switch +waybar +wlr-randr +w +wlr-randr --output eDP-1 --off +pkill river +dbus-run-session river +wlr-randr --output eDP-1 --off +rivertile +riverctl +riverctl map +riverctl map Super + Return exec alacritty +riverctl map add Super + Return exec alacritty +riverctl bind add Super + Return exec alacritty +cd .config/waybar +vim config.jsonc +waybar +vim config.jsonc +waybar +vim config.jsonc +waybar +vim style.css +waybar +vim style.css +waybar +sudo vim /etc/nixos/home-configuration/ +sudo nixos-rebuild switch +nekoray & disown +wmenu-run +foot +sudo nixos-rebuild switch +sudo vim /etc/nixos/home-configuration/apps/river.nix +cd ../river +ls +vim river_opts.sh +cd +river +wlr-randr --output eDP-1 --off +cd .config/river/ +vim river_opts.sh +cd +cd .config/river/ +vim init +pkill river +dbus-run-session river +cd .config/river/ +vim init +vim river_opts.sh +wmenu-run +ls /nix/store | grep river +cd /nix/store/a03l75xxfq6b4dl9cf00qrjrc2mjck3h-river-0.3.11 +ls +cd share +ls +ls -a +ls -l +cd river-protocols/ +ls +cd .. +ls +chromium +wmenu-run +ls +cd river-protocols/ +ls +cd +ls /nix/store | grep river +cd /nix/store/4wn3d7a3f10z9yflgcqd9b7iwc5cdwqb-river-0.3.11 +ls +cd share +ls +cd +ls /nix/store | grep river +cd /nix/store/n3w21z0bnwlml390my4pgxh9g47s03cw-river-0.3.11 +ls +cd /nix/store/n3w21z0bnwlml390my4pgxh9g47s03cw-river-0.3.11.drv +ls /nix/store | grep river +pkill river +dbus-run-session river +pkill rivertile +rivertile +sudo vim /etc/nixos/home-configuration/apps/river.nix +sudo nixos-rebuild switch +sudo vim /etc/nixos/home-configuration/apps/river.nix +sudo nixos-rebuild switch +wmenu-run +sudo nixos-rebuild switch +pkill rivedr +river +cd .config/river/ +vim init +sudo vim /etc/nixos/home-configuration/apps/river.nix +sd nixos-rebuild switch +wmenu-run +sd nixos-rebuild switch +dbus-run-session river +cd .config/ri +cd .config/river +ls +vim river_opts.sh +source river_opts.sh +bash river_opts.sh +vim river_opts.sh +./river_opts.sh +vim river_opts.sh +riverctl spawn rivertile +riverctl default-layout rivertile +#!/bin/sh<\n><\n># See the river(1), riverctl(1), and rivertile(1) man pages for complete<\n># documentation.<\n><\n># Focus follows mouse<\n>riverctl focus-follows-cursor normal<\n><\n># Let the cursor follow focused screen<\n>riverctl set-cursor-warp on-focus-change<\n><\n># Atatch new windows at the bottom of the stack<\n>riverctl attach-mode bottom<\n><\n># Hide cursor<\n>riverctl hide-cursor timeout 5000<\n>riverctl hide-cursor when-typing enabled<\n><\n># Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.<\n><\n># Super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)<\n>riverctl map normal Super+Shift Return spawn foot<\n><\n># Super+Q to close the focused view<\n>riverctl map normal Super Q close<\n><\n># Super+Shift+E to exit river<\n>riverctl map normal Super+Shift E exit<\n><\n># Launcher<\n>riverctl map normal Super D spawn "fuzzel"<\n><\n># Toggle waybar<\n>riverctl map normal Super B spawn "killall yambar || ~/.config/yambar/scripts/yambar-start.sh"<\n><\n># Power Menu<\n>riverctl map normal Control+Super P spawn "~/.local/bin/powermenu"<\n><\n># Super+J and Super+K to focus the next/previous view in the layout stack<\n>riverctl map normal Super J focus-view next<\n>riverctl map normal Super K focus-view previous<\n><\n># Super+Shift+J and Super+Shift+K to swap the focused view with the next/previous<\n># view in the layout stack<\n>riverctl map normal Super+Shift J swap next<\n>riverctl map normal Super+Shift K swap previous<\n><\n># Super+Period and Super+Comma to focus the next/previous output<\n>riverctl map normal Super Period focus-output next<\n>riverctl map normal Super Comma focus-output previous<\n><\n># Super+Shift+{Period,Comma} to send the focused view to the next/previous output<\n>riverctl map normal Super+Shift Period send-to-output next<\n>riverctl map normal Super+Shift Comma send-to-output previous<\n><\n># Super+Return to bump the focused view to the top of the layout stack<\n>riverctl map normal Super Return zoom<\n><\n># Super+H and Super+L to decrease/increase the main ratio of rivertile(1)<\n>riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05"<\n>riverctl map normal Super L send-layout-cmd rivertile "main-ratio +0.05"<\n><\n># Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1)<\n>riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1"<\n>riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"<\n><\n># Super+Alt+{H,J,K,L} to move views<\n>riverctl map normal Super+Alt H move left 100<\n>riverctl map normal Super+Alt J move down 100<\n>riverctl map normal Super+Alt K move up 100<\n>riverctl map normal Super+Alt L move right 100<\n><\n># Super+Alt+Control+{H,J,K,L} to snap views to screen edges<\n>riverctl map normal Super+Alt+Control H snap left<\n>riverctl map normal Super+Alt+Control J snap down<\n>riverctl map normal Super+Alt+Control K snap up<\n>riverctl map normal Super+Alt+Control L snap right<\n><\n># Super+Alt+Shift+{H,J,K,L} to resize views<\n>riverctl map normal Super+Alt+Shift H resize horizontal -100<\n>riverctl map normal Super+Alt+Shift J resize vertical 100<\n>riverctl map normal Super+Alt+Shift K resize vertical -100<\n>riverctl map normal Super+Alt+Shift L resize horizontal 100<\n><\n># Super + Left Mouse Button to move views<\n>riverctl map-pointer normal Super BTN_LEFT move-view<\n><\n># Super + Right Mouse Button to resize views<\n>riverctl map-pointer normal Super BTN_RIGHT resize-view<\n><\n># Super + Middle Mouse Button to toggle float<\n>riverctl map-pointer normal Super BTN_MIDDLE toggle-float<\n><\n>for i in $(seq 1 9)<\n>do<\n> tags=$((1 << ($i - 1)))<\n><\n> # Super+[1-9] to focus tag [0-8]<\n> riverctl map normal Super $i set-focused-tags $tags<\n><\n> # Super+Shift+[1-9] to tag focused view with tag [0-8]<\n> riverctl map normal Super+Shift $i set-view-tags $tags<\n><\n> # Super+Control+[1-9] to toggle focus of tag [0-8]<\n> riverctl map normal Super+Control $i toggle-focused-tags $tags<\n><\n> # Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view<\n> riverctl map normal Super+Shift+Control $i toggle-view-tags $tags<\n>done<\n><\n># Super+0 to focus all tags<\n># Super+Shift+0 to tag focused view with all tags<\n>all_tags=$(((1 << 32) - 1))<\n><\n>riverctl map normal Super 0 set-focused-tags $all_tags<\n>riverctl map normal Super+Shift 0 set-view-tags $all_tags<\n><\n># Super+Space to toggle float<\n>riverctl map normal Super Space toggle-float<\n><\n># Super+F to toggle fullscreen<\n>riverctl map normal Super F toggle-fullscreen<\n><\n># Super+{Up,Right,Down,Left} to change layout orientation<\n>riverctl map normal Super Up send-layout-cmd rivertile "main-location top"<\n>riverctl map normal Super Right send-layout-cmd rivertile "main-location right"<\n>riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"<\n>riverctl map normal Super Left send-layout-cmd rivertile "main-location left"<\n><\n># Declare a passthrough mode. This mode has only a single mapping to return to<\n># normal mode. This makes it useful for testing a nested wayland compositor<\n>riverctl declare-mode passthrough<\n><\n># Super+F11 to enter passthrough mode<\n>riverctl map normal Super F11 enter-mode passthrough<\n><\n># Super+F11 to return to normal mode<\n>riverctl map passthrough Super F11 enter-mode normal<\n><\n># Take a screenshot of the active output<\n>riverctl map normal None Print spawn "grim -o $(lswt -j | jq -c '.[] | select(.activated) | .outputs' | awk -F'"' '{print $2}') -t jpeg ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg"<\n><\n># Take a screenshot of the selected region<\n>riverctl map normal Super Print spawn 'grim -t jpeg -g "$(slurp)" ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg'<\n><\n># Take a screenshot and save it to the clipboard<\n>riverctl map normal Super+Shift Print spawn 'grim -g "$(slurp)" -| wl-copy && notify-send "Screenshot Clipped"'<\n><\n># The scratchpad will live on an unused tag. Which tags are used depends on your<\n># config, but rivers default uses the first 9 tags.<\n>scratch_tag=$((1 << 20 ))<\n><\n># Toggle the scratchpad with Super+P<\n>riverctl map normal Super P toggle-focused-tags ${scratch_tag}<\n><\n># Send windows to the scratchpad with Super+Shift+P<\n>riverctl map normal Super+Shift P set-view-tags ${scratch_tag}<\n><\n># Set spawn tagmask to ensure new windows don't have the scratchpad tag unless<\n># explicitly set.<\n>all_but_scratch_tag=$(( ((1 << 32) - 1) ^ $scratch_tag ))<\n>riverctl spawn-tagmask ${all_but_scratch_tag}<\n><\n># Various media key mapping examples for both normal and locked mode which do<\n># not have a modifier<\n>for mode in normal locked<\n>do<\n> # Control volume <\n> riverctl map $mode None XF86AudioRaiseVolume spawn 'amixer sset Master 2%+'<\n> riverctl map $mode None XF86AudioLowerVolume spawn 'amixer sset Master 2%-'<\n> riverctl map $mode None XF86AudioMute spawn 'amixer set Master 1+ toggle'<\n><\n> # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)<\n> riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'<\n> riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'<\n> riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'<\n> riverctl map $mode None XF86AudioNext spawn 'playerctl next'<\n><\n> # Control screen backlight brightness with light (https://github.com/haikarainen/light)<\n> riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5; light -O'<\n> riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5; light -O'<\n>done<\n><\n># Set background and border color<\n>riverctl background-color 0x002b36<\n>riverctl border-color-focused 0x33ccff<\n>riverctl border-color-unfocused 0x595959<\n><\n># Set keyboard repeat rate<\n>riverctl set-repeat 50 300<\n><\n># auto starting apps<\n>bash $HOME/.config/river/autostart.sh<\n><\n># Make all views with an app-id that starts with "float" and title "foo" start floating.<\n>riverctl rule-add float -app-id 'float*' -title 'foo'<\n><\n># Make all views with app-id "bar" and any title use client-side decorations<\n>riverctl rule-add csd -app-id "bar"<\n><\n># Float mpv when it's started<\n> riverctl rule-add float -app-id 'mpv'<\n><\n># Set the default layout generator to be rivertile and start it.<\n># River will send the process group of the init executable SIGTERM on exit.<\n>riverctl default-layout rivertile<\n>rivertile -view-padding 5 -outer-padding 5 -main-ratio 0.5 & +pkill river +cd .config/waybar +vim config.jsonc +vim style.css +sudo vim /etc/nixos/flake.nix +sudo rm /etc/nixos/home-configuration/apps/river.nix +sd nixos-rebuild switch +cd .config/river/ +ls +cd .. +rm -rf river +eww +eww open-many year month day daytype +cd +cd .config/niri +vim config.kdl +fastfetch -l gentoo +cd .config/nushell +vim config.nu +config nu +source config.nu +fastfetch +cd .config/nushell/ +vim config.nu +sudo poweroff +ls +clear +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +xrdb -merge .Xresources +lsblk +clear +i love this keyboard +libinput +clear +setxkbmap us +ssh user@192.168.1.128 +bluetoothctl +xset r rate 300 25 +cd .config/niri +bluetoothctl +vim main.c +ls +gcc main.c -o main +./main +rm main +rm main.c +gcc main.c -o main +./main +rm main +rm main. +rm main.c +cd .config/niri +vim config.kdl +ls Downloads/PrismLauncher-Linux-x86_64.AppImage +vim config.kdl +$env.config.color_config | sort +cd .config/nushell +ls cleart +clear +ls +pwd +whoami +ks +ls +clear +cd go +ls +cd pkg +ls +cd mod +ls +cd +ls +ansi +ls +clear +config nu +clear +cd ~/.local/src diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 345ed01..6135bc7 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -8,3 +8,4 @@ require("plugins/render-markdown") --require("status_line").setup() require("plugins/lualine") require("plugins/gruvbox") +require("colorizer").setup() -- #ffffff #edb511 diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 5dbb9cf..11e6afb 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -1,4 +1,5 @@ { + "barbar.nvim": { "branch": "master", "commit": "fb4369940a07dda35fa4d7f54cf4a36aa00440e6" }, "cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, "cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" }, "cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" }, @@ -7,16 +8,19 @@ "cmp-spell": { "branch": "master", "commit": "694a4e50809d6d645c1ea29015dad0c293f019d6" }, "cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" }, "comfy-line-numbers.nvim": { "branch": "main", "commit": "31e2f9287b4491ad72defb9e0185eb2739983799" }, - "lazy.nvim": { "branch": "main", "commit": "202d8e92b3a74ac88eb3a7f1e40fb59b4c2a6535" }, + "fterm.nvim": { "branch": "master", "commit": "d1320892cc2ebab472935242d9d992a2c9570180" }, + "gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" }, + "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, + "lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" }, "lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" }, + "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "mini.nvim": { "branch": "main", "commit": "429e5f9dc9cd59bf76cd98b687300f0a384a7f52" }, - "monokai-pro.nvim": { "branch": "master", "commit": "1ac671f6da720cba967d28d25c2f16b8b4e18808" }, "none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" }, "none-ls.nvim": { "branch": "main", "commit": "db2a48b79cfcdab8baa5d3f37f21c78b6705c62e" }, - "nvim": { "branch": "main", "commit": "234fc048de931a0e42ebcad675bf6559d75e23df" }, "nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-lspconfig": { "branch": "master", "commit": "77d3fdfb3554632c7a3b101ded643d422de7626f" }, "nvim-numbertoggle": { "branch": "main", "commit": "923f9709989605fe2bc4b9de8a3625fa808f5cd6" }, "nvim-toggler": { "branch": "main", "commit": "467808600882fd6c9e33b9dbc4889b1b80cfd917" }, @@ -33,5 +37,5 @@ "typst-preview.nvim": { "branch": "master", "commit": "e544812bba84b4f7976590f2b6c0dfbd099e1893" }, "vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" }, "vim-vsnip": { "branch": "master", "commit": "0a4b8419e44f47c57eec4c90df17567ad4b1b36e" }, - "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } + "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } } diff --git a/config/nvim/lua/config.lua b/config/nvim/lua/config.lua index 5344b08..18a9c0f 100644 --- a/config/nvim/lua/config.lua +++ b/config/nvim/lua/config.lua @@ -1,48 +1,49 @@ -local cfg = vim.opt -local cmd = vim.cmd +local opt = vim.opt +local map = vim.keymap.set local g = vim.g g.mapleader = " " -cfg.shiftwidth = 4 -cfg.tabstop = 4 -cfg.softtabstop = 4 -cfg.smarttab = true -cfg.smartindent = true +opt.shiftwidth = 4 +opt.tabstop = 4 +opt.softtabstop = 4 +opt.smarttab = true +opt.smartindent = true -cfg.undofile = true -cfg.undodir = vim.fn.stdpath("config") .. "/undo" +opt.undofile = true +opt.undodir = vim.fn.stdpath("config") .. "/undo" -cfg.number = true -cfg.relativenumber = true +opt.number = true +opt.relativenumber = true -cfg.fillchars = "eob: " +opt.fillchars = "eob: " g.loaded_netrw = 1 g.loaded_netrwPlugin = 1 -cfg.termguicolors = true +opt.termguicolors = true -cfg.spell = false -cfg.spelllang = { "en_us" } +opt.spell = false +opt.spelllang = { "en_us" } -if vim.loop.os_uname().sysname == "Linux" then - cfg.shell = "/run/current-system/sw/bin/zsh" -else - cfg.shell = "/run/current-system/sw/bin/zsh" -end +opt.shell = "/run/current-system/sw/bin/nu" vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "single", }) vim.diagnostic.config({ float = { border = "single" } }) -vim.keymap.set("n", "u", ":Telescope") -vim.keymap.set("n", "", ":bn") -vim.keymap.set("n", "", ":bp") -vim.keymap.set("n", "", ":bw") +map("n", "u", ":Telescope") +map("n", "t", ":tabnew") +map("n", "", ":tabn") +map("n", "", ":tabp") +map("n", "", ":bw") -vim.keymap.set("n", ".", vim.diagnostic.open_float) +map("n", ".", vim.diagnostic.open_float) + +map("n", "=", "=") + +map("n", "x", "!chmod +x %") vim.api.nvim_create_autocmd("LspAttach", { group = vim.api.nvim_create_augroup("UserLspConfig", {}), @@ -50,32 +51,33 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.bo[ev.buf].omnifunc = "v:lua.vim.lsp.omnifunc" local opts = { buffer = ev.buf } - vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts) - vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts) - vim.keymap.set("n", "K", function() + map("n", "K", function() vim.lsp.buf.hover({ border = "single" }) end, opts) - vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts) - vim.keymap.set("n", "", vim.lsp.buf.signature_help, opts) - vim.keymap.set("n", "wa", vim.lsp.buf.add_workspace_folder, opts) - vim.keymap.set("n", "wr", vim.lsp.buf.remove_workspace_folder, opts) - vim.keymap.set("n", "wl", function() + map("n", "gi", vim.lsp.buf.implementation, opts) + map("n", "", vim.lsp.buf.signature_help, opts) + map("n", "wa", vim.lsp.buf.add_workspace_folder, opts) + map("n", "wr", vim.lsp.buf.remove_workspace_folder, opts) + map("n", "wl", function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, opts) - vim.keymap.set("n", "D", vim.lsp.buf.type_definition, opts) - vim.keymap.set("n", "rn", vim.lsp.buf.rename, opts) - vim.keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) - vim.keymap.set("n", "gr", vim.lsp.buf.references, opts) - vim.keymap.set("n", "f", function() + map("n", "D", vim.lsp.buf.type_definition, opts) + map("n", "rn", vim.lsp.buf.rename, opts) + map({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) + map("n", "gr", vim.lsp.buf.references, opts) + map("n", "f", function() vim.lsp.buf.format({ async = true }) end, opts) end, }) local builtin = require("telescope.builtin") -vim.keymap.set("n", "ff", builtin.find_files, {}) -vim.keymap.set("n", "fg", builtin.live_grep, {}) -vim.keymap.set("n", "fb", builtin.buffers, {}) -vim.keymap.set("n", "fh", builtin.help_tags, {}) +map("n", "ff", builtin.find_files, {}) +map("n", "fg", builtin.live_grep, {}) +map("n", "fb", builtin.buffers, {}) +map("n", "fh", builtin.help_tags, {}) local treeapi = require("nvim-tree.api") -vim.keymap.set("n", "e", treeapi.tree.toggle, {}) +map("n", "e", treeapi.tree.toggle, {}) + +map("n", "", 'lua require("FTerm").toggle()') +map("t", "", 'lua require("FTerm").toggle()') diff --git a/config/nvim/lua/plugins/lazy/plugins.lua b/config/nvim/lua/plugins/lazy/plugins.lua index 69a4ae8..ec62818 100644 --- a/config/nvim/lua/plugins/lazy/plugins.lua +++ b/config/nvim/lua/plugins/lazy/plugins.lua @@ -106,7 +106,27 @@ return { }, }, }, + { + "romgrk/barbar.nvim", + dependencies = { + "lewis6991/gitsigns.nvim", + "nvim-tree/nvim-web-devicons", + }, + init = function() + vim.g.barbar_auto_setup = false + end, + opts = {}, + }, "nguyenvukhang/nvim-toggler", "alvan/vim-closetag", + "norcalli/nvim-colorizer.lua", + { + "numtostr/fterm.nvim", + border = "double", + dimensions = { + height = 0.9, + width = 0.9, + }, + }, }, } diff --git a/config/nvim/undo/%home%coast%.local%src%config%nvim%lua%config.lua b/config/nvim/undo/%home%coast%.local%src%config%nvim%lua%config.lua index 35f1505..6660114 100644 Binary files a/config/nvim/undo/%home%coast%.local%src%config%nvim%lua%config.lua and b/config/nvim/undo/%home%coast%.local%src%config%nvim%lua%config.lua differ diff --git a/config/nvim/undo/%home%coast%.local%src%config%waybar%config.jsonc b/config/nvim/undo/%home%coast%.local%src%config%waybar%config.jsonc index 93013f5..7ff3ebc 100644 Binary files a/config/nvim/undo/%home%coast%.local%src%config%waybar%config.jsonc and b/config/nvim/undo/%home%coast%.local%src%config%waybar%config.jsonc differ diff --git a/config/nvim/undo/%home%coast%.local%src%config%waybar%style.css b/config/nvim/undo/%home%coast%.local%src%config%waybar%style.css index ccb89f8..af9fc81 100644 Binary files a/config/nvim/undo/%home%coast%.local%src%config%waybar%style.css and b/config/nvim/undo/%home%coast%.local%src%config%waybar%style.css differ diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index fb12196..e61aa35 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -11,7 +11,7 @@ ], "modules-right": [ "tray", - "network", +// "network", "pulseaudio", "clock" ], diff --git a/local/bin/aurtest.sh b/local/bin/aurtest.sh new file mode 100755 index 0000000..d26ca37 --- /dev/null +++ b/local/bin/aurtest.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +AUR_URL="https://aur.archlinux.org" +TIMEOUT=5 + +if curl -s --head --fail --max-time "$TIMEOUT" "$AUR_URL" > /dev/null; then + echo "Unfortunately, the AUR is up." +else + echo "AUR IS DOWN" +fi