Better naming
This commit is contained in:
@@ -84,7 +84,7 @@ done_file=$(mktemp)
|
|||||||
rm -f "$done_file"
|
rm -f "$done_file"
|
||||||
trap 'rm -f "$selection_file" "$done_file"' EXIT
|
trap 'rm -f "$selection_file" "$done_file"' EXIT
|
||||||
socket_path="${XDG_RUNTIME_DIR:-/run/user/$UID}/omarchy-image-selector.sock"
|
socket_path="${XDG_RUNTIME_DIR:-/run/user/$UID}/omarchy-image-selector.sock"
|
||||||
selector_qml="$OMARCHY_PATH/default/quickshell/background-switcher.qml"
|
selector_qml="$OMARCHY_PATH/default/quickshell/select-by-image.qml"
|
||||||
|
|
||||||
image_dirs_env=""
|
image_dirs_env=""
|
||||||
for dir in "${image_dirs[@]}"; do
|
for dir in "${image_dirs[@]}"; do
|
||||||
@@ -216,7 +216,7 @@ fi
|
|||||||
|
|
||||||
rows_payload=${rows//$'\t'/$'\f'}
|
rows_payload=${rows//$'\t'/$'\f'}
|
||||||
rows_payload=${rows_payload//$'\n'/$'\v'}
|
rows_payload=${rows_payload//$'\n'/$'\v'}
|
||||||
colors_file=${colors_file:-$HOME/.config/omarchy/current/theme/background-switcher-colors.json}
|
colors_file=${colors_file:-$HOME/.config/omarchy/current/theme/quickshell.json}
|
||||||
colors_payload=""
|
colors_payload=""
|
||||||
|
|
||||||
if [[ -f $colors_file ]]; then
|
if [[ -f $colors_file ]]; then
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ ShellRoot {
|
|||||||
property string imageRows: ""
|
property string imageRows: ""
|
||||||
property string selectionFile: Quickshell.env("OMARCHY_IMAGE_SELECTOR_SELECTION_FILE") || Quickshell.env("OMARCHY_BACKGROUND_SELECTION_FILE")
|
property string selectionFile: Quickshell.env("OMARCHY_IMAGE_SELECTOR_SELECTION_FILE") || Quickshell.env("OMARCHY_BACKGROUND_SELECTION_FILE")
|
||||||
property string selectedImage: Quickshell.env("OMARCHY_IMAGE_SELECTOR_SELECTED")
|
property string selectedImage: Quickshell.env("OMARCHY_IMAGE_SELECTOR_SELECTED")
|
||||||
property string colorsFile: Quickshell.env("OMARCHY_IMAGE_SELECTOR_COLORS_FILE") || (Quickshell.env("HOME") + "/.config/omarchy/current/theme/background-switcher-colors.json")
|
property string colorsFile: Quickshell.env("OMARCHY_IMAGE_SELECTOR_COLORS_FILE") || (Quickshell.env("HOME") + "/.config/omarchy/current/theme/quickshell.json")
|
||||||
property int selectedIndex: 0
|
property int selectedIndex: 0
|
||||||
property bool imagesLoaded: false
|
property bool imagesLoaded: false
|
||||||
property bool opened: false
|
property bool opened: false
|
||||||
@@ -241,7 +241,7 @@ ShellRoot {
|
|||||||
showLabels = nextShowLabels === true || nextShowLabels === "true"
|
showLabels = nextShowLabels === true || nextShowLabels === "true"
|
||||||
filterable = nextFilterable === true || nextFilterable === "true"
|
filterable = nextFilterable === true || nextFilterable === "true"
|
||||||
filterText = ""
|
filterText = ""
|
||||||
colorsFile = nextColorsFile || (Quickshell.env("HOME") + "/.config/omarchy/current/theme/background-switcher-colors.json")
|
colorsFile = nextColorsFile || (Quickshell.env("HOME") + "/.config/omarchy/current/theme/quickshell.json")
|
||||||
if (nextColorsRaw)
|
if (nextColorsRaw)
|
||||||
loadColors(nextColorsRaw)
|
loadColors(nextColorsRaw)
|
||||||
imageModel.clear()
|
imageModel.clear()
|
||||||
Reference in New Issue
Block a user