-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yml
199 lines (166 loc) · 4.98 KB
/
config.yml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
$mod: Mod1
# Your preferred terminal emulator
$term: termite
# Your preferred application launcher
# set $menu dmenu_run
$menu: dmenu_run -fn "Terminus-8" -nb "#000" -nf "#fff"
gaps:
inner: 5
# outer: 10
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
floating:
modifier: $mod
mouse: inverse
### Key bindings
bindings:
#
# Basics:
#
# start a terminal
- $mod+Return exec $term
# kill focused window
# bindsym $mod+Shift+q kill
- $mod+q kill
# start your launcher
- $mod+d exec $menu
# reload the configuration file
- $mod+Shift+c reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
- $mod+Shift+r restart
# exit sway (logs you out of your wayland session)
- $mod+Shift+q exit
#
# Moving around:
#
# Move your focus around with $mod+[h|j|k|l], like vim
- $mod+h focus left
- $mod+j focus down
- $mod+k focus up
- $mod+l focus right
# or use $mod+[up|down|left|right]
- $mod+Left focus left
- $mod+Down focus down
- $mod+Up focus up
- $mod+Right focus right
# _move_ the focused window with the same, but add Shift
- $mod+Shift+h move left
- $mod+Shift+j move down
- $mod+Shift+k move up
- $mod+Shift+l move right
# ditto, with arrow keys
- $mod+Shift+Left move left
- $mod+Shift+Down move down
- $mod+Shift+Up move up
- $mod+Shift+Right move right
#
# Workspaces:
#
# switch to workspace
- $mod+1 workspace 1
- $mod+2 workspace 2
- $mod+3 workspace 3
- $mod+4 workspace 4
- $mod+5 workspace 5
- $mod+6 workspace 6
- $mod+7 workspace 7
- $mod+8 workspace 8
- $mod+9 workspace 9
# move focused container to workspace
- $mod+Shift+1 move container to workspace 1
- $mod+Shift+2 move container to workspace 2
- $mod+Shift+3 move container to workspace 3
- $mod+Shift+4 move container to workspace 4
- $mod+Shift+5 move container to workspace 5
- $mod+Shift+6 move container to workspace 6
- $mod+Shift+7 move container to workspace 7
- $mod+Shift+8 move container to workspace 8
- $mod+Shift+9 move container to workspace 9
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+h or $mod+v, for horizontal and vertical splits
# respectively.
- $mod+m splith
- $mod+n splitv
# Switch the current container between different layout styles
- $mod+s layout stacking
- $mod+w layout tabbed
- $mod+e layout toggle split
# Make the current focus fullscreen
- $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
- $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
- $mod+space focus mode_toggle
# move focus to the parent container
- $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
- $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
- $mod+minus scratchpad show
#
# Custom bindings
#
- $mod+g exec chromium
- $mod+BackSpace exec thunar
- $mod+dead_acute exec $term -e ranger
- $mod+i exec $term -e "mosh scw -- tmux a -t irc"
modes:
# resize window (you can also use the mouse for that)
- name: resize
# These bindings trigger as soon as you enter the resize mode
bindings:
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
# resize <left|right|up|down> [<pixels>]
- h resize left 10
- j resize down 10
- k resize up 10
- l resize right 10
# same bindings, but for the arrow keys
- Left resize left 10
- Down resize down 10
- Up resize up 10
- Right resize right 10
# back to normal: Enter or Escape
- Return mode "default"
- Escape mode "default"
bars:
- id: bar-0
font: Terminus, FontAwesome 8
position: top
command: i3status
colors:
background: "#323232"
focused_workspace: "#323232 #323232 #fed7d0"
outputs:
- id: HDMI-1
background: /usr/share/sway/wallpaper.jpg
resolution: 1920x1080
position: 0,1920
- id: "*"
background: /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# inputs:
# - id:
# click_method: <none|button_areas|clickfinger>
# drag_lock: <true|false>
# dwt: <true|false>
# events: <enable|disable|disable_on_external_mouse>
# middle_emulation: <true|false>
# natural_scroll: <true|false>
# pointer_accel: <[-1,1]>
# scroll_method: <none|two_finger|edge|on_button_down>
# tap: <true|false>
# - id: 2:7:SynPS/2_Synaptics_TouchPad
# dwt: false