Browse Source

x-open: open files in GUI applications

master
Maxim Likhachev 6 years ago committed by Maxim Likhachev
parent
commit
e82aaad2da
  1. 1
      README.md
  2. 11
      x-open

1
README.md

@ -98,5 +98,6 @@ will create the symbolic link for each script in the \<path> directory. @@ -98,5 +98,6 @@ will create the symbolic link for each script in the \<path> directory.
- [poweroff-dialog](poweroff-dialog) and [asroot](asroot) provide a menu with 'shutdown', 'reboot' and 'suspend' commands.
- [windows](windows) shows a list of the all opened windows.
- [www](www) opens rofi menu with the most used www-links.
- [x-open](x-open) opens files via xdg-open (on Linux systems) or via open command (on MacOS).
- [xstab](xstab) runs [st](https://st.suckless.org/) terminal with the [tabbed](https://tools.suckless.org/tabbed/).

11
x-open

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
#!/bin/bash
#Создан: ср 11 дек 2019 16:48:29
#Изменён: ср 11 дек 2019 16:51:50
# Открытие файлов в GUI-приложениях в OS Linux и MacOS
OPENER=$(command -v xdg-open || command -v open)
nohup "$OPENER" "$@" </dev/null >/dev/null 2>&1 &
Loading…
Cancel
Save