Commit ac74b034 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Merge branch 'development'

parents 072097a7 d7b0fe0d
...@@ -153,23 +153,14 @@ workspace_auto_back_and_forth yes ...@@ -153,23 +153,14 @@ workspace_auto_back_and_forth yes
#bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth #bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# Set $con_title (embedded script) - used in split orientations below. # Set $con_title (embedded script) - used in split orientations below.
# Three options for container title_format below (comment out one). # Sets a simple "..." container title. You can then use $mod+slash to set a custom name.
# - the first option give a simple oblique title format (which I prefer). # NOTE: requires xdotool.
# - the second option uses application window title (but colored and bolded) that was selected when the container was created. set $con_title i3-msg focus parent, title_format \\"<span> <b><tt>...</tt></b></span>\\", focus child
# - the third option simply uses "CONTAINER" window title - you can then use $mod+slash to set a custom name
# NOTE1: Comment out all options to use default container title_format.
# NOTE2: requires xdotool.
#
#set $con_title i3-msg focus parent, title_format \\"<span font_style='oblique'><tt> <u>%title</u></tt></span>\\", focus child
#set $con_title i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b>📦 %title</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
#set $con_title i3-msg focus parent, title_format \\"<span foreground='#FEC196'><b>📦 <tt><u>\\$mod+/</u></tt> to change container title</b></span>\\", focus child
# dynamic renaming of parent container # 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> <b><tt>$ANSWER</tt></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> <b><tt>$ANSWER</tt></b></span>\\", focus child; fi"
bindsym $mod+$mod_next+slash focus parent, title_format "<span font_style='oblique'> <u><tt>%title</tt></u></span>", focus child # sets back to default i3 container title
bindsym $mod+Ctrl+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" bindsym $mod+$mod_next+slash focus parent, title_format " %title", focus child
bindsym $mod+$mod_next+Ctrl+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 \\"move left\\"; $con_title; done"
# container layouts # container layouts
bindsym $mod+w layout tabbed bindsym $mod+w layout tabbed
......
...@@ -107,8 +107,15 @@ workspace_auto_back_and_forth yes ...@@ -107,8 +107,15 @@ workspace_auto_back_and_forth yes
#bindsym $mod+b workspace back_and_forth #bindsym $mod+b workspace back_and_forth
#bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth #bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# dynamic renaming of parent container # Set $con_title (embedded script) - used in split orientations below.
# Sets a simple "..." container title. You can then use $mod+slash to set a custom name.
# NOTE: requires xdotool.
set $con_title i3-msg focus parent, title_format \\"<span> <b><tt>...</tt></b></span>\\", focus child
# 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> <b><tt>$ANSWER</tt></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> <b><tt>$ANSWER</tt></b></span>\\", focus child; fi"
# sets back to default i3 container title
bindsym $mod+$mod_next+slash focus parent, title_format " %title", focus child
# container layouts # container layouts
bindsym $mod+w layout tabbed bindsym $mod+w layout tabbed
...@@ -117,10 +124,10 @@ bindsym $mod+e layout splitv ...@@ -117,10 +124,10 @@ bindsym $mod+e layout splitv
bindsym $mod+s layout stacking bindsym $mod+s layout stacking
# child container layout bindsyms (creates a child container from currently select window) # child container layout bindsyms (creates a child container from currently select window)
bindsym $mod+$mod_next+q split h; focus child bindsym $mod+$mod_next+q split h; focus child; exec "$con_title"
bindsym $mod+$mod_next+e split v; focus child bindsym $mod+$mod_next+e split v; focus child; exec "$con_title"
bindsym $mod+$mod_next+w split h; layout tabbed; focus child bindsym $mod+$mod_next+w split h; layout tabbed; focus child; exec "$con_title"
bindsym $mod+$mod_next+s split h; layout stacked; focus child bindsym $mod+$mod_next+s split h; layout stacked; focus child; 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment