summaryrefslogtreecommitdiffstats
path: root/.config/i3
diff options
context:
space:
mode:
authorYigit Sever2019-06-02 16:57:56 +0300
committerYigit Sever2019-06-02 16:57:56 +0300
commit6928d228ce19650e1795aff25aed0bb3623cfc7e (patch)
tree4342f1d99b2a59ee388548983d956f6c53625030 /.config/i3
parent01abe588e9eff8a286d7cc77006aec7b5bfed530 (diff)
downloaddotfiles-6928d228ce19650e1795aff25aed0bb3623cfc7e.tar.gz
dotfiles-6928d228ce19650e1795aff25aed0bb3623cfc7e.tar.bz2
dotfiles-6928d228ce19650e1795aff25aed0bb3623cfc7e.zip
Add gaps control to i3
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config##desktop.Linux.Lowe53
1 files changed, 52 insertions, 1 deletions
diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe
index 0ca3158..ea0d831 100644
--- a/.config/i3/config##desktop.Linux.Lowe
+++ b/.config/i3/config##desktop.Linux.Lowe
@@ -162,6 +162,7 @@ mode "resize" {
162 bindsym Escape mode "default" 162 bindsym Escape mode "default"
163 bindsym $mod+r mode "default" 163 bindsym $mod+r mode "default"
164} 164}
165bindsym $mod+r mode "resize"
165 166
166# session 167# session
167mode " (L)ock (S)ignout (R)eboot (P)oweroff" { 168mode " (L)ock (S)ignout (R)eboot (P)oweroff" {
@@ -172,9 +173,59 @@ mode " (L)ock (S)ignout (R)eboot (P)oweroff" {
172 bindcode 66 mode "default" 173 bindcode 66 mode "default"
173} 174}
174bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" 175bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff"
176
175bindsym $mod+Shift+Escape exec --no-startup-id ~/bin/power.sh 177bindsym $mod+Shift+Escape exec --no-startup-id ~/bin/power.sh
176 178
177bindsym $mod+r mode "resize" 179set $mode_gaps Gaps: (o)uter, (i)nner
180#, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
181set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
182set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
183# set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
184# set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
185# set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
186# set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
187# set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
188# set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
189bindsym $mod+Shift+g mode "$mode_gaps"
190
191mode "$mode_gaps" {
192 bindsym o mode "$mode_gaps_outer"
193 bindsym i mode "$mode_gaps_inner"
194 # bindsym h mode "$mode_gaps_horiz"
195 # bindsym v mode "$mode_gaps_verti"
196 # bindsym t mode "$mode_gaps_top"
197 # bindsym r mode "$mode_gaps_right"
198 # bindsym b mode "$mode_gaps_bottom"
199 # bindsym l mode "$mode_gaps_left"
200 # bindsym Return mode "$mode_gaps"
201 bindsym Escape mode "default"
202}
203
204mode "$mode_gaps_outer" {
205 bindsym plus gaps outer current plus 5
206 bindsym minus gaps outer current minus 5
207 bindsym 0 gaps outer current set 0
208
209 bindsym Shift+plus gaps outer all plus 5
210 bindsym Shift+minus gaps outer all minus 5
211 bindsym Shift+0 gaps outer all set 0
212
213 bindsym Return mode "$mode_gaps"
214 bindsym Escape mode "default"
215}
216mode "$mode_gaps_inner" {
217 bindsym plus gaps inner current plus 5
218 bindsym minus gaps inner current minus 5
219 bindsym 0 gaps inner current set 0
220
221 bindsym Shift+plus gaps inner all plus 5
222 bindsym Shift+minus gaps inner all minus 5
223 bindsym Shift+0 gaps inner all set 0
224
225 bindsym Return mode "$mode_gaps"
226 bindsym Escape mode "default"
227}
228
178 229
179for_window [class=".*"] border pixel 3 230for_window [class=".*"] border pixel 3
180for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable 231for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable