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