Giter Site home page Giter Site logo

nf02 / dmenuwacom Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 1.0 279 KB

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: MIT License

Shell 85.96% Roff 14.04%
wacom dmenu-scripts dwm dwm-wacom wacom-gui zsh-script dunst linux arch arch-linux suckless suckless-software wacom-graphics-tablets dmenu zsh profiles front-end debain gentoo

dmenuwacom's Introduction

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

dmenuwacom's People

Contributors

nf02 avatar public-void-ryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dmenuwacom's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.