From bb73de624c18294ae76a4364cf2027e7b6f8582f Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 25 Jun 2023 12:23:20 -0500 Subject: [PATCH] fix kanshi desktop-config add imv to mimeapps for some images set ~/Music as music dir for mpd make newsboat open urls with browser.sh add gopls to nvchads lspconfig set sway to run open-terminal.sh with super+shift+Return set zsh config to optionally source a ~/.zprofile.local to set local variables if needed in specific containers etc. --- .config/kanshi/configs/desktop-config | 4 ++-- .config/mimeapps.list | 7 ++++++- .config/mpd/mpd.conf | 2 +- .config/newsboat/config | 2 +- .config/nvchad/custom/configs/lspconfig.lua | 2 +- .config/sway/config | 2 +- .config/zsh/.zshrc | 2 ++ .local/scripts | 2 +- 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.config/kanshi/configs/desktop-config b/.config/kanshi/configs/desktop-config index c3f65b8..2f5a3eb 100644 --- a/.config/kanshi/configs/desktop-config +++ b/.config/kanshi/configs/desktop-config @@ -1,4 +1,4 @@ profile desk { - output "Ancor Communications Inc VE248 DCLMQS000288" enable mode 1920x1080 position 0,0 - output "Ancor Communications Inc VE248 DCLMQS000292" enable mode 1920x1080 position 1920,0 + output "Ancor Communications Inc VE248 DCLMQS000292" enable mode 1920x1080 position 0,0 + output "Ancor Communications Inc VE248 DCLMQS000288" enable mode 1920x1080 position 1920,0 } diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 133ec40..1f6f450 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -1,6 +1,11 @@ - [Default Applications] inode/directory=thunar.desktop application/x-gnome-saved-search=thunar.desktop video/=mpv.desktop image/=imv.desktop +video/quicktime=com.brave.Browser.desktop + +[Added Associations] +video/quicktime=com.brave.Browser.desktop; +image/png=imv.desktop; +image/webp=imv.desktop; diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index efc11ff..a5a5151 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -1,4 +1,4 @@ -music_directory "~/media/audio" +music_directory "~/Music" playlist_directory "~/.config/mpd/playlists/" auto_update "yes" diff --git a/.config/newsboat/config b/.config/newsboat/config index d8dbecd..6c9bd01 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -29,7 +29,7 @@ color listfocus_unread yellow default bold color info red black bold color article white default bold -browser linkhandler +browser browser.sh macro , open-in-browser macro t set browser "qndl" ; open-in-browser ; set browser linkhandler macro a set browser "tsp yt-dlp --embed-metadata -xic -f bestaudio/best --restrict-filenames" ; open-in-browser ; set browser linkhandler diff --git a/.config/nvchad/custom/configs/lspconfig.lua b/.config/nvchad/custom/configs/lspconfig.lua index 52e5cc0..6057fae 100644 --- a/.config/nvchad/custom/configs/lspconfig.lua +++ b/.config/nvchad/custom/configs/lspconfig.lua @@ -4,7 +4,7 @@ local capabilities = require("plugins.configs.lspconfig").capabilities local lspconfig = require "lspconfig" -- if you just want default config for the servers then put them in a table -local servers = { "html", "cssls", "tsserver", "clangd", "hls" } +local servers = { "html", "cssls", "tsserver", "clangd", "hls", "gopls" } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { diff --git a/.config/sway/config b/.config/sway/config index aebfc95..d2672f5 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -99,7 +99,7 @@ xwayland enable # # Start a terminal bindsym $mod+Return exec $term -e distrobox enter main - bindsym $mod+Shift+Return exec $term + bindsym $mod+Shift+Return exec sh open-terminal.sh # Kill focused window bindsym $mod+Shift+q kill diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index bc1d047..b430e9a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -141,4 +141,6 @@ source $ZSH/oh-my-zsh.sh # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh +[ -f ~/.zprofile.local ] && source ~/.zprofile.local + cd "$HOME" diff --git a/.local/scripts b/.local/scripts index 992a388..09394cc 160000 --- a/.local/scripts +++ b/.local/scripts @@ -1 +1 @@ -Subproject commit 992a388711923272e6a947712f6811f4fc5967a4 +Subproject commit 09394cce23842bfa571cc2b780e30a397aa3a06b