summaryrefslogtreecommitdiff
path: root/default_sxwmrc
blob: 5cfc524fa12d5c52ca134471bace63bdbf6e5c70 (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Colour Themes:
focused_border_colour    : #c0cbff
unfocused_border_colour  : #555555
swap_border_colour       : #fff4c0

# General Options:
gaps                    : 10
border_width            : 1
master_width            : 60 # Percentage of screen width
resize_master_amount    : 1
resize_stack_amt        : 20
move_window_amount      : 50
resize_window_amount    : 50
snap_distance           : 5
motion_throttle         : 60 # Set to screen refresh rate for smoothest motions
should_float            : "pcmanfm", "obs"
new_win_focus           : true
warp_cursor             : true
floating_on_top         : true
new_win_master          : false
can_swallow             : "st"
can_be_swallowed        : "mpv", "sxiv"
start_fullscreen        : "mpv", "vlc"

# Keybinds:
# Commands must be surrounded with ""
# Function calls don't need this

mod_key : super

# Application Launchers:
bind : mod + Return : "st"
bind : mod + b : "firefox"
bind : mod + p : "dmenu_run"

# Window Management:
call : mod + shift + q : close_window
call : mod + c : centre_window
call : mod + shift + e : quit

# Focus Movement:
call : mod + j : focus_next
call : mod + k : focus_prev

# Monitor Focus:
call : mod + comma : focus_prev_mon
call : mod + period : focus_next_mon

# Move Window Between Monitors:
call : mod + shift + comma : move_prev_mon
call : mod + shift + period : move_next_mon

# Master/Stack Movement
call : mod + shift + j : master_next
call : mod + shift + k : master_previous

# Master Area Resize
call : mod + l : master_increase
call : mod + h : master_decrease

# Stack Window Resize
call : mod + ctrl + l : stack_increase
call : mod + ctrl + h : stack_decrease

# Keyboard Window Management
call : mod + Up : move_win_up
call : mod + Down : move_win_down
call : mod + Left : move_win_left
call : mod + Right : move_win_right

call : mod + shift + Up : resize_win_up
call : mod + shift + Down : resize_win_down
call : mod + shift + Left : resize_win_left
call : mod + shift + Right : resize_win_right

# Gaps 
call : mod + equal : increase_gaps
call : mod + minus : decrease_gaps

# Floating/Fullscreen
call : mod + space : toggle_floating
call : mod + shift + space : global_floating
call : mod + shift + f : fullscreen

# Reload Config
call : mod + r : reload_config

# Scratchpads
scratchpad : mod + alt + 1 : create 1
scratchpad : mod + alt + 2 : create 2
scratchpad : mod + alt + 3 : create 3
scratchpad : mod + alt + 4 : create 4

scratchpad : mod + ctrl + 1 : toggle 1
scratchpad : mod + ctrl + 2 : toggle 2
scratchpad : mod + ctrl + 3 : toggle 3
scratchpad : mod + ctrl + 4 : toggle 4

scratchpad : mod + alt + shift + 1 : remove 1
scratchpad : mod + alt + shift + 2 : remove 2
scratchpad : mod + alt + shift + 3 : remove 3
scratchpad : mod + alt + shift + 4 : remove 4

# Workspaces (1-9)
workspace : mod + 1          : move 1
workspace : mod + shift + 1  : swap 1
workspace : mod + 2          : move 2
workspace : mod + shift + 2  : swap 2
workspace : mod + 3          : move 3
workspace : mod + shift + 3  : swap 3
workspace : mod + 4          : move 4
workspace : mod + shift + 4  : swap 4
workspace : mod + 5          : move 5
workspace : mod + shift + 5  : swap 5
workspace : mod + 6          : move 6
workspace : mod + shift + 6  : swap 6
workspace : mod + 7          : move 7
workspace : mod + shift + 7  : swap 7
workspace : mod + 8          : move 8
workspace : mod + shift + 8  : swap 8
workspace : mod + 9          : move 9
workspace : mod + shift + 9  : swap 9