- Light theme uses Papirus-Light: the panel icons of Papirus are #dfdfdf, made for dark panels (xsettings, theme index, login screen). - das-panel-icon help/-h/--help print usage instead of setting an icon; unknown options are rejected. - New packages publisher (publish) and deployer (deploy) on the desktop image: config in ~/.config/<name>/ (neutral example copied on first run), history in ~/.local/state/<name>/. - das-theme 0.3.0, das-settings 0.6.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
36 lines
937 B
Bash
Executable File
36 lines
937 B
Bash
Executable File
#!/bin/bash
|
|
# Picks the icon of the menu button on the panel: das-panel-icon star|trident|<icon name>.
|
|
set -u
|
|
|
|
usage() {
|
|
echo "usage: das-panel-icon star|trident|ICON-NAME" >&2
|
|
echo "now: $(xfconf-query -c xfce4-panel -p /plugins/plugin-1/button-icon 2>/dev/null || echo das-logo)" >&2
|
|
}
|
|
|
|
case ${1:-} in
|
|
star) icon=das-logo ;;
|
|
trident) icon=das-trident ;;
|
|
help | -h | --help)
|
|
usage
|
|
exit 0
|
|
;;
|
|
"")
|
|
usage
|
|
exit 1
|
|
;;
|
|
-*)
|
|
echo "das-panel-icon: unknown option $1" >&2
|
|
usage
|
|
exit 1
|
|
;;
|
|
*) icon=$1 ;;
|
|
esac
|
|
|
|
prop=/plugins/plugin-1/button-icon
|
|
xfconf-query -c xfce4-panel -p "$prop" -s "$icon" 2>/dev/null ||
|
|
xfconf-query -c xfce4-panel -p "$prop" -n -t string -s "$icon" || exit 1
|
|
# whiskermenu keeps its own copy in the rc file, which wins over xfconf
|
|
rc="${XDG_CONFIG_HOME:-$HOME/.config}/xfce4/panel/whiskermenu-1.rc"
|
|
[[ -f $rc ]] && sed -i "s|^button-icon=.*|button-icon=$icon|" "$rc"
|
|
xfce4-panel -r >/dev/null 2>&1 &
|