From 6fd520839b315368a99abbd91bd535435b8b7919 Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Sun, 8 Jun 2025 10:02:44 -0500 Subject: [PATCH] Add bluetooth shortcut --- hosts/alpheratz/hardware-configuration.nix | 11 ++++++----- modules/home/sway.nix | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/alpheratz/hardware-configuration.nix b/hosts/alpheratz/hardware-configuration.nix index 6697c4a..575dc5b 100644 --- a/hosts/alpheratz/hardware-configuration.nix +++ b/hosts/alpheratz/hardware-configuration.nix @@ -31,11 +31,12 @@ options = [ "subvol=nix" ]; }; - fileSystems."/mnt/drive0" = - { device = "/dev/sr0"; - fsType = "auto"; - options = [ "ro" "user" "noauto" "unhide" ]; - }; +# Remove comments for optical drive in wine +# fileSystems."/mnt/drive0" = +# { device = "/dev/sr0"; +# fsType = "auto"; +# options = [ "ro" "user" "noauto" "unhide" ]; +# }; swapDevices = [ ]; diff --git a/modules/home/sway.nix b/modules/home/sway.nix index a906f38..a0f67e8 100644 --- a/modules/home/sway.nix +++ b/modules/home/sway.nix @@ -114,6 +114,7 @@ in "${modifier}+Shift+o" = "exec '${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${localPackages.x86_64-linux.gazou}/bin/gazou | tail -n +2 | ${pkgs.wl-clipboard}/bin/wl-copy'"; "${modifier}+Shift+q" = "kill"; "${modifier}+p" = "focus mode_toggle"; + "${modifier}+Control+b" = "exec bluetoothctl connect 18:3F:70:62:A5:3C"; "XF86AudioPause" = "exec playerctl play-pause"; "XF86AudioNext" = "exec playerctl next"; "XF86AudioPrev" = "exec playerctl previous";