From 3e7487927bac9d7496df9b4380d87be3711aeecb Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 15 May 2022 16:05:46 +0800 Subject: [PATCH] feat: add drawio --- gui/basic.sh | 1 + gui/drawio.sh | 14 ++++++++++++++ gui/drawio/drawio.desktop | 10 ++++++++++ gui/rofi/config.rasi | 1 + 4 files changed, 26 insertions(+) create mode 100755 gui/drawio.sh create mode 100644 gui/drawio/drawio.desktop diff --git a/gui/basic.sh b/gui/basic.sh index cfb1445..05d2dda 100755 --- a/gui/basic.sh +++ b/gui/basic.sh @@ -54,6 +54,7 @@ case "$UNAMEA" in exfat-utils \ gnome-keyring libsecret \ thunar gvfs-smb gvfs-mtp thunar-archive-plugin file-roller tumbler \ + flameshot \ alacritty # ntp sudo pacman -S --noconfirm --needed \ diff --git a/gui/drawio.sh b/gui/drawio.sh new file mode 100755 index 0000000..ff71732 --- /dev/null +++ b/gui/drawio.sh @@ -0,0 +1,14 @@ +#!/bin/sh +DIR=$(dirname "$(readlink -f "$0")") +. "$DIR/../env.sh" + +log 'Setting up drawio' + +echo download AppImage from github and save to ~/.local/bin +xdg-open "https://github.com/jgraph/drawio-desktop/releases" + +echo download icon from github and save to ~/.local/share/icons/drawio.svg +xdg-open "https://github.com/jgraph/drawio-desktop/blob/dev/build/icon.svg" + + +lnsf "$DIR/drawio/drawio.desktop" ~/.local/share/applications/drawio.desktop diff --git a/gui/drawio/drawio.desktop b/gui/drawio/drawio.desktop new file mode 100644 index 0000000..7633084 --- /dev/null +++ b/gui/drawio/drawio.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=drawio +Icon=drawio.svg +Exec=drawio %f +Comment=Diagram +Categories=Utility +Terminal=false +MimeType=image/svg diff --git a/gui/rofi/config.rasi b/gui/rofi/config.rasi index 8bf69de..970aab7 100644 --- a/gui/rofi/config.rasi +++ b/gui/rofi/config.rasi @@ -1,4 +1,5 @@ configuration{ + combi-modi: "drun,run,window"; modi: "drun,run,window"; lines: 5; font: "monospace 14";