Hack for window maximization
This commit is contained in:
parent
c0400d4dc7
commit
b27faefab6
|
@ -82,7 +82,7 @@ bindsym $mod+ctrl+l split h
|
||||||
bindsym $mod+ctrl+j split v
|
bindsym $mod+ctrl+j split v
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
bindsym $mod+m layout toggle stacked split
|
bindsym $mod+m exec "/home/user/.config/i3/toggle_maximize.sh"
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+f floating toggle
|
bindsym $mod+f floating toggle
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
ACTIVE_WORKSPACE=$(i3-msg -t get_workspaces | jq -r '.[] | select(.focused == true) | .name')
|
||||||
|
if [ $ACTIVE_WORKSPACE != fullscreen ]
|
||||||
|
then
|
||||||
|
i3-msg mark _maximized_window
|
||||||
|
gnome-terminal
|
||||||
|
i3-msg mark _placeholder_window
|
||||||
|
i3-msg [con_mark="_maximized_window"] focus
|
||||||
|
i3-msg move container to workspace fullscreen
|
||||||
|
i3-msg [con_mark="_maximized_window"] focus
|
||||||
|
else
|
||||||
|
i3-msg swap mark "_placeholder_window"
|
||||||
|
i3-msg [con_mark="_maximized_window"] focus
|
||||||
|
i3-msg unmark _maximized_window
|
||||||
|
i3-msg [con_mark="_placeholder_window"] kill
|
||||||
|
fi
|
Loading…
Reference in New Issue