Skip to content

Commit

Permalink
fix bad apple
Browse files Browse the repository at this point in the history
  • Loading branch information
end-4 committed Mar 22, 2024
1 parent 5cd519f commit f07f55e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .config/ags/modules/overview/miscfunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export function launchCustomCommand(command) {
.catch(print);
}
else if (args[0] == '>badapple') { // Black and white
execAsync([`bash`, `-c`, `${App.configDir}/scripts/color_generation/applycolor.sh --bad-apple`]).catch(print)
execAsync([`bash`, `-c`, `mkdir -p ${GLib.get_user_cache_dir()}/ags/user && sed -i "3s/.*/monochrome/" ${GLib.get_user_cache_dir()}/ags/user/colormode.txt`])
.then(execAsync(['bash', '-c', `${App.configDir}/scripts/color_generation/switchcolor.sh`]))
.catch(print);
}
else if (args[0] == '>material') { // Use material colors
execAsync([`bash`, `-c`, `mkdir -p ${GLib.get_user_cache_dir()}/ags/user && echo "material" > ${GLib.get_user_cache_dir()}/ags/user/colorbackend.txt`]).catch(print)
Expand Down

0 comments on commit f07f55e

Please sign in to comment.