Skip to content

Instantly share code, notes, and snippets.

View Deevad's full-sized avatar

David Revoy Deevad

View GitHub Profile
@Deevad
Deevad / wacom.sh
Last active October 10, 2022 10:49
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.
#! /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 )
@Deevad
Deevad / quick-scan.sh
Created April 5, 2017 12:36
Quick scan: a bash script to obtain a PNG 300ppi scan on your home folder.
#!/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_Intuos-3-9x12.sh
Created December 13, 2017 22:34
My wacom Intuos3 A4 xsetwacom script
#! /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"