Update headphones mac
parent
253c20bd20
commit
7795b10680
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
MAC=94:DB:56:79:7D:86
|
||||
MAC=88:C9:E8:AD:73:E8
|
||||
bluetoothctl info "$MAC" | grep -q 'Connected: yes' &&
|
||||
bluetoothctl disconnect "$MAC" || bluetoothctl connect "$MAC"
|
||||
|
|
|
@ -61,7 +61,7 @@ in {
|
|||
"exec --no-startup-id bash /home/yorick/dotfiles/bin/invert.sh";
|
||||
#"${mod}+ctrl+l" = "exec --no-startup-id loginctl lock-session";
|
||||
"${mod}+ctrl+l" =
|
||||
"exec --no-startup-id \"playerctl -a pause; (bluetoothctl disconnect 94:DB:56:79:7D:86 &) && sleep 1s && pkill -USR1 swayidle\"";
|
||||
"exec --no-startup-id \"playerctl -a pause; (bluetoothctl disconnect 88:C9:E8:AD:73:E8 &) && sleep 1s && pkill -USR1 swayidle\"";
|
||||
"${mod}+Return" = "exec alacritty";
|
||||
"${mod}+Escape" = "workspace back_and_forth";
|
||||
"${mod}+0" = "workspace 10";
|
||||
|
|
|
@ -5,6 +5,7 @@ let
|
|||
TF_SHELL = shell;
|
||||
HOME = "/build";
|
||||
} "${pkgs.thefuck}/bin/thefuck -a > $out";
|
||||
headphones = "88:C9:E8:AD:73:E8";
|
||||
in {
|
||||
imports = [ ./desktop.nix ./emacs.nix ./lumi.nix ];
|
||||
programs = {
|
||||
|
@ -99,8 +100,8 @@ in {
|
|||
nb = "nix build";
|
||||
nl = "nix log";
|
||||
g = "git";
|
||||
bc = "bluetoothctl connect 94:DB:56:79:7D:86";
|
||||
bd = "bluetoothctl disconnect 94:DB:56:79:7D:86";
|
||||
bc = "bluetoothctl connect ${headphones}";
|
||||
bd = "bluetoothctl disconnect ${headphones}";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
|
|
Loading…
Reference in New Issue