diff --git a/README.md b/README.md index 8b13299..d5e69b0 100644 --- a/README.md +++ b/README.md @@ -98,5 +98,6 @@ will create the symbolic link for each script in the \ 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/). diff --git a/x-open b/x-open new file mode 100755 index 0000000..570e7c4 --- /dev/null +++ b/x-open @@ -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 2>&1 & +