Update DotFiles

- Add monitor refresh script to hyprland
- Add python auto complete to nvim
- Disable AllowShortLoopsOnASingleLine in clang_format
This commit is contained in:
Thraix committed 2026-09-13 14:08:02 +02:00
1 parent b6e779c324
commit d187956777
7 files changed
+24 -8

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: false AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true AllowShortLoopsOnASingleLine: false
AllowShortNamespacesOnASingleLine: false AllowShortNamespacesOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: true AlwaysBreakBeforeMultilineStrings: true
+1
View File
@@ -252,6 +252,7 @@ bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, M, exec, ~/Scripts/toggle_mic.sh bind = $mainMod, M, exec, ~/Scripts/toggle_mic.sh
bind = $mainMod, P, exec, ./Scripts/toggle_speaker.sh bind = $mainMod, P, exec, ./Scripts/toggle_speaker.sh
bind = $mainMod, O, exec, ./Scripts/refresh_monitors.sh
bind = $mainMod, E, exec, $fileManager bind = $mainMod, E, exec, $fileManager
bind = $mainMod, Space, togglefloating, bind = $mainMod, Space, togglefloating,
bind = $mainMod, F, fullscreen, bind = $mainMod, F, fullscreen,
+1 -1
View File
@@ -15,7 +15,7 @@ return {
"shfmt", -- Shell formatter "shfmt", -- Shell formatter
"checkmake", -- linter for Makefiles "checkmake", -- linter for Makefiles
"stylua", -- lua formatter; Already installed via Mason "stylua", -- lua formatter; Already installed via Mason
-- 'ruff', -- Python linter and formatter; Already installed via Mason "ruff", -- Python linter and formatter; Already installed via Mason
}, },
automatic_installation = true, automatic_installation = true,
}) })
+5 -5
View File
@@ -27,9 +27,9 @@ return {
diagnostics = false, diagnostics = false,
diagnostics_update_in_insert = false, diagnostics_update_in_insert = false,
color_icons = true, color_icons = true,
show_buffer_icons = true, show_buffer_icons = false,
show_buffer_close_icons = true, show_buffer_close_icons = false,
show_close_icon = true, show_close_icon = false,
persist_buffer_sort = true, -- whether or not custom sorted buffers should persist persist_buffer_sort = true, -- whether or not custom sorted buffers should persist
separator_style = { "│", "│" }, -- | "thick" | "thin" | { 'any', 'any' }, separator_style = { "│", "│" }, -- | "thick" | "thin" | { 'any', 'any' },
enforce_regular_tabs = true, enforce_regular_tabs = true,
@@ -40,8 +40,8 @@ return {
style = "none", -- Options: 'icon', 'underline', 'none' style = "none", -- Options: 'icon', 'underline', 'none'
}, },
icon_pinned = "󰐃", icon_pinned = "󰐃",
minimum_padding = 1, minimum_padding = 0,
maximum_padding = 5, maximum_padding = 0,
maximum_length = 15, maximum_length = 15,
sort_by = "insert_at_end", sort_by = "insert_at_end",
}, },
+1 -1
View File
@@ -267,7 +267,7 @@ return {
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { update_in_insert = false }) vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { update_in_insert = false })
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer) ensure_installed = { "pyright" }, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
automatic_installation = false, automatic_installation = false,
handlers = { handlers = {
function(server_name) function(server_name)
+1
View File
@@ -18,6 +18,7 @@ return {
"vimdoc", "vimdoc",
"json", "json",
"yaml", "yaml",
"python",
}, },
auto_install = true, auto_install = true,
highlight = { highlight = {
+14
View File
@@ -0,0 +1,14 @@
result=$(grep "^monitor" ~/.config/hyprland/hyprland.conf)
for item in $result; do
monitor=$(echo $item | cut -d '=' -f2 | cut -d ',' -f1)
old_config=$(echo $item | cut -d '=' -f2)
hyprctl keyword monitor "$monitor,disable"
done
sleep 1
for item in $result; do
monitor=$(echo $item | cut -d '=' -f2 | cut -d ',' -f1)
old_config=$(echo $item | cut -d '=' -f2)
hyprctl keyword monitor "$old_config"
done