From 5cc28b2710481197dc9a85544410dc04f280d27b Mon Sep 17 00:00:00 2001 From: Ted Pier Date: Sat, 30 Aug 2025 12:23:10 -0700 Subject: [PATCH] add fastfetch --- .bashrc | 9 ++++++++- .config/btop/btop.conf | 2 +- .config/fastfetch | 1 + .config/hypr/hyprland.conf | 19 ++++++------------- .config/nvim/init.lua | 20 ++++++++++++++++++-- 5 files changed, 34 insertions(+), 17 deletions(-) create mode 120000 .config/fastfetch diff --git a/.bashrc b/.bashrc index cbcbaad..c1417bb 100644 --- a/.bashrc +++ b/.bashrc @@ -44,6 +44,7 @@ if [ "$TERM" = "linux" ]; then fi clear +# fastfetch --config ~/.config/fastfetch/mini.jsonc tfetch PS1='\n[ \e[35;1m\u \e[34m\w\e[0m ]\n\e[1m\$ \e[0m' @@ -59,8 +60,14 @@ export FZF_DEFAULT_OPTS=" --color=fg+:#e0def4,bg+:#26233a,hl+:#ebbcba --color=border:#403d52,header:#31748f,gutter:#191724 --color=spinner:#f6c177,info:#9ccfd8 - --color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa" + --color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa + --ansi + " +export FZF_CTRL_T_OPTS=" + --preview='bat --color=\"always\" {}' + " eval "$(starship init bash)" eval "$(fzf --bash)" eval "$(zoxide init --cmd cd bash)" + diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf index e6181e9..4f8acfc 100644 --- a/.config/btop/btop.conf +++ b/.config/btop/btop.conf @@ -53,7 +53,7 @@ graph_symbol_proc = "default" shown_boxes = "cpu mem net proc" #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. -update_ms = 100 +update_ms = 500 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. diff --git a/.config/fastfetch b/.config/fastfetch new file mode 120000 index 0000000..1205cd6 --- /dev/null +++ b/.config/fastfetch @@ -0,0 +1 @@ +/home/ted/.config/fastfetch/ \ No newline at end of file diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 9a28b48..586e052 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -13,12 +13,13 @@ ### MONITORS ### ################ -# See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=eDP-1, 1920x1080@144.00, auto, 1 +# see https://wiki.hyprland.org/configuring/monitors/ +monitor=eDP-1, 1920x1080@144.00, auto, 1, mirror, HDMI-A-1 # monitor=HDMI-A-1, 1920x1080@60.00, auto, 1 # monitor=HDMI-A-1, 1920x1080@60.02Hz, auto, 1, mirror, eDP-1 # monitor=HDMI-A-1, 1920x1080@60, auto, 1, mirror, eDP-1 # monitor=HDMI-A-1, 2560x1080@60.00, auto, 1 +monitor=HDMI-A-1, 2560x1080@60.00Hz, auto, 1 ################### @@ -54,12 +55,12 @@ execr-once = hyprctl setcursor phinger-cursors-light 24 execr-once = hypridle execr-once = systemctl --user start hyprpolkitagent execr-once = eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) +execr-once = protonmail-bridge -n exec-once = [workspace 1 silent] $browser exec-once = [workspace 11 silent] $messaging exec-once = [workspace 12 silent] foot bluetui exec-once = [workspace 13 silent] foot -o colors.regular4=191724 nmtuii exec-once = [workspace 14 silent] foot btop -exec-once = [workspace 15 silent] sleep 1000 && $email ############################# @@ -207,7 +208,7 @@ device { ################### # See https://wiki.hyprland.org/Configuring/Keywords/ -$mainMod = SUPER # Sets "Windows" key as main modifier +$mainMod = ALT # Sets "Windows" key as main modifier # See https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod SHIFT, RETURN, exec, $terminal @@ -365,15 +366,6 @@ windowrule = float,class:^(org.kde.kdeconnect.daemon)$ # Vesktop always opens fullscreen on workspace 6 windowrule = workspace 11 silent, class:^(vesktop)$ -# Control panel windows have no animations -windowrule = noanim, workspace:11 -windowrule = noanim, workspace:12 -windowrule = noanim, workspace:13 -windowrule = noanim, workspace:14 -windowrule = noanim, workspace:20 -# Control panel workspaces have no borders -workspace = r[11-14], border:false, gapsin:0, gapsout:0 - # Idleinhibit when fullscreen windowrule = idleinhibit fullscreen, focus:1 @@ -388,3 +380,4 @@ workspace = w[tv1], gapsout:0, gapsin:0 workspace = f[1], gapsout:0, gapsin:0 workspace = r[20], monitor:"HDMI-A-1" + diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 1479024..6b97fd1 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -98,7 +98,21 @@ cmp.setup({ }) require("nvim-treesitter.configs").setup({ - ensure_installed = { "go", "html", "css", "javascript", "hyprlang", "sql", "gomod", "gosum", "bash", "c", "rust" }, + ensure_installed = { + "go", + "html", + "css", + "javascript", + "hyprlang", + "sql", + "gomod", + "gosum", + "bash", + "c", + "rust", + "lua", + "nginx", + }, highlight = { enable = true, }, @@ -114,6 +128,7 @@ lspconfig.pyright.setup({}) lspconfig.ts_ls.setup({}) lspconfig.gopls.setup({}) lspconfig.bashls.setup({}) +lspconfig.xml.setup({}) local luasnip = require("luasnip") require("luasnip.loaders.from_vscode").lazy_load() require("luasnip").config.set_config({ @@ -150,6 +165,7 @@ require("conform").setup({ html = { "prettier" }, go = { "gofmt" }, bash = { "shfmt" }, + nginx = { "nginxfmt" }, }, format_on_save = { timeout_ms = 500, @@ -185,6 +201,6 @@ vim.api.nvim_create_autocmd({ "InsertLeave", "FocusLost" }, { pattern = "*", callback = function() require("conform").format() - vim.cmd("silent! write") + vim.cmd("silent! wa") end, })