]>
Commit | Line | Data |
---|---|---|
d23b28eb | 1 | ### load system |
2 | include /etc/sway/config.d/* | |
3 | ||
d23b28eb | 4 | ### daemons |
6d54344e | 5 | exec pipewire |
d23b28eb | 6 | exec dunst |
d23b28eb | 7 | #exec mpc-notify -d |
6d54344e | 8 | exec foot --server |
d23b28eb | 9 | exec swayidle timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' |
10 | # x220t | |
11 | # TODO: check hostname to load auxillary things | |
12 | # TODO: reformat for linux | |
13 | #exec acpi_ac "0x0`sysctl -n hw.acpi.acline`" | |
14 | ||
15 | ### Xorg config | |
16 | xwayland force | |
d23b28eb | 17 | exec xrdb -merge ~/.Xresources |
18 | exec '\ | |
19 | find -L "$${XDG_DATA_HOME:-~/share}/fonts" -mindepth 1 -maxdepth 2 -type d | while read -r x; do \ | |
20 | [ -f "$$x/fonts.dir" ] && xset +fp "$$x"; \ | |
21 | done; \ | |
22 | xset fp rehash' | |
23 | ||
24 | ### inputs | |
25 | input 1:1:AT_Translated_Set_2_keyboard { | |
26 | xkb_layout us | |
27 | xkb_options caps:super | |
28 | xkb_numlock enable | |
29 | repeat_delay 290 | |
30 | repeat_rate 26 | |
31 | } | |
1b8a4102 | 32 | |
d23b28eb | 33 | ### binds |
e9e064df | 34 | set $mod Mod4 |
1b8a4102 | 35 | |
d23b28eb | 36 | bindsym $mod+Shift+r reload |
37 | bindsym $mod+Shift+e exec swaynag -t warning -m Exit? -b Yes 'swaymsg exit' | |
e9e064df | 38 | |
d23b28eb | 39 | ## terminal |
40 | bindsym $mod+Return exec [ -n "$$TERMINAL" ] && exec $$TERMINAL || exec footclient | |
8876bf62 | 41 | bindsym $mod+KP_Enter exec [ -n "$$TERMINAL" ] && exec $$TERMINAL || exec footclient |
1b8a4102 | 42 | |
d23b28eb | 43 | ## menu |
44 | bindsym $mod+d exec nwgdmenu | |
45 | bindsym $mod+Shift+d exec nwggrid | |
46 | bindsym $mod+Ctrl+d exec nwgbar | |
1b8a4102 | 47 | |
d23b28eb | 48 | ## special |
e9e064df | 49 | # mpc |
d23b28eb | 50 | #bindsym XF86AudioPlay exec mpc -h /var/mpd/socket play |
51 | #bindsym XF86AudioStop exec mpc -h /var/mpd/socket pause | |
52 | #bindsym XF86AudioPrev exec mpc -h /var/mpd/socket cdprev | |
53 | #bindsym XF86AudioNext exec mpc -h /var/mpd/socket next | |
54 | # x220t bezel buttons | |
55 | #bindcode 198 exec rotate set normal | |
56 | #bindcode 204 exec rotate right | |
e9e064df | 57 | |
d23b28eb | 58 | ## window management |
1b8a4102 | 59 | set $up k |
60 | set $down j | |
61 | set $left h | |
62 | set $right l | |
1b8a4102 | 63 | set $up2 Up |
64 | set $down2 Down | |
65 | set $left2 Left | |
66 | set $right2 Right | |
67 | ||
1b8a4102 | 68 | bindsym $mod+$left focus left |
69 | bindsym $mod+$down focus down | |
70 | bindsym $mod+$up focus up | |
71 | bindsym $mod+$right focus right | |
72 | bindsym $mod+$left2 focus left | |
73 | bindsym $mod+$down2 focus down | |
74 | bindsym $mod+$up2 focus up | |
75 | bindsym $mod+$right2 focus right | |
d23b28eb | 76 | bindsym $mod+a focus parent |
77 | bindsym $mod+z focus child | |
1b8a4102 | 78 | bindsym $mod+Shift+$left move left |
79 | bindsym $mod+Shift+$down move down | |
80 | bindsym $mod+Shift+$up move up | |
81 | bindsym $mod+Shift+$right move right | |
82 | bindsym $mod+Shift+$left2 move left | |
83 | bindsym $mod+Shift+$down2 move down | |
84 | bindsym $mod+Shift+$up2 move up | |
85 | bindsym $mod+Shift+$right2 move right | |
86 | ||
1b8a4102 | 87 | bindsym $mod+i split h |
1b8a4102 | 88 | bindsym $mod+o split v |
89 | ||
e9e064df | 90 | floating_modifier $mod |
d23b28eb | 91 | bindsym $mod+Shift+space floating toggle |
92 | bindsym $mod+space focus mode_toggle | |
e9e064df | 93 | |
1b8a4102 | 94 | bindsym $mod+f fullscreen toggle |
95 | bindsym $mod+Shift+f fullscreen toggle global | |
96 | ||
1b8a4102 | 97 | bindsym $mod+s layout stacking |
98 | bindsym $mod+w layout tabbed | |
99 | bindsym $mod+e layout toggle split | |
100 | ||
e9e064df | 101 | bindsym $mod+Shift+q kill |
102 | ||
1b8a4102 | 103 | bindsym $mod+Shift+minus move scratchpad |
1b8a4102 | 104 | bindsym $mod+minus scratchpad show |
105 | ||
1b8a4102 | 106 | bindsym $mod+1 workspace 1 |
107 | bindsym $mod+2 workspace 2 | |
108 | bindsym $mod+3 workspace 3 | |
109 | bindsym $mod+4 workspace 4 | |
110 | bindsym $mod+5 workspace 5 | |
111 | bindsym $mod+6 workspace 6 | |
112 | bindsym $mod+7 workspace 7 | |
113 | bindsym $mod+8 workspace 8 | |
114 | bindsym $mod+9 workspace 9 | |
115 | bindsym $mod+0 workspace 10 | |
e9e064df | 116 | workspace_auto_back_and_forth yes |
1b8a4102 | 117 | |
1b8a4102 | 118 | bindsym $mod+Shift+1 move container to workspace 1 |
119 | bindsym $mod+Shift+2 move container to workspace 2 | |
120 | bindsym $mod+Shift+3 move container to workspace 3 | |
121 | bindsym $mod+Shift+4 move container to workspace 4 | |
122 | bindsym $mod+Shift+5 move container to workspace 5 | |
123 | bindsym $mod+Shift+6 move container to workspace 6 | |
124 | bindsym $mod+Shift+7 move container to workspace 7 | |
125 | bindsym $mod+Shift+8 move container to workspace 8 | |
126 | bindsym $mod+Shift+9 move container to workspace 9 | |
d23b28eb | 127 | bindsym $mod+Shift+0 move container to workspace 10 |
1b8a4102 | 128 | |
1b8a4102 | 129 | mode "translate" { |
118fb6e0 | 130 | bindsym $left resize shrink width 20 px |
131 | bindsym $down resize grow height 20 px | |
132 | bindsym $up resize shrink height 20 px | |
133 | bindsym $right resize grow width 20 px | |
1b8a4102 | 134 | bindsym $left2 resize shrink width 20 px |
135 | bindsym $down2 resize grow height 20 px | |
136 | bindsym $up2 resize shrink height 20 px | |
137 | bindsym $right2 resize grow width 20 px | |
138 | ||
118fb6e0 | 139 | bindsym Shift+$left move left 20 px |
140 | bindsym Shift+$down move down 20 px | |
141 | bindsym Shift+$up move up 20 px | |
142 | bindsym Shift+$right move right 20 px | |
1b8a4102 | 143 | bindsym Shift+$left2 move left 20 px |
144 | bindsym Shift+$down2 move down 20 px | |
145 | bindsym Shift+$up2 move up 20 px | |
146 | bindsym Shift+$right2 move right 20 px | |
147 | ||
148 | # smaller movements | |
118fb6e0 | 149 | bindsym Control+$left resize shrink width 1 px or 1 ppt |
150 | bindsym Control+$down resize grow height 1 px or 1 ppt | |
151 | bindsym Control+$up resize shrink height 1 px or 1 ppt | |
152 | bindsym Control+$right resize grow width 1 px or 1 ppt | |
1b8a4102 | 153 | bindsym Control+$left2 resize shrink width 1 px or 1 ppt |
154 | bindsym Control+$down2 resize grow height 1 px or 1 ppt | |
155 | bindsym Control+$up2 resize shrink height 1 px or 1 ppt | |
156 | bindsym Control+$right2 resize grow width 1 px or 1 ppt | |
157 | ||
118fb6e0 | 158 | bindsym Control+Shift+$left move left 1 px |
159 | bindsym Control+Shift+$down move down 1 px | |
160 | bindsym Control+Shift+$up move up 1 px | |
161 | bindsym Control+Shift+$right move right 1 px | |
1b8a4102 | 162 | bindsym Control+Shift+$left2 move left 1 px |
163 | bindsym Control+Shift+$down2 move down 1 px | |
164 | bindsym Control+Shift+$up2 move up 1 px | |
165 | bindsym Control+Shift+$right2 move right 1 px | |
166 | ||
d23b28eb | 167 | # focus |
1b8a4102 | 168 | bindsym $mod+a focus parent |
1b8a4102 | 169 | bindsym $mod+z focus child |
170 | ||
d23b28eb | 171 | # floating |
172 | bindsym $mod+Shift+space floating toggle | |
173 | bindsym $mod+space focus mode_toggle | |
174 | ||
175 | # exit | |
118fb6e0 | 176 | bindsym Return mode default |
177 | bindsym Escape mode default | |
1b8a4102 | 178 | bindsym $mod+r mode default |
179 | } | |
180 | bindsym $mod+r mode "translate" | |
181 | ||
e9e064df | 182 | |
d23b28eb | 183 | ### appearance |
184 | font pango:monospace 10 | |
185 | seat seat0 xcursor_theme Paper 16 | |
186 | ## borders | |
187 | default_border pixel 1 | |
1b8a4102 | 188 | hide_edge_borders smart |
1b8a4102 | 189 | gaps inner 6 |
190 | smart_gaps on | |
d23b28eb | 191 | ## colors |
e9e064df | 192 | # generic |
dcac60d9 | 193 | set $bg #110800 |
194 | set $fg #93a1a1 | |
e9e064df | 195 | # focused |
dcac60d9 | 196 | set $f_bdr #cc6600 |
197 | set $f_bg #aa5500 | |
198 | set $f_fg #eee8d5 | |
199 | set $f_ind #4466ff | |
200 | set $f_chb #cc6600 | |
e9e064df | 201 | # inactive |
dcac60d9 | 202 | set $i_bdr #884400 |
203 | set $i_bg #221100 | |
204 | set $i_fg $fg | |
205 | set $i_ind #264bd2 | |
206 | set $i_chb #884400 | |
e9e064df | 207 | # urgent |
dcac60d9 | 208 | set $u_bdr #ff4444 |
209 | set $u_bg #dc322f | |
210 | set $u_fg #000000 | |
211 | set $u_ind #4466ff | |
212 | set $u_chb #ff4444 | |
e9e064df | 213 | # blue |
dcac60d9 | 214 | set $b_bdr #4466ff |
215 | set $b_bg #268bd2 | |
216 | set $b_fg #fdf6e3 | |
217 | set $b_ind #264db2 | |
218 | set $b_chb #4466ff | |
1b8a4102 | 219 | # class border backgr. text indicator child_border |
dcac60d9 | 220 | client.focused $f_bdr $f_bg $f_fg $f_ind $f_chb |
221 | client.focused_inactive $i_bdr $i_bg $i_fg $i_ind $i_chb | |
222 | client.unfocused $i_bdr $i_bg $i_fg $i_ind $i_chb | |
223 | client.urgent $u_bdr $u_bg $u_fg $u_ind $u_chb | |
224 | client.placeholder $b_bdr $b_bg $b_fg $b_ind $b_chb | |
1b8a4102 | 225 | client.background #221100 |
e9e064df | 226 | force_display_urgency_hint 2000 ms |
d23b28eb | 227 | |
6d54344e | 228 | ## bars |
d23b28eb | 229 | bar { |
230 | position top | |
231 | tray_output primary | |
232 | status_command i3status | |
233 | separator_symbol "|" | |
234 | ||
235 | colors { | |
236 | background $bg | |
237 | statusline $fg | |
238 | separator $b_ind | |
239 | ||
240 | # class border backgr. text | |
241 | focused_workspace $f_bdr $f_bg $f_fg | |
242 | active_workspace $i_bdr $i_bg $i_fg | |
243 | inactive_workspace $i_bdr $i_bg $i_fg | |
244 | urgent_workspace $u_bdr $u_bg $u_fg | |
245 | binding_mode $b_bdr $b_bg $b_fg | |
246 | } | |
247 | } | |
248 | ||
6d54344e | 249 | ## criteria |
250 | for_window [app_id="pinentry-qt"] floating enable | |
251 | ||
d23b28eb | 252 | ### load site-local |
253 | include config.d/* |