3 set $black_super #555555
9 set $green_super #9dc54b
12 set $yellow_super #d1ca89
15 set $blue_super #7accda
18 set $magenta_super #b392ef
21 set $cyan_super #c8f0f0
24 set $white_super #ffffff
26 client.focused $black $yellow_super $black $black $black
27 client.focused_inactive $black $black_super $white $black $black
33 # Use Mouse+$mod to drag floating windows to their wanted position
34 floating_modifier $mod
36 bindsym Control+t mode "$ratpoison"
50 # All/most commands in this mode should revert to the default mode on comleption.
51 # We are emulating ratpoison (kinda) here
53 # Moving to workspaces
54 # bindsym n workspace next mode "default"
55 # bindsym Shift+n workspace prev mode "default"
57 bindsym 1 exec 'swaymsg mode "default"; swaymsg workspace $ws1'
58 bindsym 2 exec 'swaymsg mode "default"; swaymsg workspace $ws2'
59 bindsym 3 exec 'swaymsg mode "default"; swaymsg workspace $ws3'
60 bindsym 4 exec 'swaymsg mode "default"; swaymsg workspace $ws4'
61 bindsym 5 exec 'swaymsg mode "default"; swaymsg workspace $ws5'
62 bindsym 6 exec 'swaymsg mode "default"; swaymsg workspace $ws6'
63 bindsym 7 exec 'swaymsg mode "default"; swaymsg workspace $ws7'
64 bindsym 8 exec 'swaymsg mode "default"; swaymsg workspace $ws8'
65 bindsym 9 exec 'swaymsg mode "default"; swaymsg workspace $ws9'
66 bindsym 0 exec 'swaymsg mode "default"; swaymsg workspace $ws10'
68 bindsym Shift+1 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws1'
69 bindsym Shift+2 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws2'
70 bindsym Shift+3 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws3'
71 bindsym Shift+4 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws4'
72 bindsym Shift+5 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws5'
73 bindsym Shift+6 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws6'
74 bindsym Shift+7 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws7'
75 bindsym Shift+8 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws8'
76 bindsym Shift+9 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws9'
77 bindsym Shift+0 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws10'
80 # bindsym Tab focus right mode "default"
81 # bindsym Shift+Tab focus left mode "default"
83 bindsym h exec 'swaymsg mode "default"; swaymsg focus left'
84 bindsym j exec 'swaymsg mode "default"; swaymsg focus down'
85 bindsym k exec 'swaymsg mode "default"; swaymsg focus up'
86 bindsym l exec 'swaymsg mode "default"; swaymsg focus right'
90 bindsym Shift+h exec 'swaymsg mode "default"; swaymsg move left'
91 bindsym Shift+j exec 'swaymsg mode "default"; swaymsg move down'
92 bindsym Shift+k exec 'swaymsg mode "default"; swaymsg move up'
93 bindsym Shift+l exec 'swaymsg mode "default"; swaymsg move right'
95 # Changing split modes
96 bindsym v exec 'swaymsg mode "default"; swaymsg split v'
97 bindsym o exec 'swaymsg mode "default"; swaymsg split h'
100 bindsym c exec 'swaymsg mode "default"; swaymsg exec urxvt'
101 bindsym q exec 'swaymsg mode "default"; swaymsg kill'
103 bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec dmenu_run'
105 bindsym $mod+l exec 'swaymsg mode "default"; swaylock -c 000000'
106 bindsym Escape mode "default"
111 # There also is the (new) i3-dmenu-desktop which only displays applications
112 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
114 # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
116 # enter fullscreen mode for the focused container
117 bindsym $mod+t fullscreen toggle
119 # change container layout (stacked, tabbed, toggle split)
120 bindsym $mod+r layout stacking
121 bindsym $mod+w layout tabbed
122 bindsym $mod+f layout toggle split
124 # toggle tiling / floating
125 bindsym $mod+Shift+space floating toggle
127 # change focus between tiling / floating windows
128 bindsym $mod+space focus mode_toggle
130 # focus the parent container
131 bindsym $mod+a focus parent
133 # focus the child container
134 #bindsym $mod+d focus child
136 #reload the configuration file
137 bindsym $mod+Shift+c reload
138 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
139 bindsym $mod+Shift+r restart
140 # exit i3 (logs you out of your X session)
141 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
143 # resize window (you can also use the mouse for that)
145 # These bindings trigger as soon as you enter the resize mode
147 # Pressing left will shrink the window’s width.
148 # Pressing right will grow the window’s width.
149 # Pressing up will shrink the window’s height.
150 # Pressing down will grow the window’s height.
151 bindsym h resize shrink width 10 px or 10 ppt
152 bindsym j resize grow height 10 px or 10 ppt
153 bindsym k resize shrink height 10 px or 10 ppt
154 bindsym l resize grow width 10 px or 10 ppt
156 # same bindings, but for the arrow keys
157 bindsym Left resize shrink width 10 px or 10 ppt
158 bindsym Down resize grow height 10 px or 10 ppt
159 bindsym Up resize shrink height 10 px or 10 ppt
160 bindsym Right resize grow width 10 px or 10 ppt
162 # back to normal: Enter or Escape or $mod+r
163 bindsym Return mode "default"
164 bindsym Escape mode "default"
165 bindsym $mod+p mode "default"
168 bindsym $mod+p mode "resize"
172 hide_edge_borders both
174 focus_follows_mouse no
176 focus_on_window_activation urgent
178 for_window [class="^rdesktop"] move workspace number 9; floating disable
179 for_window [class="Pinentry"] floating enable
182 timeout 300 'swaylock -c 000000' \
183 timeout 600 'swaymsg "output * dpms off"' \
184 resume 'swaymsg "output * dpms on" \
185 before-sleep 'swaylock -c 000000'