From 7aef153cb53e6e901879ab1cb08c0c5c8ce2893f Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Fri, 15 Sep 2023 09:10:32 +0200 Subject: [PATCH] Start nautilus with thunar as backup --- scripts/filemanager.sh | 20 ++++++++++++++++++++ waybar/modules.json | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 scripts/filemanager.sh diff --git a/scripts/filemanager.sh b/scripts/filemanager.sh new file mode 100755 index 0000000..804feff --- /dev/null +++ b/scripts/filemanager.sh @@ -0,0 +1,20 @@ +#/bin/sh +# _____ _ _ +# | ___(_) | ___ _ __ ___ __ _ _ __ __ _ __ _ ___ _ __ +# | |_ | | |/ _ \ '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \ '__| +# | _| | | | __/ | | | | | (_| | | | | (_| | (_| | __/ | +# |_| |_|_|\___|_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|_| +# |___/ +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + +source ~/dotfiles/scripts/library.sh + +if [ -f "/usr/bin/nautilus" ]; then + echo "nautilus is installed."; + nautilus +else + echo "nautilus not installed. Launching thunar instead." + thunar +fi; diff --git a/waybar/modules.json b/waybar/modules.json index fdcb856..ccf9380 100644 --- a/waybar/modules.json +++ b/waybar/modules.json @@ -80,7 +80,7 @@ // Filemanager Launcher "custom/filemanager": { "format": "", - "on-click": "nautilus", + "on-click": "~/dotfiles/scripts/filemanager.sh", "tooltip": false },