dialog zenity changes
This commit is contained in:
parent
85c9e9f969
commit
f10a66ba2f
2 changed files with 13 additions and 7 deletions
|
|
@ -45,9 +45,11 @@ done
|
|||
|
||||
# Check if running under wayland.
|
||||
if [ "$WAYLAND_DISPLAY" = "" ]; then
|
||||
kdialog --error "This color picker must be run under a valid wayland session." \
|
||||
--title "No wayland session found."
|
||||
|
||||
# kdialog --error "This color picker must be run under a valid wayland session." \
|
||||
# --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
|
||||
fi
|
||||
|
||||
|
|
@ -84,12 +86,16 @@ if [ $CLIPBOARD -eq 1 ]; then
|
|||
fi
|
||||
else
|
||||
# Display a color picker and store the returned rgb color
|
||||
# rgb_color=$(
|
||||
# kdialog --getcolor \
|
||||
# --title="Copy color to Clipboard" \
|
||||
# --default "${color}"
|
||||
# )
|
||||
rgb_color=$(
|
||||
kdialog --getcolor \
|
||||
zenity --color-selection \
|
||||
--title="Copy color to Clipboard" \
|
||||
--default "${color}"
|
||||
--color="${color}"
|
||||
)
|
||||
|
||||
# Execute if user didn't click cancel
|
||||
if [ "$rgb_color" != "" ]; then
|
||||
# Convert rgb color to hex
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ for_window {
|
|||
[app_id="xdg-desktop-portal-gtk"] $popup, $half
|
||||
[class="^feh$"] $popup, $small, $atcursor
|
||||
[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
|
||||
|
||||
#game - inhibit idle focus, no border, fullscreen, floating
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue