rc

Added the verbatim copy from /etc/sway as Sway config file.

Author
Maarten 'Vngngdn' Vangeneugden
Date
Nov. 13, 2016, 1:14 a.m.
Hash
7bee5fafb1dc2f0032cee78caa21603d3b7f3c31
Parent
6e50dc42947cb5a735c49aecd950b449443c0bc5
Modified file
sway/config

sway/config

204 additions and 0 deletions.

View changes Hide changes
+
1
#
+
2
# Copy this to ~/.config/sway/config and edit it to your liking.
+
3
#
+
4
# Read `man 5 sway` for a complete reference.
+
5
+
6
### Variables
+
7
#
+
8
# Logo key. Use Mod1 for Alt.
+
9
set $mod Mod4
+
10
# Home row direction keys, like vim
+
11
set $left h
+
12
set $down j
+
13
set $up k
+
14
set $right l
+
15
# Your preferred terminal emulator
+
16
set $term urxvt
+
17
# Your preferred application launcher
+
18
set $menu dmenu_run
+
19
+
20
### Output configuration
+
21
#
+
22
# Default wallpaper (more resolutions are available in /usr/share/sway/)
+
23
output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
+
24
#
+
25
# Example configuration:
+
26
#
+
27
#   output HDMI-A-1 resolution 1920x1080 position 1920,0
+
28
#
+
29
# You can get the names of your outputs by running: swaymsg -t get_outputs
+
30
+
31
### Input configuration
+
32
#
+
33
# Example configuration:
+
34
#
+
35
#   input "2:14:SynPS/2_Synaptics_TouchPad" {
+
36
#       dwt enabled
+
37
#       tap enabled
+
38
#       natural_scroll enabled
+
39
#       middle_emulation enabled
+
40
#   }
+
41
#
+
42
# You can get the names of your inputs by running: swaymsg -t get_inputs
+
43
# The escape symbol "\" has to be removed.
+
44
# Read `man 5 sway-input` for more information about this section.
+
45
+
46
### Key bindings
+
47
#
+
48
# Basics:
+
49
#
+
50
    # start a terminal
+
51
    bindsym $mod+Return exec $term
+
52
+
53
    # kill focused window
+
54
    bindsym $mod+Shift+q kill
+
55
+
56
    # start your launcher
+
57
    bindsym $mod+d exec $menu
+
58
+
59
    # Drag floating windows by holding down $mod and left mouse button.
+
60
    # Resize them with right mouse button + $mod.
+
61
    # Despite the name, also works for non-floating windows.
+
62
    # Change normal to inverse to use left mouse button for resizing and right
+
63
    # mouse button for dragging.
+
64
    floating_modifier $mod normal
+
65
+
66
    # reload the configuration file
+
67
    bindsym $mod+Shift+c reload
+
68
+
69
    # exit sway (logs you out of your wayland session)
+
70
    bindsym $mod+Shift+e exit
+
71
#
+
72
# Moving around:
+
73
#
+
74
    # Move your focus around
+
75
    bindsym $mod+$left focus left
+
76
    bindsym $mod+$down focus down
+
77
    bindsym $mod+$up focus up
+
78
    bindsym $mod+$right focus right
+
79
    # or use $mod+[up|down|left|right]
+
80
    bindsym $mod+Left focus left
+
81
    bindsym $mod+Down focus down
+
82
    bindsym $mod+Up focus up
+
83
    bindsym $mod+Right focus right
+
84
+
85
    # _move_ the focused window with the same, but add Shift
+
86
    bindsym $mod+Shift+$left move left
+
87
    bindsym $mod+Shift+$down move down
+
88
    bindsym $mod+Shift+$up move up
+
89
    bindsym $mod+Shift+$right move right
+
90
    # ditto, with arrow keys
+
91
    bindsym $mod+Shift+Left move left
+
92
    bindsym $mod+Shift+Down move down
+
93
    bindsym $mod+Shift+Up move up
+
94
    bindsym $mod+Shift+Right move right
+
95
#
+
96
# Workspaces:
+
97
#
+
98
    # switch to workspace
+
99
    bindsym $mod+1 workspace 1
+
100
    bindsym $mod+2 workspace 2
+
101
    bindsym $mod+3 workspace 3
+
102
    bindsym $mod+4 workspace 4
+
103
    bindsym $mod+5 workspace 5
+
104
    bindsym $mod+6 workspace 6
+
105
    bindsym $mod+7 workspace 7
+
106
    bindsym $mod+8 workspace 8
+
107
    bindsym $mod+9 workspace 9
+
108
    bindsym $mod+0 workspace 10
+
109
    # move focused container to workspace
+
110
    bindsym $mod+Shift+1 move container to workspace 1
+
111
    bindsym $mod+Shift+2 move container to workspace 2
+
112
    bindsym $mod+Shift+3 move container to workspace 3
+
113
    bindsym $mod+Shift+4 move container to workspace 4
+
114
    bindsym $mod+Shift+5 move container to workspace 5
+
115
    bindsym $mod+Shift+6 move container to workspace 6
+
116
    bindsym $mod+Shift+7 move container to workspace 7
+
117
    bindsym $mod+Shift+8 move container to workspace 8
+
118
    bindsym $mod+Shift+9 move container to workspace 9
+
119
    bindsym $mod+Shift+0 move container to workspace 10
+
120
    # Note: workspaces can have any name you want, not just numbers.
+
121
    # We just use 1-10 as the default.
+
122
#
+
123
# Layout stuff:
+
124
#
+
125
    # You can "split" the current object of your focus with
+
126
    # $mod+b or $mod+v, for horizontal and vertical splits
+
127
    # respectively.
+
128
    bindsym $mod+b splith
+
129
    bindsym $mod+v splitv
+
130
+
131
    # Switch the current container between different layout styles
+
132
    bindsym $mod+s layout stacking
+
133
    bindsym $mod+w layout tabbed
+
134
    bindsym $mod+e layout toggle split
+
135
+
136
    # Make the current focus fullscreen
+
137
    bindsym $mod+f fullscreen
+
138
+
139
    # Toggle the current focus between tiling and floating mode
+
140
    bindsym $mod+Shift+space floating toggle
+
141
+
142
    # Swap focus between the tiling area and the floating area
+
143
    bindsym $mod+space focus mode_toggle
+
144
+
145
    # move focus to the parent container
+
146
    bindsym $mod+a focus parent
+
147
#
+
148
# Scratchpad:
+
149
#
+
150
    # Sway has a "scratchpad", which is a bag of holding for windows.
+
151
    # You can send windows there and get them back later.
+
152
+
153
    # Move the currently focused window to the scratchpad
+
154
    bindsym $mod+Shift+minus move scratchpad
+
155
+
156
    # Show the next scratchpad window or hide the focused scratchpad window.
+
157
    # If there are multiple scratchpad windows, this command cycles through them.
+
158
    bindsym $mod+minus scratchpad show
+
159
#
+
160
# Resizing containers:
+
161
#
+
162
mode "resize" {
+
163
    # left will shrink the containers width
+
164
    # right will grow the containers width
+
165
    # up will shrink the containers height
+
166
    # down will grow the containers height
+
167
    bindsym $left resize shrink width 10 px or 10 ppt
+
168
    bindsym $down resize grow height 10 px or 10 ppt
+
169
    bindsym $up resize shrink height 10 px or 10 ppt
+
170
    bindsym $right resize grow width 10 px or 10 ppt
+
171
+
172
    # ditto, with arrow keys
+
173
    bindsym Left resize shrink width 10 px or 10 ppt
+
174
    bindsym Down resize grow height 10 px or 10 ppt
+
175
    bindsym Up resize shrink height 10 px or 10 ppt
+
176
    bindsym Right resize grow width 10 px or 10 ppt
+
177
+
178
    # return to default mode
+
179
    bindsym Return mode "default"
+
180
    bindsym Escape mode "default"
+
181
}
+
182
bindsym $mod+r mode "resize"
+
183
+
184
#
+
185
# Status Bar:
+
186
#
+
187
# Read `man 5 sway-bar` for more information about this section.
+
188
bar {
+
189
    position top
+
190
    colors {
+
191
        statusline #ffffff
+
192
        background #323232
+
193
        inactive_workspace #32323200 #32323200 #5c5c5c
+
194
    }
+
195
}
+
196
+
197
# You may want this:
+
198
#
+
199
# include ~/.config/sway/conf.d/*
+
200
#
+
201
# Protip:
+
202
#
+
203
# include ~/.config/sway/`hostname`/*
+
204
# include ~/.config/sway/`hostname`/*