From 54f73da7924ffd6d7106eb96a5986c69b3a20f5c Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Thu, 10 Sep 2020 05:00:27 +0200 Subject: [PATCH] Add global flag to sed This fixes the bug that the scratchpad-terminal is not able to change into a directory with multiple spaces since I forgot to substitute the spaces globally. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index bf4d801..5bb5301 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -221,7 +221,7 @@ for_window [class="st-256color" title="^scratchpad-terminal$"] \ exec_always i3-msg '[class="St" title="^scratchpad-terminal$"] scratchpad show' # Show scratchpad-terminal or create one if none exists. # Pass current working directory of the focused window but escape spaces. -bindsym $mod+comma exec ~/.config/i3/scratchpad-terminal.sh -s -c st-256color -n scratchpad-terminal -e "st -d $(xcwd | sed 's/ /\\\\ /')" +bindsym $mod+comma exec ~/.config/i3/scratchpad-terminal.sh -s -c st-256color -n scratchpad-terminal -e "st -d $(xcwd | sed 's/ /\\\\ /g')" # hide scratchpad-terminal indepedent of where the focus sits bindsym $mod+Shift+comma exec ~/.config/i3/scratchpad-terminal.sh -h -c st-256color -n scratchpad-terminal