{"id":623,"date":"2019-01-19T20:55:16","date_gmt":"2019-01-19T19:55:16","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=623"},"modified":"2019-01-19T20:55:16","modified_gmt":"2019-01-19T19:55:16","slug":"synergy-and-sddm","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=623","title":{"rendered":"Synergy and SDDM"},"content":{"rendered":"\n<p>For SDDM to connect to a synergy server on archlinux, edit \/usr\/share\/sddm\/scripts\/Xsetup and add:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/bin\/synergyc &lt;server IP or server hostname><\/pre>\n\n\n\n<p>There&#8217;s just a little problem if you have more than one monitor. The default Xorg config mirrors all screens. That&#8217;s no problem, since KDE sets it all up properly. Unfortunately synergyc doesn&#8217;t register the changes, so you have to restart it. Since by then synergyc is running as root, you can&#8217;t kill it as user. But fear not, there&#8217;s a workaround:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Allow the user to execute \/usr\/bin\/killall synergyc as root without password (see <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=620\">https:\/\/tollana.d-tor.org\/notes-to-self\/?p=620)<\/a><\/li><li>Kill all synergy instances in an autostart script and start a user instance preferably in the systemd user session:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/bash <br>sudo \/usr\/bin\/killall synergyc <br>systemctl --user restart synergyc<br><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>make it executable, put it somewhere the user can access it and auto-start it. In KDE: System Settings -> Startup and Shutdown -> Autostart -> Script File<\/li><li>make sure that you have synergyc.service in $HOME\/.config\/systemd\/user<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">[Unit]<br>Description=Synergy Client Daemon <br>After=network.target <br> <br>[Service] <br>ExecStart=\/usr\/bin\/synergyc --no-daemon &lt;Server IP or Hostname> <br>Restart=always <br>RestartSec=3 <br> <br>[Install] <br>WantedBy=default.target<br><\/pre>\n\n\n\n<p>This works with KillUserProcesses=yes in \/etc\/systemd\/logind.conf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For SDDM to connect to a synergy server on archlinux, edit \/usr\/share\/sddm\/scripts\/Xsetup and add: \/usr\/bin\/synergyc &lt;server IP or server hostname> There&#8217;s just a little problem if you have more than one monitor. The default Xorg config mirrors all screens. That&#8217;s no problem, since KDE sets it all up properly. Unfortunately synergyc doesn&#8217;t register the changes, &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=623\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Synergy and SDDM<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,13,77],"tags":[145,146],"class_list":["post-623","post","type-post","status-publish","format-standard","hentry","category-arch-linux","category-desktop","category-linux","tag-synergyc","tag-synergys"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=623"}],"version-history":[{"count":2,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/623\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}