diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
| commit | b50c450a572c9951baf2bdf1720fb241625c626d (patch) | |
| tree | 4750183b51250f5444a6839bc2bf679ef9a12b79 /env/.local/bin/scripts/urlview.sh | |
| parent | 735b92dbcfe2f8f85047110bdd17f48900b12b8e (diff) | |
fixed i3blocks breaking blocks on multible monitors
added keybind for cboomer
urlview.sh change
added asciidoc asociation for vis for v0.9 tag
fixed vis theme
added xorg-xinit. fixed typo xlibre-xserver
moved ugrep
urlview check change
Diffstat (limited to 'env/.local/bin/scripts/urlview.sh')
| -rwxr-xr-x | env/.local/bin/scripts/urlview.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/env/.local/bin/scripts/urlview.sh b/env/.local/bin/scripts/urlview.sh index 797f40f..394ac66 100755 --- a/env/.local/bin/scripts/urlview.sh +++ b/env/.local/bin/scripts/urlview.sh @@ -1,14 +1,14 @@ #!/bin/sh -url="$(grep -o -e 'http://[^"]*' -e 'https://[^"]*' <&0 | tr ' ' '\n' | fzf)" -[ "$url" = "" ] && exit +url="$(grep -Eo "https?://[^]})\"'' ]*" <&0 | fzf)" # extra ' because my editor dont syntax highlight correctly +[ ! "$url" ] && exit choices="\ clipboard browser/xdg-open" choice=$(echo "$choices" | fzf) -[ "$choice" = "" ] && exit +[ ! "$choice" ] && exit choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/') # browser/xdg-open should just run xdg-open if [ "$choice" = "clipboard" ]; then |
