diff options
Diffstat (limited to 'config')
-rw-r--r-- | config | 117 |
1 files changed, 117 insertions, 0 deletions
@@ -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. | ||
10 | font 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 | ||
14 | set $up l | ||
15 | set $down k | ||
16 | set $left j | ||
17 | set $right semicolon | ||
18 | |||
19 | # use Mouse+Mod1 to drag floating windows to their wanted position | ||
20 | floating_modifier Mod1 | ||
21 | |||
22 | # start a terminal | ||
23 | bindsym Mod1+Return exec urxvt | ||
24 | |||
25 | # kill focused window | ||
26 | bindsym Mod1+Shift+q kill | ||
27 | |||
28 | # start dmenu (a program launcher) | ||
29 | bindsym Mod1+d exec dmenu_run | ||
30 | |||
31 | # change focus | ||
32 | bindsym Mod1+$left focus left | ||
33 | bindsym Mod1+$down focus down | ||
34 | bindsym Mod1+$up focus up | ||
35 | bindsym Mod1+$right focus right | ||
36 | |||
37 | # alternatively, you can use the cursor keys: | ||
38 | bindsym Mod1+Left focus left | ||
39 | bindsym Mod1+Down focus down | ||
40 | bindsym Mod1+Up focus up | ||
41 | bindsym Mod1+Right focus right | ||
42 | |||
43 | # move focused window | ||
44 | bindsym Mod1+Shift+$left move left | ||
45 | bindsym Mod1+Shift+$down move down | ||
46 | bindsym Mod1+Shift+$up move up | ||
47 | bindsym Mod1+Shift+$right move right | ||
48 | |||
49 | # alternatively, you can use the cursor keys: | ||
50 | bindsym Mod1+Shift+Left move left | ||
51 | bindsym Mod1+Shift+Down move down | ||
52 | bindsym Mod1+Shift+Up move up | ||
53 | bindsym Mod1+Shift+Right move right | ||
54 | |||
55 | # split in horizontal orientation | ||
56 | bindsym Mod1+h splith | ||
57 | |||
58 | # split in vertical orientation | ||
59 | bindsym Mod1+v splitv | ||
60 | |||
61 | # enter fullscreen mode for the focused container | ||
62 | bindsym Mod1+f fullscreen | ||
63 | |||
64 | # change container layout (stacked, tabbed, toggle split) | ||
65 | bindsym Mod1+s layout stacking | ||
66 | bindsym Mod1+w layout tabbed | ||
67 | bindsym Mod1+e layout toggle split | ||
68 | |||
69 | # toggle tiling / floating | ||
70 | bindsym Mod1+Shift+space floating toggle | ||
71 | |||
72 | # change focus between tiling / floating windows | ||
73 | bindsym Mod1+space focus mode_toggle | ||
74 | |||
75 | # focus the parent container | ||
76 | bindsym 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 | ||
82 | bindsym 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. | ||
86 | bindsym Mod1+minus scratchpad show | ||
87 | |||
88 | # switch to workspace | ||
89 | bindsym Mod1+1 workspace 1 | ||
90 | bindsym Mod1+2 workspace 2 | ||
91 | bindsym Mod1+3 workspace 3 | ||
92 | bindsym Mod1+4 workspace 4 | ||
93 | bindsym Mod1+5 workspace 5 | ||
94 | bindsym Mod1+6 workspace 6 | ||
95 | bindsym Mod1+7 workspace 7 | ||
96 | bindsym Mod1+8 workspace 8 | ||
97 | bindsym Mod1+9 workspace 9 | ||
98 | bindsym Mod1+0 workspace 10 | ||
99 | |||
100 | # move focused container to workspace | ||
101 | bindsym Mod1+Shift+1 move container to workspace 1 | ||
102 | bindsym Mod1+Shift+2 move container to workspace 2 | ||
103 | bindsym Mod1+Shift+3 move container to workspace 3 | ||
104 | bindsym Mod1+Shift+4 move container to workspace 4 | ||
105 | bindsym Mod1+Shift+5 move container to workspace 5 | ||
106 | bindsym Mod1+Shift+6 move container to workspace 6 | ||
107 | bindsym Mod1+Shift+7 move container to workspace 7 | ||
108 | bindsym Mod1+Shift+8 move container to workspace 8 | ||
109 | bindsym Mod1+Shift+9 move container to workspace 9 | ||
110 | bindsym Mod1+Shift+0 move container to workspace 10 | ||
111 | |||
112 | # reload the configuration file | ||
113 | bindsym Mod1+Shift+c reload | ||
114 | # restart sway inplace (preserves your layout/session, can be used to upgrade sway) | ||
115 | bindsym Mod1+Shift+r restart | ||
116 | # exit sway (logs you out of your wayland session) | ||
117 | bindsym Mod1+Shift+e exit | ||