add controller pairing scripts

This commit is contained in:
Leonardo Eugênio 2022-12-01 00:08:54 -03:00
parent 4f15bf99d4
commit 2b67a33ee7
2 changed files with 15 additions and 0 deletions

14
user/controller.nix Normal file
View file

@ -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;
};
};
}

View file

@ -3,6 +3,7 @@ let inherit (import ./variables.nix) key theme color accent font desktop;
in { in {
imports = [ imports = [
./controller.nix
./waybar.nix ./waybar.nix
./helix.nix ./helix.nix
./kakoune.nix ./kakoune.nix