From deec536a0a7d37c439b46a4058b65c713ba15019 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 28 Mar 2024 11:39:44 +0300 Subject: [PATCH] Sway : Add NM and bluetooth controls. --- module/Sway.nix | 18 +++++++++++------- module/sway/module/10-Bluetooth | 1 + module/sway/module/10-Network | 1 + module/sway/module/{10-Volume => 10-Sound} | 0 4 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 module/sway/module/10-Bluetooth create mode 100644 module/sway/module/10-Network rename module/sway/module/{10-Volume => 10-Sound} (100%) diff --git a/module/Sway.nix b/module/Sway.nix index a214882..af03a5a 100644 --- a/module/Sway.nix +++ b/module/Sway.nix @@ -19,13 +19,14 @@ # Extra apps. services.gnome.gnome-keyring.enable = lib.mkForce false; environment.systemPackages = with pkgs; [ - grim # Screenshot. - mako # Notification system. - pamixer # Audio. - pavucontrol # Audio. - pulseaudio # Audio. - slurp # Screenshot. - wl-clipboard # Clipboard. + grim # Screenshot. + mako # Notification system. + networkmanagerapplet # Internet configuration. + pamixer # Audio. + pavucontrol # Audio. + pulseaudio # Audio. + slurp # Screenshot. + wl-clipboard # Clipboard. ]; # Sway. @@ -67,6 +68,9 @@ # Brightness control. programs.light.enable = true; + # Bluetooth. + services.blueman.enable = true; + # Configs. environment.variables = { FOOT_CONFIG = ./foot/Foot.ini; diff --git a/module/sway/module/10-Bluetooth b/module/sway/module/10-Bluetooth new file mode 100644 index 0000000..ace47d2 --- /dev/null +++ b/module/sway/module/10-Bluetooth @@ -0,0 +1 @@ +bindsym $mod+b exec 'blueman-manager' diff --git a/module/sway/module/10-Network b/module/sway/module/10-Network new file mode 100644 index 0000000..ed65dcb --- /dev/null +++ b/module/sway/module/10-Network @@ -0,0 +1 @@ +bindsym $mod+n exec 'nm-connection-editor' diff --git a/module/sway/module/10-Volume b/module/sway/module/10-Sound similarity index 100% rename from module/sway/module/10-Volume rename to module/sway/module/10-Sound