-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.py
More file actions
79 lines (65 loc) · 2.82 KB
/
Copy pathConfig.py
File metadata and controls
79 lines (65 loc) · 2.82 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from utils.Keycodes import keycodes, modifiers
import utils.pytweening as pytweening
class Keys():
# Modifier key
modifier = modifiers["Mod1"] # AltLeft as default modifier
# Commands: mod + command
mode = keycodes["Space"] # Toggle mode: Master on the left, master on the top, master on the right, master on the bottom and floating mode
incm = keycodes["."]
decm = keycodes[","] # Set next/previous window as master
expandm = keycodes["]"]
shrinkm = keycodes["["] # Expand or shrink master window area
# List of keys to track when pressed
keycodes = [modifier, mode, incm, decm, expandm, shrinkm]
class Settings():
# Margins from the edge of the screen
# Useful when utilizing panels that won't put windows aside
margin_top = 40
margin_bottom = 40
margin_left = 40
margin_right = 40
# Useless gap between windows and screen edges
# Adds to the margins
gap = 10
# Moving and resizing speed in seconds
speed = 0.5
# Expand/Shrink master area at rate in pixels
master_resize_rate = 10
# Easing modes
easings = {
# Default linear easing
"linear": pytweening.linear,
# In/Out aliases
"Quad": pytweening.easeInOutQuad,
"Quart": pytweening.easeInOutQuart,
"Cubic": pytweening.easeInOutCubic,
"Quint": pytweening.easeInOutQuint,
"Sine": pytweening.easeInOutSine,
"Expo": pytweening.easeInOutExpo,
"Back": pytweening.easeInOutBack,
"Elastic": pytweening.easeInOutElastic,
"Bounce": pytweening.easeInOutBounce,
# One-way easings
"easeInQuad": pytweening.easeInQuad,
"easeOutQuad": pytweening.easeOutQuad,
"easeInCubic": pytweening.easeInCubic,
"easeOutCubic": pytweening.easeOutCubic,
"easeInQuart": pytweening.easeInQuart,
"easeOutQuart": pytweening.easeOutQuart,
"easeInQuint": pytweening.easeInQuint,
"easeOutQuint": pytweening.easeOutQuint,
"easeInSine": pytweening.easeInSine,
"easeOutSine": pytweening.easeOutSine,
"easeInExpo": pytweening.easeInExpo,
"easeOutExpo": pytweening.easeOutExpo,
"easeInCirc": pytweening.easeInCirc,
"easeOutCirc": pytweening.easeOutCirc,
"easeInOutCirc": pytweening.easeInOutCirc,
"easeInElastic": pytweening.easeInElastic,
"easeOutElastic": pytweening.easeOutElastic,
"easeInBack": pytweening.easeInBack,
"easeOutBack": pytweening.easeOutBack,
"easeInBounce": pytweening.easeInBounce,
"easeOutBounce": pytweening.easeOutBounce
}
easing = easings["linear"]