From e6d4a62c2b387ca8f3ad86925d053935d0a38675 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 9 Jan 2013 22:36:44 +0100 Subject: mmrnmhrm: Add synergy call and configuration. So, now we no langer need to issue synergys by the window manager or in the shell, just log in and everything is set up :-) Well, of course you should only do something like this in a trusted environment, because this means, that mouse movements and keystrokes are sent unencrypted! Be sure to set up a SSH tunnel or something similar if you're in a hostile environment. Signed-off-by: aszlig --- cfgfiles/synergy.conf | 18 ++++++++++++++++++ machines/mmrnmhrm.nix | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 cfgfiles/synergy.conf diff --git a/cfgfiles/synergy.conf b/cfgfiles/synergy.conf new file mode 100644 index 00000000..57c4405f --- /dev/null +++ b/cfgfiles/synergy.conf @@ -0,0 +1,18 @@ +section: screens + dnyarri: + mmrnmhrm: +end + +section: links + mmrnmhrm: + left = dnyarri + right = dnyarri + dnyarri: + right = mmrnmhrm + left = mmrnmhrm +end + +section: options + keystroke(AudioPlay) = switchToScreen(dnyarri) + keystroke(Menu) = switchToScreen(mmrnmhrm) +end diff --git a/machines/mmrnmhrm.nix b/machines/mmrnmhrm.nix index 21bef953..61600ef7 100644 --- a/machines/mmrnmhrm.nix +++ b/machines/mmrnmhrm.nix @@ -69,5 +69,9 @@ with pkgs.lib; Option "RightOf" "left monitor" EndSection ''; + + displayManager.sessionCommands = '' + ${pkgs.synergy}/bin/synergys -c "${../cfgfiles/synergy.conf}" + ''; }; } -- cgit 1.4.1