This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Left-handed | |
xsetwacom --set "Wacom Intuos Pro M Pen stylus" Rotate half | |
# Set right click to button 2 (button closest to tip) | |
xsetwacom --set "Wacom Intuos Pro M Pen stylus" Button 2 3 | |
# Set middle click to button 3 | |
xsetwacom --set "Wacom Intuos Pro M Pen stylus" Button 3 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set prompt="\n%d %D-%w-%Y %P\n[%n@%m | %~]\n(tcsh) > " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prompt | |
export PS1="\n\D{%a %d-%b-%Y} \t\n[\u@\h | \w]\n(bash) $ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "math.h" | |
// additional rotation on top of instance placements | |
vector rot_variance = chv("rot_variance"); | |
float x_rot = fit(rand(@ptnum+1), 0, 1, 0, rot_variance.x); | |
float y_rot = fit(rand(@ptnum+2), 0, 1, 0, rot_variance.y); | |
float z_rot = fit(rand(@ptnum+3), 0, 1, 0, rot_variance.z); | |
vector rotation = set(x_rot, y_rot, z_rot); | |
rotation = radians(rotation); | |
p@rot = eulertoquaternion(rotation, XFORM_SRT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string camera = chs("camera"); | |
vector screen_pos = toNDC(camera, @P); | |
float left_padding = chf("left_padding"); | |
float right_padding = chf("right_padding"); | |
float top_padding = chf("top_padding"); | |
float bottom_padding = chf("bottom_padding"); | |
f@outside = 0; | |
int outside_left = (screen_pos.x < (0 - left_padding)); |