From 66afeaa349fc2146b0ef26b87f0894e8772db7af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 22 Nov 2021 15:33:56 +0300 Subject: i3-layouts --- .config/i3/config##h.lowe | 25 +++++++++++++++++++++---- .config/polybar/config##h.lowe | 2 +- 2 files changed, 22 insertions(+), 5 deletions(-) (limited to '.config') diff --git a/.config/i3/config##h.lowe b/.config/i3/config##h.lowe index b7bed0f..608797e 100644 --- a/.config/i3/config##h.lowe +++ b/.config/i3/config##h.lowe @@ -20,6 +20,7 @@ exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & exec --no-startup-id /usr/lib/pam_kwallet_init exec --no-startup-id remind -z -k'dunstify --appname="remind" --icon="view-calendar" "⏰ reminder!" "%s" &' ~/.reminders & exec --no-startup-id $HOME/.config/polybar/launch.sh & +exec i3-layouts # start the screensaver, '' at the end is not a typo exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' '' @@ -102,10 +103,10 @@ bindcode $mod+45 focus up bindcode $mod+46 focus right # move focused window on mod+shift+hnei -bindcode $mod+Shift+43 move left -bindcode $mod+Shift+44 move down -bindcode $mod+Shift+45 move up -bindcode $mod+Shift+46 move right +bindcode $mod+Shift+43 exec i3l move left +bindcode $mod+Shift+44 exec i3l move down +bindcode $mod+Shift+45 exec i3l move up +bindcode $mod+Shift+46 exec i3l move right # split in horizontal orientation with mod+b bindcode $mod+56 split h @@ -211,3 +212,19 @@ workspace_auto_back_and_forth yes focus_follows_mouse no mouse_warping none focus_wrapping no + +set $layout_mode Layout: [v]stack [h]stack [s]piral [2]columns [3]columns [c]ompanion [a]utosplit [n]one +bindcode $mod+Shift+30 mode "$layout_mode" +mode "$layout_mode" { + bindcode 55 exec i3l vstack 0.6 + bindcode 43 exec i3l hstack 0.6 + bindcode 40 exec i3l spiral + bindcode 11 exec i3l 2columns + bindcode 12 exec i3l 3columns + bindcode 54 exec i3l companion + bindcode 38 exec i3l autosplit + bindcode 44 exec i3l none + + bindsym Escape mode "default" + bindsym Return mode "default" +} diff --git a/.config/polybar/config##h.lowe b/.config/polybar/config##h.lowe index e316329..faba356 100644 --- a/.config/polybar/config##h.lowe +++ b/.config/polybar/config##h.lowe @@ -124,7 +124,7 @@ label-empty-padding = 5 [module/i3] type = internal/i3 -format = +format = index-sort = true wrapping-scroll = false strip-wsnumbers = true -- cgit v1.2.3-70-g09d2