From 2b67a33ee70c08c616dfff22252c0a1d8d60f527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 1 Dec 2022 00:08:54 -0300 Subject: [PATCH] add controller pairing scripts --- user/controller.nix | 14 ++++++++++++++ user/home.nix | 1 + 2 files changed, 15 insertions(+) create mode 100644 user/controller.nix diff --git a/user/controller.nix b/user/controller.nix new file mode 100644 index 0000000..73ab483 --- /dev/null +++ b/user/controller.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, inputs, ... }: { + xdg.desktopEntries = { + connect-controller = { + name = "Connect Controller"; + exec = "bluetoothctl connect 84:30:95:97:1A:79"; + terminal = false; + }; + disconnect-controller = { + name = "Disconnect Controller"; + exec = "bluetoothctl disconnect 84:30:95:97:1A:79"; + terminal = false; + }; + }; +} diff --git a/user/home.nix b/user/home.nix index 7acfc1c..7d7e34a 100644 --- a/user/home.nix +++ b/user/home.nix @@ -3,6 +3,7 @@ let inherit (import ./variables.nix) key theme color accent font desktop; in { imports = [ + ./controller.nix ./waybar.nix ./helix.nix ./kakoune.nix