
* Make icon_prn a nerd-font icons. It was using a font awesome code point, which we don't install with sxmo. * Fix phone locked and laptop icons that weren't automatically updated * Fix brightness icon in legacy nerd-fonts range and move it to sxmo_hook_icons from sxmo_brightness * Use standard Unicode arrows instead of nerd-fonts ones * Use icon variables for arrows in sxmo_wmmenu.sh * Add variable for audio icon & use in sxmo_audio.sh * Remove no stray break space from sxmo_contactmenu * Remove up arrow character from reddit script * use only icon variables in modemtext * Update icons breakpoints Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
38 lines
626 B
Bash
Executable File
38 lines
626 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# Copyright 2022 Sxmo Contributors
|
|
|
|
# include common definitions
|
|
# shellcheck source=scripts/core/sxmo_common.sh
|
|
. sxmo_common.sh
|
|
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
|
|
. sxmo_hook_icons.sh
|
|
|
|
notify() {
|
|
if [ "$SXMO_WM" = "sway" ] && [ -z "$SXMO_WOB_DISABLE" ]; then
|
|
light | grep -o "^[0-9]*" > "$XDG_RUNTIME_DIR"/sxmo.wobsock
|
|
else
|
|
light | xargs dunstify -r 888 "$icon_brightness Brightness"
|
|
fi
|
|
}
|
|
|
|
setvalue() {
|
|
light -S "$1"
|
|
}
|
|
|
|
up() {
|
|
light -A 5
|
|
}
|
|
|
|
down() {
|
|
light -N "${SXMO_MIN_BRIGHTNESS:-5}"
|
|
light -U 5
|
|
}
|
|
|
|
getvalue() {
|
|
light
|
|
}
|
|
|
|
"$@"
|
|
notify
|