Call common script, moved icons to common script, removed unnecessary aliases from common (let's add them only when there are conflicts), made sure plays along with shellcheck
This commit is contained in:
parent
32c4cb6682
commit
f4ba3978c9
12 changed files with 241 additions and 421 deletions
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env sh
|
||||
trap gracefulexit INT TERM
|
||||
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
|
||||
|
||||
# include common definitions
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. "$(dirname "$0")/sxmo_common.sh"
|
||||
|
||||
gracefulexit() {
|
||||
echo "Gracefully exiting $0"
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
# shellcheck source=./sxmo_icons.sh
|
||||
. "$DIR/sxmo_icons.sh"
|
||||
# include common definitions
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. "$(dirname "$0")/sxmo_common.sh"
|
||||
|
||||
notificationmenu() {
|
||||
CHOICES="$icon_cls Close Menu\n$icon_del Clear Notifications"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
|
||||
|
||||
# include common definitions
|
||||
# shellcheck source=scripts/core/sxmo_common.sh
|
||||
. "$(dirname "$0")/sxmo_common.sh"
|
||||
|
||||
# Takes 4 args:
|
||||
# (1) the filepath of the notification to write (or random to generate a random id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue