Skip to content

DMenuWacom is a script that allows you to manage Wacom graphics tablets, allows you to remap keys, create custom profiles and even select a screen of your choice. It is meant for zsh so to run it among the dependencies it requires that too, but actually even if you use bash as the default shell, the important thing is to have zsh installed

License

Notifications You must be signed in to change notification settings

NF02/dmenuWacom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmenuWacom

This script is used to remap the texts of Wacom graphics tablets. It is based on ZSH and is not compatible with bash without making changes. There are ready-made profiles for some applications.

Profiles compatible devices

  • Wacom Intuos series
 -----------------
 | 1 | 2 | 3 | 8 |
 -----------------

Community help will be needed to improve the program.

Install dependencies

Arch Linux

sudo pacman -S git dunst xf86-input-wacom xrandr

Gentoo

sudo emerge -av dev-vcs/git xf86-input-wacom xrandr

Install dmenu

git clone https://github.com/NF02/dmenu && cd dmenu && make && sudo make install

Warning: dunst is not a mandatory package, for the simple fact that if you already have a notification manager it will be totally useless.

The dmenu that is used in this script is the one present in my repository.

For more information, consult the hacking guidelines on the suckless.org official website

Profile model

It is a new feature and now it allows you to create profiles very quickly, obviously you have to use the xsetwacom syntax but it is certainly more practical than having to overwhelm the main script. Logically, the mode is apparently similar to the previous one but much better refined.

#!/bin/env zsh
PAD=$1
button1="<++>"
button2="<++>"
button3="<++>"
button4="<++>"

xsetwacom set "$PAD" Button 1 key $button1 &&
xsetwacom set "$PAD" Button 2 key $button2 &&
xsetwacom set "$PAD" Button 3 key $button3 &&
xsetwacom set "$PAD" Button 8 key $button4

Obviously this is the basic model but you can also insert other instructions that can be useful to make everything more practical.

The format used for the profile files is .dmwa (dmenuwacom additions), to indicate that they are external files and this is done to recognize them against other script files present in the directory.

Warning: in the case of Emojis or special characters

In case st has a crash or does not display the fonts, install the libxft-bgra present in the AUR.

Do you want to support my project?

ko-fi

About

DMenuWacom is a script that allows you to manage Wacom graphics tablets, allows you to remap keys, create custom profiles and even select a screen of your choice. It is meant for zsh so to run it among the dependencies it requires that too, but actually even if you use bash as the default shell, the important thing is to have zsh installed

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published