Skip to content

Instantly share code, notes, and snippets.

View aurelienpierre's full-sized avatar
🚣‍♂️
I may be slow to respond.

Aurélien PIERRE aurelienpierre

🚣‍♂️
I may be slow to respond.
View GitHub Profile
@aurelienpierre
aurelienpierre / Wacom Intuos Configuration
Last active May 15, 2016 12:41
Manualy assign buttons configuration to Wacom Intuos Tablet. Save this into /usr/bin/tablette.sh
#!/bin/bash
export LANG="fr_FR.UTF-8"
## Pad
PAD="Wacom Intuos PT M Finger pad"
xsetwacom set "$PAD" Button 3 "key Ctrl Super T" #up left button ## configured as touch switch - Ctrl Super T is set to call Touch switch script in the OS
xsetwacom set "$PAD" Button 1 "key super" #bottom left button ## configured as "Menu"
xsetwacom set "$PAD" Button 9 "key Ctrl Z" #top right button ## configured as "Undo"
xsetwacom set "$PAD" Button 8 "key Ctrl Y" #bottom right button ## configured as "Redo"
@aurelienpierre
aurelienpierre / Touch switch
Last active January 4, 2016 15:29
Configure a Wacom Intuos (tablet) button touch switch - call this script through a special keystroke
#!/bin/bash
## Get the "Device name" or ID number
## for touch from 'xsetwacom list dev'
DEVICE="Wacom Intuos PT M Finger touch"
TOUCH_STATE=`xsetwacom get "$DEVICE" touch`
if [ "$TOUCH_STATE" == "on" ]
then
echo "Touch is ON, turning OFF."
@aurelienpierre
aurelienpierre / Image optimize
Created January 19, 2014 08:42
A simple script which applies non-destructive optimization algorithms on png and jpg files in order to adjust size vs quality. It proceeds every file in a directory. Linux only. It can easily be added in Nautilus through Nautilus-Actions.
#!/bin/bash
# Required commands :
# - optipng
# - jpegoptim
# optipng (non destructive)
optipng *.png
optipng *.PNG