diff --git a/knowledge base/kde.md b/knowledge base/kde.md index 659bded..80323f7 100644 --- a/knowledge base/kde.md +++ b/knowledge base/kde.md @@ -13,6 +13,10 @@ kwriteconfig5 --file kdeglobals --group 'KFileDialog Settings' \ --key 'Show hidden files' --type bool true ``` +## Prioritize a WiFi network connection + +Plasma-nm lets you change a network's priority specifying a number in the network's _General configuration_ tab. Higher numbers set a higher priority. + ## Further readings - [KDE Configuration Files] diff --git a/knowledge base/network manager.md b/knowledge base/network manager.md new file mode 100644 index 0000000..5dc4044 --- /dev/null +++ b/knowledge base/network manager.md @@ -0,0 +1,21 @@ +# Network Manager + +## TL;DR + +```sh +# Get all settings of a connection. +nmcli connection show 'Wired connection 1' + +# Change the autoconnect priority setting of a connection. +# Higher numbers set a higher priority. +nmcli connection modify 'it hurts when ip' connection.autoconnect-priority 1 + +# Start the TUI. +nmtui +``` + +## Sources + +- [nm-settings] + +[nm-settings]: https://people.freedesktop.org/~lkundrak/nm-docs/nm-settings.html