Re: [systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Reindl Harald
Am 04.11.2016 um 16:26 schrieb Cecil Westerhof: 2016-11-04 15:46 GMT+01:00 Cecil Westerhof : I want to set my own keyboard definitions when they get lost. They sometimes do. The only way of doing this automatically is in a cronjob or a systemd service. I would prefer a systemd service. But for

Re: [systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Cecil Westerhof
2016-11-04 15:46 GMT+01:00 Cecil Westerhof : > I want to set my own keyboard definitions when they get lost. They > sometimes do. The only way of doing this automatically is in a cronjob > or a systemd service. I would prefer a systemd service. But for the > moment I rewrite the script to be run fr

Re: [systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Cecil Westerhof
2016-11-04 13:29 GMT+01:00 Mantas Mikulėnas : > On Fri, Nov 4, 2016 at 1:47 PM, Cecil Westerhof > wrote: >> >> I have a script I want to run as a service which uses: >> xmodmap -pk >> I have to define the DISPLAY, so I use: >> export DISPLAY=:0.0 >> >> But this gives: >> export DISPLAY

Re: [systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Lennart Poettering
On Fri, 04.11.16 12:47, Cecil Westerhof (cldwester...@gmail.com) wrote: > I have a script I want to run as a service which uses: > xmodmap -pk > I have to define the DISPLAY, so I use: > export DISPLAY=:0.0 > > But this gives: > export DISPLAY=:0.0 > xmodmap: unable to open displ

Re: [systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Mantas Mikulėnas
On Fri, Nov 4, 2016 at 1:47 PM, Cecil Westerhof wrote: > I have a script I want to run as a service which uses: > xmodmap -pk > I have to define the DISPLAY, so I use: > export DISPLAY=:0.0 > > But this gives: > export DISPLAY=:0.0 > xmodmap: unable to open display ':0.0' > > Whe

[systemd-devel] xmodmap gives: No protocol specified

2016-11-04 Thread Cecil Westerhof
I have a script I want to run as a service which uses: xmodmap -pk I have to define the DISPLAY, so I use: export DISPLAY=:0.0 But this gives: export DISPLAY=:0.0 xmodmap: unable to open display ':0.0' When I try the same with at, I do not have this problem. What is happening he