1 {% set host = grains['host'] %}
4 set $black_super #555555
10 set $green_super #9dc54b
13 set $yellow_super #d1ca89
16 set $blue_super #7accda
19 set $magenta_super #b392ef
22 set $cyan_super #c8f0f0
25 set $white_super #ffffff
27 client.focused $black $yellow_super $black $black $black
28 client.focused_inactive $black $black_super $white $black $black
33 # Slight gaps between windows
37 # Use Mouse+$mod to drag floating windows to their wanted position
38 floating_modifier $mod
40 bindsym Control+t mode "$ratpoison"
54 # All/most commands in this mode should revert to the default mode on comleption.
55 # We are emulating ratpoison (kinda) here
57 # Moving to workspaces
58 # bindsym n workspace next mode "default"
59 # bindsym Shift+n workspace prev mode "default"
61 bindsym 1 exec 'swaymsg mode "default"; swaymsg workspace $ws1'
62 bindsym 2 exec 'swaymsg mode "default"; swaymsg workspace $ws2'
63 bindsym 3 exec 'swaymsg mode "default"; swaymsg workspace $ws3'
64 bindsym 4 exec 'swaymsg mode "default"; swaymsg workspace $ws4'
65 bindsym 5 exec 'swaymsg mode "default"; swaymsg workspace $ws5'
66 bindsym 6 exec 'swaymsg mode "default"; swaymsg workspace $ws6'
67 bindsym 7 exec 'swaymsg mode "default"; swaymsg workspace $ws7'
68 bindsym 8 exec 'swaymsg mode "default"; swaymsg workspace $ws8'
69 bindsym 9 exec 'swaymsg mode "default"; swaymsg workspace $ws9'
70 bindsym 0 exec 'swaymsg mode "default"; swaymsg workspace $ws10'
72 bindsym Shift+1 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws1'
73 bindsym Shift+2 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws2'
74 bindsym Shift+3 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws3'
75 bindsym Shift+4 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws4'
76 bindsym Shift+5 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws5'
77 bindsym Shift+6 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws6'
78 bindsym Shift+7 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws7'
79 bindsym Shift+8 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws8'
80 bindsym Shift+9 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws9'
81 bindsym Shift+0 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws10'
84 # bindsym Tab focus right mode "default"
85 # bindsym Shift+Tab focus left mode "default"
87 bindsym h exec 'swaymsg mode "default"; swaymsg focus left'
88 bindsym j exec 'swaymsg mode "default"; swaymsg focus down'
89 bindsym k exec 'swaymsg mode "default"; swaymsg focus up'
90 bindsym l exec 'swaymsg mode "default"; swaymsg focus right'
94 bindsym Shift+h exec 'swaymsg mode "default"; swaymsg move left'
95 bindsym Shift+j exec 'swaymsg mode "default"; swaymsg move down'
96 bindsym Shift+k exec 'swaymsg mode "default"; swaymsg move up'
97 bindsym Shift+l exec 'swaymsg mode "default"; swaymsg move right'
99 # Changing split modes
100 bindsym v exec 'swaymsg mode "default"; swaymsg split v'
101 bindsym o exec 'swaymsg mode "default"; swaymsg split h'
104 bindsym c exec 'swaymsg mode "default"; swaymsg exec termite'
105 bindsym q exec 'swaymsg mode "default"; swaymsg kill'
107 bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec bemenu-run'
109 bindsym $mod+l exec 'swaymsg mode "default"; "lock.nosmartcard"'
110 bindsym Escape mode "default"
115 # There also is the (new) i3-dmenu-desktop which only displays applications
116 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
118 # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
120 # enter fullscreen mode for the focused container
121 bindsym $mod+t fullscreen toggle
123 # change container layout (stacked, tabbed, toggle split)
124 bindsym $mod+r layout stacking
125 bindsym $mod+w layout tabbed
126 bindsym $mod+f layout toggle split
128 # toggle tiling / floating
129 bindsym $mod+Shift+space floating toggle
131 # change focus between tiling / floating windows
132 bindsym $mod+space focus mode_toggle
134 # focus the parent container
135 bindsym $mod+a focus parent
137 # focus the child container
138 #bindsym $mod+d focus child
140 #reload the configuration file
141 bindsym $mod+Shift+c reload
142 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
143 bindsym $mod+Shift+r restart
144 # exit i3 (logs you out of your X session)
145 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'"
147 # resize window (you can also use the mouse for that)
149 # These bindings trigger as soon as you enter the resize mode
151 # Pressing left will shrink the window’s width.
152 # Pressing right will grow the window’s width.
153 # Pressing up will shrink the window’s height.
154 # Pressing down will grow the window’s height.
155 bindsym h resize shrink width 10 px or 10 ppt
156 bindsym j resize grow height 10 px or 10 ppt
157 bindsym k resize shrink height 10 px or 10 ppt
158 bindsym l resize grow width 10 px or 10 ppt
160 # same bindings, but for the arrow keys
161 bindsym Left resize shrink width 10 px or 10 ppt
162 bindsym Down resize grow height 10 px or 10 ppt
163 bindsym Up resize shrink height 10 px or 10 ppt
164 bindsym Right resize grow width 10 px or 10 ppt
166 # back to normal: Enter or Escape or $mod+r
167 bindsym Return mode "default"
168 bindsym Escape mode "default"
169 bindsym $mod+p mode "default"
172 bindsym $mod+p mode "resize"
176 hide_edge_borders both
178 focus_follows_mouse no
180 focus_on_window_activation urgent
182 for_window [class="^rdesktop"] move workspace number 9; floating disable
183 for_window [class="Pinentry"] floating enable
185 {% set lockcmd = "swaylock -i {DP-1,eDP-1,HDMI-A-1}:~/Pictures/lockscreen_1080_1.png" %}
188 timeout 300 "{{lockcmd}}" \
189 timeout 600 'swaymsg "output * dpms off"' \
190 resume 'swaymsg "output * dpms on"' \
191 before-sleep "{{lockcmd}}"
193 # This keyboard has this layout on all machines:
194 input 1241:36:HOLDCHIP_USB_Keyboard {
197 xkb_options ctrl:nocaps
200 input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
203 xkb_options ctrl:nocaps
205 # host specific section
206 {%- do salt.log.error('sway/files/' + host) -%}
207 {% include 'sway/files/' + host %}