icons: Change into a hook
Fixes the icons hook to be where the migration script moved it. Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:

committed by
Stacy Harper

parent
8e97c84c11
commit
ffcfa6f6a4
@@ -2,8 +2,8 @@
|
|||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
|
||||||
# include common definitions \
|
# include common definitions \
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
write_line() {
|
write_line() {
|
||||||
printf "%s ^ 0 ^ %s\n" "$1" "$2"
|
printf "%s ^ 0 ^ %s\n" "$1" "$2"
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(which sxmo_common.sh)"
|
. "$(which sxmo_common.sh)"
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
XPROPOUT="$(sxmo_wm.sh focusedwindow)"
|
XPROPOUT="$(sxmo_wm.sh focusedwindow)"
|
||||||
WMCLASS="${1:-$(printf %s "$XPROPOUT" | grep app: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}"
|
WMCLASS="${1:-$(printf %s "$XPROPOUT" | grep app: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}"
|
||||||
|
@@ -125,8 +125,3 @@ icon_zmi=""
|
|||||||
icon_zmo=""
|
icon_zmo=""
|
||||||
icon_zzz="" #sleep/suspend/crust
|
icon_zzz="" #sleep/suspend/crust
|
||||||
|
|
||||||
#allow the user to override icons
|
|
||||||
if icons_path="$(command -v sxmo_hook_icons.sh)"; then
|
|
||||||
# shellcheck disable=SC1090
|
|
||||||
. "$icons_path"
|
|
||||||
fi
|
|
@@ -5,8 +5,8 @@
|
|||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(which sxmo_common.sh)"
|
. "$(which sxmo_common.sh)"
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
write_line() {
|
write_line() {
|
||||||
printf "%s ^ 0 ^ %s\n" "$1" "$2"
|
printf "%s ^ 0 ^ %s\n" "$1" "$2"
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(which sxmo_common.sh)"
|
. "$(which sxmo_common.sh)"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. sxmo_icons.sh
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. sxmo_common.sh
|
. sxmo_common.sh
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. sxmo_icons.sh
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
trap "gracefulexit" INT TERM
|
trap "gracefulexit" INT TERM
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(which sxmo_common.sh)"
|
. "$(which sxmo_common.sh)"
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(which sxmo_icons.sh)"
|
. sxmo_hook_icons.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Main vvm (Visual Voice Mail) code. Functions here are called from sxmo_modemmonitor.sh
|
# Main vvm (Visual Voice Mail) code. Functions here are called from sxmo_modemmonitor.sh
|
||||||
|
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# include common definitions
|
# include common definitions
|
||||||
# shellcheck source=scripts/core/sxmo_icons.sh
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
||||||
. "$(dirname "$0")/sxmo_icons.sh"
|
. sxmo_hook_icons.sh
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user