dialog zenity changes

This commit is contained in:
Penelope Gwen 2026-07-08 07:56:00 -07:00 committed by Penelope Gwen
parent 85c9e9f969
commit f10a66ba2f
2 changed files with 13 additions and 7 deletions

View file

@ -45,9 +45,11 @@ done
# Check if running under wayland. # Check if running under wayland.
if [ "$WAYLAND_DISPLAY" = "" ]; then if [ "$WAYLAND_DISPLAY" = "" ]; then
kdialog --error "This color picker must be run under a valid wayland session." \ # kdialog --error "This color picker must be run under a valid wayland session." \
--title "No wayland session found." # --title "No wayland session found."
zenity --error --width 400 \
--title "No wayland session found." \
--text "This color picker must be run under a valid wayland session."
exit 1 exit 1
fi fi
@ -84,12 +86,16 @@ if [ $CLIPBOARD -eq 1 ]; then
fi fi
else else
# Display a color picker and store the returned rgb color # Display a color picker and store the returned rgb color
# rgb_color=$(
# kdialog --getcolor \
# --title="Copy color to Clipboard" \
# --default "${color}"
# )
rgb_color=$( rgb_color=$(
kdialog --getcolor \ zenity --color-selection \
--title="Copy color to Clipboard" \ --title="Copy color to Clipboard" \
--default "${color}" --color="${color}"
) )
# Execute if user didn't click cancel # Execute if user didn't click cancel
if [ "$rgb_color" != "" ]; then if [ "$rgb_color" != "" ]; then
# Convert rgb color to hex # Convert rgb color to hex

View file

@ -59,7 +59,7 @@ for_window {
[app_id="xdg-desktop-portal-gtk"] $popup, $half [app_id="xdg-desktop-portal-gtk"] $popup, $half
[class="^feh$"] $popup, $small, $atcursor [class="^feh$"] $popup, $small, $atcursor
[app_id="org.kde.dolphin" title="^Extracting Files"] $popup, $med [app_id="org.kde.dolphin" title="^Extracting Files"] $popup, $med
[app_id="zenity"] $popup, $small, $atcursor, blur_xray enable [app_id="zenity"] $popup, $small, blur_xray enable
[app_id="yad"] $popup, $small, $atcursor [app_id="yad"] $popup, $small, $atcursor
#game - inhibit idle focus, no border, fullscreen, floating #game - inhibit idle focus, no border, fullscreen, floating