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'.
This commit is contained in:
Lucien Cartier-Tilet 2020-08-22 16:52:32 +02:00
parent a6fa766771
commit 166f2094df
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -124,7 +124,7 @@
#!/usr/bin/env fish #!/usr/bin/env fish
set WLOCATION /usr/share/doc/arch-wiki/html/en/ set WLOCATION /usr/share/doc/arch-wiki/html/en/
set WPAGE (/bin/ls $WLOCATION | \ 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') rofi -dmenu -p "Arch Wiki" -i | sed 's/ +/_/g')
#+END_SRC #+END_SRC
@ -1189,7 +1189,6 @@
if test -n "$externaldisplay" if test -n "$externaldisplay"
set resolution (echo $externaldisplay[2] | awk '{$1=$1;print $1}') set resolution (echo $externaldisplay[2] | awk '{$1=$1;print $1}')
xrandr --output "$external" --primary --auto --mode "$resolution" --right-of "$internal" xrandr --output "$external" --primary --auto --mode "$resolution" --right-of "$internal"
i3-msg restart
end end
#+END_SRC #+END_SRC