From 92ac1437009c016a0b7dbc948b3e10a782adf716 Mon Sep 17 00:00:00 2001 From: Josh Fabean Date: Wed, 25 Jul 2018 09:34:51 -0500 Subject: [PATCH] lappy changes --- .config/i3/arch-mac-lappy-config | 56 ++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/.config/i3/arch-mac-lappy-config b/.config/i3/arch-mac-lappy-config index 674cd1c..8ef5256 100644 --- a/.config/i3/arch-mac-lappy-config +++ b/.config/i3/arch-mac-lappy-config @@ -11,7 +11,7 @@ exec --no-startup-id xset r rate 250 25 exec --no-startup-id xset b off exec --no-startup-id setxkbmap -option caps:escape exec --no-startup-id nightshift -l 39.0315533:-94.4954291 -d -#exec --no-startup-id setxkbmap -model apple_laptop -layout us -variant dvp +exec --no-startup-id setxkbmap -model apple_laptop -layout us -variant dvorak font pango:FiraCode, FontAwesome 12 @@ -136,6 +136,7 @@ bindsym Print exec scrot -s -e 'mv $f ~/Downloads' bindsym $mod+m move scratchpad bindsym $mod+n scratchpad show +for_window [class="^.*"] border pixel 0 #Make sure these windows behave as they should for_window [class="Android SDK Manager" instance="Android SDK Manager"] floating enable @@ -163,7 +164,58 @@ for_window [title="^Steam Keyboard$"] floating enable assign [class="Slack"] $workSpace3 assign [class="Plexamp"] $workSpace3 -new_window 1pixel +# gaps +gaps inner 10 +smart_gaps on + +set $mode_gaps Gaps: (o) outer, (i) inner +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} + + + + + + + + + + + + #Hide border if 1 window hide_edge_borders both # reload the configuration file