]> git.sev.monster Git - dotfiles.git/blame - etc/sway/config
tweaks to zsh/env (xdg, dbus, gpg, tmp), sway, ...
[dotfiles.git] / etc / sway / config
CommitLineData
2ec9d552 1### load system
2include /etc/sway/config.d/*
3
2ec9d552 4### daemons
e4677c6b 5exec pipewire
2ec9d552 6exec dunst
2ec9d552 7#exec mpc-notify -d
e4677c6b 8exec foot --server
2ec9d552 9exec 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
16xwayland force
2ec9d552 17exec xrdb -merge ~/.Xresources
18exec '\
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
25input 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}
189288f7 32
2ec9d552 33### binds
fd602313 34set $mod Mod4
189288f7 35
2ec9d552 36bindsym $mod+Shift+r reload
37bindsym $mod+Shift+e exec swaynag -t warning -m Exit? -b Yes 'swaymsg exit'
fd602313 38
2ec9d552 39## terminal
40bindsym $mod+Return exec [ -n "$$TERMINAL" ] && exec $$TERMINAL || exec footclient
c51966c0 41bindsym $mod+KP_Enter exec [ -n "$$TERMINAL" ] && exec $$TERMINAL || exec footclient
189288f7 42
2ec9d552 43## menu
44bindsym $mod+d exec nwgdmenu
45bindsym $mod+Shift+d exec nwggrid
46bindsym $mod+Ctrl+d exec nwgbar
189288f7 47
2ec9d552 48## special
fd602313 49# mpc
2ec9d552 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
fd602313 57
2ec9d552 58## window management
189288f7 59set $up k
60set $down j
61set $left h
62set $right l
189288f7 63set $up2 Up
64set $down2 Down
65set $left2 Left
66set $right2 Right
67
189288f7 68bindsym $mod+$left focus left
69bindsym $mod+$down focus down
70bindsym $mod+$up focus up
71bindsym $mod+$right focus right
72bindsym $mod+$left2 focus left
73bindsym $mod+$down2 focus down
74bindsym $mod+$up2 focus up
75bindsym $mod+$right2 focus right
2ec9d552 76bindsym $mod+a focus parent
77bindsym $mod+z focus child
189288f7 78bindsym $mod+Shift+$left move left
79bindsym $mod+Shift+$down move down
80bindsym $mod+Shift+$up move up
81bindsym $mod+Shift+$right move right
82bindsym $mod+Shift+$left2 move left
83bindsym $mod+Shift+$down2 move down
84bindsym $mod+Shift+$up2 move up
85bindsym $mod+Shift+$right2 move right
86
189288f7 87bindsym $mod+i split h
189288f7 88bindsym $mod+o split v
89
fd602313 90floating_modifier $mod
2ec9d552 91bindsym $mod+Shift+space floating toggle
92bindsym $mod+space focus mode_toggle
fd602313 93
189288f7 94bindsym $mod+f fullscreen toggle
95bindsym $mod+Shift+f fullscreen toggle global
96
189288f7 97bindsym $mod+s layout stacking
98bindsym $mod+w layout tabbed
99bindsym $mod+e layout toggle split
100
fd602313 101bindsym $mod+Shift+q kill
102
189288f7 103bindsym $mod+Shift+minus move scratchpad
189288f7 104bindsym $mod+minus scratchpad show
105
189288f7 106bindsym $mod+1 workspace 1
107bindsym $mod+2 workspace 2
108bindsym $mod+3 workspace 3
109bindsym $mod+4 workspace 4
110bindsym $mod+5 workspace 5
111bindsym $mod+6 workspace 6
112bindsym $mod+7 workspace 7
113bindsym $mod+8 workspace 8
114bindsym $mod+9 workspace 9
115bindsym $mod+0 workspace 10
fd602313 116workspace_auto_back_and_forth yes
189288f7 117
189288f7 118bindsym $mod+Shift+1 move container to workspace 1
119bindsym $mod+Shift+2 move container to workspace 2
120bindsym $mod+Shift+3 move container to workspace 3
121bindsym $mod+Shift+4 move container to workspace 4
122bindsym $mod+Shift+5 move container to workspace 5
123bindsym $mod+Shift+6 move container to workspace 6
124bindsym $mod+Shift+7 move container to workspace 7
125bindsym $mod+Shift+8 move container to workspace 8
126bindsym $mod+Shift+9 move container to workspace 9
2ec9d552 127bindsym $mod+Shift+0 move container to workspace 10
189288f7 128
189288f7 129mode "translate" {
9fddba79 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
189288f7 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
9fddba79 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
189288f7 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
9fddba79 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
189288f7 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
9fddba79 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
189288f7 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
2ec9d552 167 # focus
189288f7 168 bindsym $mod+a focus parent
189288f7 169 bindsym $mod+z focus child
170
2ec9d552 171 # floating
172 bindsym $mod+Shift+space floating toggle
173 bindsym $mod+space focus mode_toggle
174
175 # exit
9fddba79 176 bindsym Return mode default
177 bindsym Escape mode default
189288f7 178 bindsym $mod+r mode default
179}
180bindsym $mod+r mode "translate"
181
fd602313 182
2ec9d552 183### appearance
184font pango:monospace 10
185seat seat0 xcursor_theme Paper 16
186## borders
187default_border pixel 1
189288f7 188hide_edge_borders smart
189288f7 189gaps inner 6
190smart_gaps on
2ec9d552 191## colors
fd602313 192# generic
a568f7fa 193set $bg #110800
194set $fg #93a1a1
fd602313 195# focused
a568f7fa 196set $f_bdr #cc6600
197set $f_bg #aa5500
198set $f_fg #eee8d5
199set $f_ind #4466ff
200set $f_chb #cc6600
fd602313 201# inactive
a568f7fa 202set $i_bdr #884400
203set $i_bg #221100
204set $i_fg $fg
205set $i_ind #264bd2
206set $i_chb #884400
fd602313 207# urgent
a568f7fa 208set $u_bdr #ff4444
209set $u_bg #dc322f
210set $u_fg #000000
211set $u_ind #4466ff
212set $u_chb #ff4444
fd602313 213# blue
a568f7fa 214set $b_bdr #4466ff
215set $b_bg #268bd2
216set $b_fg #fdf6e3
217set $b_ind #264db2
218set $b_chb #4466ff
189288f7 219# class border backgr. text indicator child_border
a568f7fa 220client.focused $f_bdr $f_bg $f_fg $f_ind $f_chb
221client.focused_inactive $i_bdr $i_bg $i_fg $i_ind $i_chb
222client.unfocused $i_bdr $i_bg $i_fg $i_ind $i_chb
223client.urgent $u_bdr $u_bg $u_fg $u_ind $u_chb
224client.placeholder $b_bdr $b_bg $b_fg $b_ind $b_chb
189288f7 225client.background #221100
fd602313 226force_display_urgency_hint 2000 ms
2ec9d552 227
e4677c6b 228## bars
2ec9d552 229bar {
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
e4677c6b 249## criteria
250for_window [app_id="pinentry-qt"] floating enable
251
2ec9d552 252### load site-local
253include config.d/*
This page took 0.088238 seconds and 4 git commands to generate.