diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 9658764..845b4b2 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -27,13 +27,13 @@ width = 370 # The maximum height of a single notification, excluding the frame. - height = 350 + height = (0,350) # Position the notification in the top right corner origin = top-right # Offset from the origin - offset = 9x29 + offset = (9,29) # Scale factor. It is auto-detected if value is 0. scale = 0 diff --git a/.config/nvim/lua/lazyvim/plugins/lsp/config.lua b/.config/nvim/lua/lazyvim/plugins/lsp/config.lua index 363f9cc..8117ca3 100644 --- a/.config/nvim/lua/lazyvim/plugins/lsp/config.lua +++ b/.config/nvim/lua/lazyvim/plugins/lsp/config.lua @@ -2,7 +2,10 @@ local M = {} M.opts = { -- could just set this in format.lua buuuut, it's nice to have here - autoformat = true, + format = { + autoformat = true, + ignore_files = { "config.def.h" }, + }, -- options for vim.diagnostic.config() diagnostics = { underline = true, @@ -87,7 +90,7 @@ M.opts = { function M.setup() -- setup autoformat - require("lazyvim.plugins.lsp.format").autoformat = M.opts.autoformat + require("lazyvim.plugins.lsp.format").setup(M.opts.format) -- setup formatting and keymaps require("lazyvim.utils").on_attach(function(client, buffer) diff --git a/.config/nvim/lua/lazyvim/plugins/lsp/format.lua b/.config/nvim/lua/lazyvim/plugins/lsp/format.lua index c71cad4..3f3b13a 100644 --- a/.config/nvim/lua/lazyvim/plugins/lsp/format.lua +++ b/.config/nvim/lua/lazyvim/plugins/lsp/format.lua @@ -1,6 +1,12 @@ local M = {} M.autoformat = true +M.ignore_files = {} + +function M.setup(opts) + M.autoformat = opts.autoformat or true + M.ignore_files = opts.ignore_files or {} +end function M.toggle() M.autoformat = not M.autoformat @@ -27,6 +33,12 @@ function M.on_attach(client, buf) buffer = buf, callback = function() if M.autoformat then + for _, file in pairs(M.ignore_files) do + print(vim.api.nvim_buf_get_name(0)) + if string.find(vim.api.nvim_buf_get_name(0), file) then + return + end + end M.format() end end, diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index b9db2c1..623471d 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -19,6 +19,7 @@ set -s escape-time 0 # Allow opening multiple terminals to view the same session at different sizes. setw -g aggressive-resize on +set-option -w -g aggressive-resize on # Ensure window titles get renamed automatically. setw -g automatic-rename diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 1d51583..9267707 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -11,6 +11,11 @@ xsetroot -cursor_name left_ptr # numlock numlockx +# archt14 has trackpad middle click, fucking dumbest idea in history +# set middle click 2 to match right click 1 +# default map is 1 2 3 4 5 6 7 +xinput set-button-map 10 1 1 3 4 5 6 7 + nextcloud --background & "$HOME/.fehbg" @@ -31,6 +36,8 @@ autostart=( "plumber" "mpd" + + "blueberry-tray" ) for program in "${autostart[@]}"; do diff --git a/.local/bin/trayer-toggle b/.local/bin/trayer-toggle deleted file mode 100755 index 058952b..0000000 --- a/.local/bin/trayer-toggle +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -test_path="$HOME/.cache/trayer-exists" - -if [ -f "$test_path" ]; then - echo "stopping trayer" - killall trayer - rm "$test_path" -else - echo "starting trayer" - touch "$test_path" - exec "$@" -fi