Page 1 of 1

Gtkdialog script to map Veikk A50 tablet area only on a monitor when use dual monitor

Posted: Thu Sep 02, 2021 10:17 am
by recobayu

Code: Select all

#!/bin/bash
# make veikk a50 only on a monitor in dual monitor

# list semua monitor
ganti(){
	veikk_id=$(xinput |grep "VEIKK A50".*pointer|cut -f2|cut -c 4-5|head -1)
	#echo "$veikk_id"
	xsetwacom --set "$veikk_id" MapToOutput $cbMonitor
}
export -f ganti
# reset
reset(){
	veikk_id=$(xinput |grep "VEIKK A50".*pointer|cut -f2|cut -c 4-5|head -1)
	AllMonitors=$(xrandr|grep current|awk '{print $8$9$10"+0+0"}'|sed 's/,//')
	xsetwacom --set "$veikk_id" MapToOutput $AllMonitors
}
export -f reset

export guiku='
<vbox>
	<hbox>
	<text>
		<label>Monitors avaliable:</label>
	</text>
	
	<comboboxentry active="0">
		<variable>cbMonitor</variable>
		<input>xrandr|grep " connected"|cut -d" " -f1</input>
		<action>ganti</action>
	</comboboxentry>
	</hbox>
	
	<button>
		<label>reset to All monitor</label>
		<action>reset</action>
	</button>

	<button ok></button>
</vbox>'

gtkdialog -p guiku


Re: Gtkdialog script to map Veikk A50 tablet area only on a monitor when use dual monitor

Posted: Tue Sep 28, 2021 6:16 am
by recobayu

Alhamdulillah, now Veikk has the driver for linux on their website:
https://www.veikk.com/support/download.html
.deb and .rpm available there.

Read more ..
https://github.com/jlam55555/veikk-linu ... /issues/71