From b2726d1824fb11e104747fc87e5d49a6af73b1f0 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 20 Nov 2024 10:18:40 -0500 Subject: [PATCH] Update many configs --- home/.config/mimeapps.list | 59 +++++++++++++------------ home/.config/nvim/coc-settings.json | 19 ++++++-- home/.config/nvim/init.vim | 5 +++ home/.gitconfig | 2 +- home/.on-resume | 5 +-- home/.profile | 2 + home/.xbindkeysrc | 7 +++ home/.xlaunch.d/0-dpi_scale | 3 +- home/.xlaunch.d/99-dmesg-notifier-error | 1 + home/.xlaunch.d/pista | 4 +- home/.xlaunch.d/setxkbmap | 2 + home/.xlaunch.d/xbindkeys | 2 +- home/.xlaunch.d/xss-lock | 2 +- 13 files changed, 72 insertions(+), 41 deletions(-) diff --git a/home/.config/mimeapps.list b/home/.config/mimeapps.list index ea239c0..7138d4d 100644 --- a/home/.config/mimeapps.list +++ b/home/.config/mimeapps.list @@ -1,8 +1,7 @@ [Added Associations] application/illustrator=gimp.desktop; application/octet-stream=gvim.desktop; -application/pdf=atril.desktop;zathura-pdf-poppler.desktop;mupdf.desktop; -application/x-extension-eml=thunderbird.desktop; +application/pdf=zathura-pdf-poppler.desktop;mupdf.desktop; application/x-extension-htm=chromium.desktop;userapp-Firefox-FY7R00.desktop; application/x-extension-html=chromium.desktop;userapp-Firefox-FY7R00.desktop; application/x-extension-shtml=chromium.desktop;userapp-Firefox-FY7R00.desktop; @@ -11,43 +10,35 @@ application/x-extension-xhtml=chromium.desktop;userapp-Firefox-FY7R00.desktop; application/xhtml+xml=chromium.desktop;userapp-Firefox-FY7R00.desktop; audio/vnd.audible.aax=vlc.desktop; audio/x-m4a=vlc.desktop;mpv.desktop; -audio/x-mpegurl=mpv.desktop; -audio/x-scpls=mpv.desktop; -audio/x-vorbis+ogg=mpv.desktop; -audio/x-wav=mpv.desktop; -image/bmp=eom.desktop;sxiv.desktop; -image/gif=eom.desktop;sxiv.desktop; -image/jpeg=eom.desktop;sxiv.desktop; -image/png=eom.desktop;sxiv.desktop; -image/tiff=eom.desktop;sxiv.desktop; -inode/directory=caja.desktop +image/bmp=sxiv.desktop; +image/gif=sxiv.desktop; +image/jpeg=sxiv.desktop; +image/png=sxiv.desktop; +image/tiff=sxiv.desktop; inode/symlink=caja.desktop; -message/rfc822=thunderbird.desktop; text/csv=gvim.desktop; -text/html=chromium.desktop;userapp-Firefox-FY7R00.desktop; -text/plain=gvim.desktop; +text/html=userapp-Firefox-FY7R00.desktop; text/vnd.graphviz=gvim.desktop; text/x-ocaml=gvim.desktop; text/x-scheme=gvim.desktop; -video/mp2t=mpv.desktop; -video/mp4=mpv.desktop; -video/mpeg=mpv.desktop; -video/msvideo=mpv.desktop; -video/quicktime=mpv.desktop; -video/webm=mpv.desktop; -video/x-avi=mpv.desktop; -video/x-flv=mpv.desktop; -video/x-matroska=mpv.desktop; -video/x-mpeg=mpv.desktop; -video/x-ogm+ogg=mpv.desktop; x-scheme-handler/chrome=chromium.desktop;userapp-Firefox-FY7R00.desktop; x-scheme-handler/ftp=firefox.desktop; -x-scheme-handler/http=chromium.desktop;userapp-Firefox-FY7R00.desktop; -x-scheme-handler/https=chromium.desktop;userapp-Firefox-FY7R00.desktop; -x-scheme-handler/mailto=thunderbird.desktop; +x-scheme-handler/http=userapp-Firefox-FY7R00.desktop; +x-scheme-handler/https=userapp-Firefox-FY7R00.desktop; x-scheme-handler/tg=userapp-Telegram Desktop-Q1EZH1.desktop;userapp-Telegram Desktop-NYSNT1.desktop;org.telegram.desktop.desktop; x-scheme-handler/trash=caja.desktop text/x-verilog=gvim.desktop; +audio/flac=mpv.desktop; +audio/x-flac=mpv.desktop; +audio/mpeg=mpv.desktop; +application/vnd.oasis.opendocument.text=libreoffice-writer.desktop; +application/rtf=libreoffice-writer.desktop; +application/msword=libreoffice-writer.desktop; +application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop; +application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop; +application/vnd.ms-excel=libreoffice-calc.desktop; +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop; +application/vnd.sqlite3=anki.desktop; [Default Applications] application/illustrator=gimp.desktop @@ -104,3 +95,13 @@ x-scheme-handler/unknown=chromium.desktop x-scheme-handler/webcal=chromium.desktop x-scheme-handler/jetbrains=jetbrains-toolbox.desktop x-scheme-handler/fleet=jetbrains-fleet.desktop +audio/flac=mpv.desktop +audio/x-flac=mpv.desktop +audio/mpeg=mpv.desktop +application/vnd.oasis.opendocument.text=libreoffice-writer.desktop +application/rtf=libreoffice-writer.desktop +application/msword=libreoffice-writer.desktop +application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop +application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop +application/vnd.ms-excel=libreoffice-calc.desktop +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop diff --git a/home/.config/nvim/coc-settings.json b/home/.config/nvim/coc-settings.json index aa32c89..8265119 100644 --- a/home/.config/nvim/coc-settings.json +++ b/home/.config/nvim/coc-settings.json @@ -1,3 +1,4 @@ +// vim:ft=jsonc: { "languageserver": { "rust": { @@ -13,11 +14,21 @@ "command": "opam", "args": ["config", "exec", "--", "ocamllsp"], "filetypes": ["ocaml", "reason"] + }, + "clangd": { + "command": "clangd", + "rootPatterns": ["compile_flags.txt", "compile_commands.json"], + "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"] } }, - "bash": { - "command": "bash-language-server", - "args": ["start"], - "filetypes": ["sh"] + "markdownlint.config": { + // Allow mixed usage of both styles of heading indicators. + // (i.e. leading hashes (###) for level 3+ after + // dashes (---) and equals (===) for levels 2 and 1, respectively). + // Ref: + // - https://github.com/fannheyward/coc-markdownlint + // - https://github.com/DavidAnson/markdownlint/blob/main/doc/md003.md + // - https://github.com/DavidAnson/markdownlint/blob/3561fc3f38b05b3c55f44e371c2cd9bda194598a/doc/md003.md + "MD003": { "style": "setext_with_atx" } } } diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 0930301..6a4e197 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -31,6 +31,8 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'} " Plug 'simrat39/rust-tools.nvim' +Plug 'simrat39/symbols-outline.nvim' + call plug#end() " END Vim-Plug @@ -39,6 +41,9 @@ lua require('Comment').setup() "luafile ~/.config/nvim/setup-lsp-rust-jonhoo.lua source ~/.config/nvim/setup-coc.vim +lua require("symbols-outline").setup() +" luafile ~/.config/nvim/setup-symbols-outline.lua + " NERDTree let NERDTreeShowLineNumbers=1 diff --git a/home/.gitconfig b/home/.gitconfig index f262f4d..3e84c52 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -9,7 +9,7 @@ [cola] spellcheck = false [init] - defaultBranch = dominus + defaultBranch = electus #[filter "lfs"] # required = true # clean = git-lfs clean -- %f diff --git a/home/.on-resume b/home/.on-resume index e427c8f..41a69b5 100755 --- a/home/.on-resume +++ b/home/.on-resume @@ -1,5 +1,4 @@ #! /bin/bash -set -e - -~/.xlaunch.d/setxkbmap && xset b off +~/.xlaunch.d/setxkbmap +~/.xlaunch.d."$(hostname)"/xset diff --git a/home/.profile b/home/.profile index cbc092f..5fdde02 100644 --- a/home/.profile +++ b/home/.profile @@ -31,3 +31,5 @@ printf '\n' # 'BEGIN {srand()} {fortunes[n++] = $0} END {print fortunes[int(n * rand())]}' \ # ~/arc/doc/fortunes/orangebook_.txt \ #| fold -s + +export PATH="/home/xand/.local/share/solana/install/active_release/bin:$PATH" diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index e8216ec..19639d1 100644 --- a/home/.xbindkeysrc +++ b/home/.xbindkeysrc @@ -39,6 +39,9 @@ XF86ScreenSaver "xscreensaver-command -activate" control + alt + l +"~/.on-resume" + Mod4 + l + # control + alt + shift + l #"lock" # XF86ScreenSaver #"lock" @@ -135,6 +138,10 @@ "mpplay" Mod4 + p +# Search mpd lib and insert selection +"mpc listall | khomenu | mpc insert" + Mod4 + Control + p + # Search video catalog and play selection "video-catalog-play" Mod4 + v diff --git a/home/.xlaunch.d/0-dpi_scale b/home/.xlaunch.d/0-dpi_scale index 2a47fcc..bd5cd39 100755 --- a/home/.xlaunch.d/0-dpi_scale +++ b/home/.xlaunch.d/0-dpi_scale @@ -32,4 +32,5 @@ set -e # #main -/usr/libexec/mate-settings-daemon --replace --debug +# /usr/libexec/mate-settings-daemon --replace --debug +/usr/libexec/mate-settings-daemon --replace diff --git a/home/.xlaunch.d/99-dmesg-notifier-error b/home/.xlaunch.d/99-dmesg-notifier-error index 1a65f66..5ca031a 100755 --- a/home/.xlaunch.d/99-dmesg-notifier-error +++ b/home/.xlaunch.d/99-dmesg-notifier-error @@ -9,6 +9,7 @@ mkdir -p "$DIR" sleep 3 # wait for dunst to hopefully restart # TODO File with ignore patterns sudo dmesg --follow --level=emerg,alert,crit,err --since=now --ctime \ +| grep -v 'Unexpected DE Misc interrupt' \ | while read -r line do notify-send -u critical 'dmesg error' "$line" diff --git a/home/.xlaunch.d/pista b/home/.xlaunch.d/pista index e517754..7633f65 100755 --- a/home/.xlaunch.d/pista +++ b/home/.xlaunch.d/pista @@ -2,4 +2,6 @@ set -e -pistactl restart ~/.pistactl."$(hostname)" +# pistactl --config ~/.pistactl."$(hostname)" restart +# pistactl --config ~/.pistactl.toml restart +pistactl restart diff --git a/home/.xlaunch.d/setxkbmap b/home/.xlaunch.d/setxkbmap index 047d85c..644d449 100755 --- a/home/.xlaunch.d/setxkbmap +++ b/home/.xlaunch.d/setxkbmap @@ -2,6 +2,8 @@ set -e +echo "DISPLAY=$DISPLAY" >&2 + #-- Keyboard layout # From setxkbmap man page: # > Note that setxkbmap adds options specified in the command line to the diff --git a/home/.xlaunch.d/xbindkeys b/home/.xlaunch.d/xbindkeys index 2a3569d..2bba2da 100755 --- a/home/.xlaunch.d/xbindkeys +++ b/home/.xlaunch.d/xbindkeys @@ -6,4 +6,4 @@ set -e # 1. not using killall; # 2. using "command" (or "cmd") instead of "comm". ps -eo pid,command | awk '$2 ~ "^xbindkeys" {print $1}' | xargs -I% kill % -xbindkeys -n +xbindkeys -n -v diff --git a/home/.xlaunch.d/xss-lock b/home/.xlaunch.d/xss-lock index 6cde597..eb64546 100755 --- a/home/.xlaunch.d/xss-lock +++ b/home/.xlaunch.d/xss-lock @@ -2,4 +2,4 @@ set -e -xss-lock --transfer-sleep-lock --locker 'xscreensaver-command -lock' -- ~/.on-resume +xss-lock --transfer-sleep-lock -- xscreensaver-command -lock -- 2.20.1