From 019afe836ff60372ed76c3f8b1a3d2183b20f9dc Mon Sep 17 00:00:00 2001 From: Tibeuleu <> Date: Thu, 8 Aug 2024 00:03:29 +0200 Subject: [PATCH] small improvements in query feed and nvim-lsp --- .config/i3/config | 14 +++++++------- .config/newsboat/urls | 2 +- .config/nvim/after/plugin/lsp.lua | 2 +- .local/bin/sysact | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index fe52aa4..d339f7e 100755 --- a/.config/i3/config +++ b/.config/i3/config @@ -16,7 +16,7 @@ set $shutdown doas_askpass openrc-shutdown -h now set $reboot doas_askpass openrc-shutdown -r now set $netrefresh --no-startup-id doas_askpass rc-service NetworkManager restart set $nettoggle --no startup-id [ $(doas rc-service NetworkManager | awk '{print $3}') != 'stopped' ] && doas rc-service NetworkManager stop || doas rc-service NetworkManager start -set $hibernate loginctl suspend && slock +set $hibernate loginctl suspend # #---Gaps---# # for_window [class="^.*"] border pixel 2 @@ -278,7 +278,7 @@ bindsym XF86Launch1 exec --no-startup-id xset dpms force off # #---Extra XF86 Keys---# # bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks bindsym XF86AudioMicMute exec --no-startup-id amixer sset Capture toggle -bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks +bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%- && pkill -RTMIN+10 i3blocks bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%- && pkill -RTMIN+10 i3blocks bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks @@ -298,7 +298,7 @@ bindsym XF86Bluetooth exec doas rfkill unblock bluetooth | $term bluetoothctl ##bindsym XF86Paste exec ##bindsym XF86Cut exec ##bindsym XF86MenuKB exec -bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 +#bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 ##bindsym XF86Sleep This binding is typically mapped by systemd automatically. ##bindsym XF86WakeUp exec bindsym XF86PowerOff exec --no-startup-id sysact @@ -307,7 +307,7 @@ bindsym XF86PowerOff exec --no-startup-id sysact ##bindsym XF86Xfer exec ##bindsym XF86WWW exec --no-startup-id $BROWSER ##bindsym XF86DOS exec -bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen +bindsym XF86ScreenSaver exec exec --no-startup-id slock ##bindsym XF86RotateWindows exec ##bindsym XF86TaskPane exec ##bindsym XF86Favorites exec @@ -341,12 +341,12 @@ bindsym XF86AudioMedia exec --no-startup-id $term -e ncmpcpp ##bindsym XF86Launch8 exec ##bindsym XF86Launch9 exec bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad -bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0 -bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1 +#bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0 +#bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1 bindsym XF86Suspend exec --no-startup-id lockscreen bindsym XF86Close kill #bindsym XF86WebCam exec --no-startup-id camtoggle -bindsym XF86Mail exec --no-startup-id thunderbird +#bindsym XF86Mail exec --no-startup-id thunderbird #bindsym XF86Messenger exec $term -e weechat #bindsym XF86Search exec $BROWSER https://duckduckgo.com ##bindsym XF86Go exec diff --git a/.config/newsboat/urls b/.config/newsboat/urls index ffd70c9..e194609 100755 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -1,4 +1,4 @@ "query:to-read:flags # \"p\"" "query:astro-interesting:tags # \"Astro\" and (content # \"agn\" or content =~ \"polari\") and unread = \"yes\"" Astro "query:linux-new:tags # \"Linux\" and unread = \"yes\"" Linux -"query:news-new:tags # \"News\" and unread = \"yes\"" News +"query:news-new:tags # \"Presse_Alternative\" or tags # \"Presse_Traditionnelle\" or tags # \"Strasbourg\" and unread = \"yes\"" Presse_Alternative Presse_Traditionnelle diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 12cd407..caa21f3 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -47,7 +47,7 @@ local servers = { unsafeFixes = false, -- Whether or not to offer unsafe fixes as code actions. Ignored with the "Fix All" action -- Rules that are ignored when a pyproject.toml or ruff.toml is present: - lineLength = 80, -- Line length to pass to ruff checking and formatting + lineLength = 160, -- Line length to pass to ruff checking and formatting exclude = { "__about__.py" }, -- Files to be excluded by ruff checking select = { "F" }, -- Rules to be enabled by ruff ignore = { "D210" }, -- Rules to be ignored by ruff diff --git a/.local/bin/sysact b/.local/bin/sysact index c7d84b5..38c0b2b 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -10,7 +10,7 @@ esac cmds="\ 🔒 lock slock -🐻 hibernate ${hib:-doas_askpass systemctl suspend} +🐻 hibernate ${hib:-doas_askpass loginctl suspend} 🔃 reboot ${reb:-doas_askpass reboot} 🖥 shutdown ${shut:-doas_askpass shutdown -h now}"