forked from Shinonome/dots-hyprland
add manual accent color arg to launcher cmd (#534)
This commit is contained in:
@@ -29,7 +29,10 @@ export function launchCustomCommand(command) {
|
|||||||
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/switchwall.sh`, `&`]).catch(print);
|
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/switchwall.sh`, `&`]).catch(print);
|
||||||
}
|
}
|
||||||
else if (args[0] == '>color') { // Generate colorscheme from color picker
|
else if (args[0] == '>color') { // Generate colorscheme from color picker
|
||||||
|
if (!args[1])
|
||||||
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/switchcolor.sh --pick`, `&`]).catch(print);
|
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/switchcolor.sh --pick`, `&`]).catch(print);
|
||||||
|
else if(args[1][0] === '#')
|
||||||
|
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/switchcolor.sh "${args[1]}"`, `&`]).catch(print);
|
||||||
}
|
}
|
||||||
else if (args[0] == '>light') { // Light mode
|
else if (args[0] == '>light') { // Light mode
|
||||||
darkMode.value = false;
|
darkMode.value = false;
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ STATE_DIR="$XDG_STATE_HOME/ags"
|
|||||||
|
|
||||||
if [ "$1" == "--pick" ]; then
|
if [ "$1" == "--pick" ]; then
|
||||||
color=$(hyprpicker --no-fancy)
|
color=$(hyprpicker --no-fancy)
|
||||||
|
elif [[ "$1" = "#"* ]]; then # this is a color
|
||||||
|
color=$1
|
||||||
else
|
else
|
||||||
color=$(cut -f1 "$STATE_DIR/user/color.txt")
|
color=$(cut -f1 "$STATE_DIR/user/color.txt")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user