From 166f2094dfcc6947393bbe34cc09862a57e5fc47 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 22 Aug 2020 16:52:32 +0200 Subject: [PATCH] Better `sed' command and fixed `set-screens' `set-screens' used to automatically restart i3. Since I do not use i3 and Awesome needs no restart after invoking this command, I removed the call to `i3-msg'. --- org/config/bin.org | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org/config/bin.org b/org/config/bin.org index 0919f93..e524fcb 100644 --- a/org/config/bin.org +++ b/org/config/bin.org @@ -124,7 +124,7 @@ #!/usr/bin/env fish set WLOCATION /usr/share/doc/arch-wiki/html/en/ set WPAGE (/bin/ls $WLOCATION | \ - sed 's/_/ /g' | sed 's/\.html$//' | sed 's/.*\/\(.*\)/\1/' | \ + sed -e 's/_/ /g' -e 's/\.html$//' -e 's|.*/\(.*\)|\1|' | \ rofi -dmenu -p "Arch Wiki" -i | sed 's/ +/_/g') #+END_SRC @@ -1189,7 +1189,6 @@ if test -n "$externaldisplay" set resolution (echo $externaldisplay[2] | awk '{$1=$1;print $1}') xrandr --output "$external" --primary --auto --mode "$resolution" --right-of "$internal" - i3-msg restart end #+END_SRC