Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
a05ab318
Commit
a05ab318
authored
Aug 19, 2019
by
Jay Ta'ala
Browse files
Added embedded script to set all current windows as tabbed containers.
parent
4c06ddb8
Changes
1
Show whitespace changes
Inline
Side-by-side
i3/config
View file @
a05ab318
...
@@ -146,32 +146,33 @@ workspace_auto_back_and_forth yes
...
@@ -146,32 +146,33 @@ workspace_auto_back_and_forth yes
# The second option uses application window title (but colored and bolded) that was selected when the container was created.
# The second option uses application window title (but colored and bolded) that was selected when the container was created.
# NOTE: requires xdotool
# NOTE: requires xdotool
#
#
#set $con_title focus parent
;
title_format "<span foreground='#FEC196'><b> 📦 %title</b></span>
";
focus child
;
title_format " %title"
#set $con_title
i3-msg
focus parent
,
title_format
\\
"<span foreground='#FEC196'><b> 📦 %title</b></span>
\\",
focus child
,
title_format
\\
" %title
\\
"
set $con_title
exec "
ANSWER=$(xdotool getwindowfocus getwindowname); i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b> ⮡\\"$ANSWER\\"</b></span>\\", focus child
"
set $con_title ANSWER=$(xdotool getwindowfocus getwindowname); i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b> ⮡\\"$ANSWER\\"</b></span>\\", focus child
# dynamic renaming of parent container
# dynamic renaming of parent container
bindsym $mod+slash exec "ANSWER=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change %title for parent container\\" --entry); if [ -n \\"$ANSWER\\" ]; then i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b> 📦 $ANSWER</b></span>\\", focus child; fi"
bindsym $mod+slash exec "ANSWER=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change %title for parent container\\" --entry); if [ -n \\"$ANSWER\\" ]; then i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b> 📦 $ANSWER</b></span>\\", focus child; fi"
bindsym $mod+Mod1+slash focus parent, title_format "<span foreground='#FEC196'><b> 📦 %title</b></span>", focus child
bindsym $mod+Mod1+slash focus parent, title_format "<span foreground='#FEC196'><b> 📦 %title</b></span>", focus child
bindsym $mod+Mod1+Shift+w exec "WINDOWS=$(xdotool search --all --onlyvisible --desktop $(xprop -notype -root _NET_CURRENT_DESKTOP | cut -c 24-) \\"\\" 2>/dev/null); for window in $WINDOWS; do xdotool windowactivate $window; i3-msg \\"split h; layout tabbed\\"; $con_title; done"
# split orientations
# split orientations
bindsym $mod+q layout toggle split;exec notify-send 'layout toggled'
bindsym $mod+q layout toggle split;exec notify-send 'layout toggled'
bindsym $mod+e layout toggle split;exec notify-send 'layout toggled'
bindsym $mod+e layout toggle split;exec notify-send 'layout toggled'
bindsym $mod+Mod1+q split h; $con_title
bindsym $mod+Mod1+q split h;
exec "
$con_title
"
bindsym $mod+Mod1+e split v; $con_title
bindsym $mod+Mod1+e split v;
exec "
$con_title
"
# change container layout (stacked, tabbed, toggle split)
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking;exec notify-send 'stacking layout'
bindsym $mod+s layout stacking;exec notify-send 'stacking layout'
bindsym $mod+Mod1+s split h; layout stacking; $con_title
bindsym $mod+Mod1+s split h; layout stacking;
exec "
$con_title
"
bindsym $mod+w layout tabbed;exec notify-send 'tabbed layout'
bindsym $mod+w layout tabbed;exec notify-send 'tabbed layout'
bindsym $mod+Mod1+w split h; layout tabbed; $con_title
bindsym $mod+Mod1+w split h; layout tabbed;
exec "
$con_title
"
# special combo for horizontal split of two windows next to each other
# special combo for horizontal split of two windows next to each other
bindsym $mod+x split h, layout splith, focus right, move left, focus left, $con_title
bindsym $mod+x split h, layout splith, focus right, move left, focus left,
exec "
$con_title
"
bindsym $mod+Shift+x split h, layout splith, focus left, move right, focus right, $con_title
bindsym $mod+Shift+x split h, layout splith, focus left, move right, focus right,
exec "
$con_title
"
# special combo for container tabbed split of two windows next to each other
# special combo for container tabbed split of two windows next to each other
bindsym $mod+z split h, layout tabbed, focus right, move left, focus left, $con_title
bindsym $mod+z split h, layout tabbed, focus right, move left, focus left,
exec "
$con_title
"
bindsym $mod+Shift+z split h, layout tabbed, focus left, move right, focus right, $con_title
bindsym $mod+Shift+z split h, layout tabbed, focus left, move right, focus right,
exec "
$con_title
"
# toggle fullscreen mode for the focused container
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+f fullscreen toggle
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment