-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathiic-magic-bindkeys
39 lines (32 loc) · 1.33 KB
/
iic-magic-bindkeys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Useful bindkeys for Magic VLSI
# (c) 2021-2023 Harald Pretl
# Institute for Integrated Circuits, Johannes Kepler University Linz
macro 0 "see no * ; see locali ; see mcon"
macro ! "see no * ; see mcon ; see metal1 ; see via1"
macro @ "see no * ; see via1 ; see metal2 ; see via2"
macro # "see no * ; see via2 ; see metal3 ; see via3"
macro $ "see no * ; see via3 ; see metal4 ; see via4"
macro % "see no * ; see via4 ; see metal5"
macro 9 "see *"
# Here a useful one proposed by Matt Guthaus
macro = "drc find; findbox zoom; zoom 16"
# Here a few from sky130A/libs.tech/magic/sky130A-BindKeys
# mainly use the ones not altering original magic useage, as we
# want to stick to magic as much as we can; just adding the real
# useful ones
macro f "view"
macro ^f "sideways"
macro p "tool wire ; magic::trackwire %W pick"
macro k "magic::measure"
macro K "magic::unmeasure"
macro q "magic::gencell {} ; raise .params"
macro y "drc check ; drc why"
macro ? "select area ; what"
# Zoom on cursor using mouse scrollwheel, and left/right scroll
# with CTRL-scrollwheel (SHFT-scrollwheel moves up/down)
macro Control_XK_Pointer_Button4 "scroll l .05 w"
macro Control_XK_Pointer_Button5 "scroll r .05 w"
macro Shift_XK_Pointer_Button4 "scroll u .05 w"
macro Shift_XK_Pointer_Button5 "scroll d .05 w"
macro Button4 "zoom 0.70711"
macro Button5 "zoom 1.41421"