Skip to content

Instantly share code, notes, and snippets.

Avatar

David Revoy Deevad

View GitHub Profile
@Deevad
Deevad / wacom_Intuos-3-9x12.sh
Created Dec 13, 2017
My wacom Intuos3 A4 xsetwacom script
View wacom_Intuos-3-9x12.sh
#! /bin/bash
# Setup xsetwacom script for Intuos 3 9x12
# License: CC-0/Public-Domain license
# author: deevad
# Tablet definition
tabletstylus="Wacom Intuos3 9x12 Pen stylus"
tableteraser="Wacom Intuos3 9x12 Pen eraser"
tabletpad="Wacom Intuos3 9x12 Pad pad"
@Deevad
Deevad / quick-scan.sh
Created Apr 5, 2017
Quick scan: a bash script to obtain a PNG 300ppi scan on your home folder.
View quick-scan.sh
#!/bin/bash
# Quick scan: a script to obtain a PNG 300ppi scan on your home folder.
# Configure: change the device name (line 11) with your scanner ID running: scanimage -L
# Dependencies: sane and libsane to scan (line 11) , imagemagick for cleaning (line 13), and notify-send for pretty D.E. notification (line 16).
# License: CC-0; author <info@davidrevoy.com>
version=$(date +%Y-%m-%d_%Hh%M%S)
touch /tmp/"$version"_scanner.tiff
@Deevad
Deevad / wacom.sh
Last active Jan 24, 2021
A bash script for an advanced setup of a Wacom on Linux : with a grep, automatic parsing of the Wacom identifier, of the screen, of dpi and with a precision mode ( drawing at 1:1 scale , the tablet / the screen ) . Only the button layout remain custom to the model ( Intuos 3 in this example ) and can be easily adapted with other buttons ID.
View wacom.sh
#! /bin/bash
# A bash script for an advanced setup of a Wacom on Linux :
# with a grep, automatic parsing of the Wacom identifier, of the screen, of dpi and with a precision mode
# ( drawing at 1:1 scale , the tablet / the screen ) .
# Only the button layout remain custom to the model ( Intuos 3 in this example )
# and can be easily adapted with other buttons ID.
#
# Dependencies: libwacom (xsetwacom), Bash and bc for the math, xrandr
# optional: Gnome icon, notify-send
# ( tested/created on Mint 17.2 Cinnamon, 11/2015 )