aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-16 10:49:20 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-16 10:49:20 -0400
commit749238b130e766fbdb46c1cb4401e970e4b44dc7 (patch)
treead25d74ba4bbfceeb4e9ceff5c7320dd32389aa8 /config
parentUpdate readme (diff)
downloadsway-749238b130e766fbdb46c1cb4401e970e4b44dc7.tar.gz
sway-749238b130e766fbdb46c1cb4401e970e4b44dc7.tar.zst
sway-749238b130e766fbdb46c1cb4401e970e4b44dc7.zip
Add default config file
Diffstat (limited to 'config')
-rw-r--r--config117
1 files changed, 117 insertions, 0 deletions
diff --git a/config b/config
new file mode 100644
index 00000000..114aa6bd
--- /dev/null
+++ b/config
@@ -0,0 +1,117 @@
1# Default config for sway
2#
3# Sway is a work in progress implementation of i3 for wayland.
4# Note that some of these defaults may be unimplemented.
5#
6# Please see http://i3wm.org/docs/userguide.html for a complete reference!
7
8# Font for window titles. Will also be used by the bar unless a different font
9# is used in the bar {} block below.
10font pango:DejaVu Sans Mono 8
11
12# use these keys for focus, movement, and resize directions when reaching for
13# the arrows is not convenient
14set $up l
15set $down k
16set $left j
17set $right semicolon
18
19# use Mouse+Mod1 to drag floating windows to their wanted position
20floating_modifier Mod1
21
22# start a terminal
23bindsym Mod1+Return exec urxvt
24
25# kill focused window
26bindsym Mod1+Shift+q kill
27
28# start dmenu (a program launcher)
29bindsym Mod1+d exec dmenu_run
30
31# change focus
32bindsym Mod1+$left focus left
33bindsym Mod1+$down focus down
34bindsym Mod1+$up focus up
35bindsym Mod1+$right focus right
36
37# alternatively, you can use the cursor keys:
38bindsym Mod1+Left focus left
39bindsym Mod1+Down focus down
40bindsym Mod1+Up focus up
41bindsym Mod1+Right focus right
42
43# move focused window
44bindsym Mod1+Shift+$left move left
45bindsym Mod1+Shift+$down move down
46bindsym Mod1+Shift+$up move up
47bindsym Mod1+Shift+$right move right
48
49# alternatively, you can use the cursor keys:
50bindsym Mod1+Shift+Left move left
51bindsym Mod1+Shift+Down move down
52bindsym Mod1+Shift+Up move up
53bindsym Mod1+Shift+Right move right
54
55# split in horizontal orientation
56bindsym Mod1+h splith
57
58# split in vertical orientation
59bindsym Mod1+v splitv
60
61# enter fullscreen mode for the focused container
62bindsym Mod1+f fullscreen
63
64# change container layout (stacked, tabbed, toggle split)
65bindsym Mod1+s layout stacking
66bindsym Mod1+w layout tabbed
67bindsym Mod1+e layout toggle split
68
69# toggle tiling / floating
70bindsym Mod1+Shift+space floating toggle
71
72# change focus between tiling / floating windows
73bindsym Mod1+space focus mode_toggle
74
75# focus the parent container
76bindsym Mod1+a focus parent
77
78# focus the child container
79#bindsym Mod1+d focus child
80
81# move the currently focused window to the scratchpad
82bindsym Mod1+Shift+minus move scratchpad
83
84# Show the next scratchpad window or hide the focused scratchpad window.
85# If there are multiple scratchpad windows, this command cycles through them.
86bindsym Mod1+minus scratchpad show
87
88# switch to workspace
89bindsym Mod1+1 workspace 1
90bindsym Mod1+2 workspace 2
91bindsym Mod1+3 workspace 3
92bindsym Mod1+4 workspace 4
93bindsym Mod1+5 workspace 5
94bindsym Mod1+6 workspace 6
95bindsym Mod1+7 workspace 7
96bindsym Mod1+8 workspace 8
97bindsym Mod1+9 workspace 9
98bindsym Mod1+0 workspace 10
99
100# move focused container to workspace
101bindsym Mod1+Shift+1 move container to workspace 1
102bindsym Mod1+Shift+2 move container to workspace 2
103bindsym Mod1+Shift+3 move container to workspace 3
104bindsym Mod1+Shift+4 move container to workspace 4
105bindsym Mod1+Shift+5 move container to workspace 5
106bindsym Mod1+Shift+6 move container to workspace 6
107bindsym Mod1+Shift+7 move container to workspace 7
108bindsym Mod1+Shift+8 move container to workspace 8
109bindsym Mod1+Shift+9 move container to workspace 9
110bindsym Mod1+Shift+0 move container to workspace 10
111
112# reload the configuration file
113bindsym Mod1+Shift+c reload
114# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
115bindsym Mod1+Shift+r restart
116# exit sway (logs you out of your wayland session)
117bindsym Mod1+Shift+e exit