diff options
author | aszlig <aszlig@redmoonstudios.org> | 2013-01-09 22:36:44 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2013-01-09 22:36:44 +0100 |
commit | e6d4a62c2b387ca8f3ad86925d053935d0a38675 (patch) | |
tree | daf804e535aebabbaec4920a4604ee0c15297a15 | |
parent | 8d4f7fd9b7f1fa36a48d1c6996015429b90b9edb (diff) |
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 <aszlig@redmoonstudios.org>
-rw-r--r-- | cfgfiles/synergy.conf | 18 | ||||
-rw-r--r-- | machines/mmrnmhrm.nix | 4 |
2 files changed, 22 insertions, 0 deletions
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}" + ''; }; } |