Files
linux-configs/systemd/monitor-switch/monitor-hotplug.service

9 lines
288 B
Desktop File

[Unit]
Description=Update Monitor outputs
[Service]
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/nnm/.Xauthority
Type=oneshot
ExecStart=/bin/bash -c "/usr/bin/scala -nc -save /usr/local/src/update-output.scala && setxkbmap -option grp:switch,grp:caps_toggle,grp_led:scroll us,ru"