From c0570b84a1d3eafefe79337a001932a7632581d9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:54:02 +0700 Subject: [PATCH] no newline in welcome msg --- .config/ags/services/messages.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/ags/services/messages.js b/.config/ags/services/messages.js index b282b3f45..7f0db3d83 100644 --- a/.config/ags/services/messages.js +++ b/.config/ags/services/messages.js @@ -11,15 +11,16 @@ export function fileExists(filePath) { const FIRST_RUN_FILE = "firstrun.txt"; const FIRST_RUN_PATH = GLib.build_filenamev([GLib.get_user_cache_dir(), "ags", "user", FIRST_RUN_FILE]); const FIRST_RUN_FILE_CONTENT = "Just a file to confirm that you have been greeted ;)"; -const APP_NAME = "ags"; +const APP_NAME = "illogical-impulse"; const FIRST_RUN_NOTIF_TITLE = "Welcome!"; -const FIRST_RUN_NOTIF_BODY = `Looks like this is your first run.\nHit Super + / for a list of keybinds.`; +const FIRST_RUN_NOTIF_BODY = `Looks like this is your first run. For a list of keybinds, hit Super + /.`; export async function firstRunWelcome() { if (!fileExists(FIRST_RUN_PATH)) { Utils.writeFile(FIRST_RUN_FILE_CONTENT, FIRST_RUN_PATH) .then(() => { // Note that we add a little delay to make sure the cool circular progress works + Utils.execAsync(['hyprctl', 'keyword', 'bind', "Super,Slash,exec,ags -t cheatsheet"]); Utils.execAsync(['bash', '-c', `sleep 0.5; notify-send "Millis since epoch" "$(date +%s%N | cut -b1-13)"; sleep 0.5; notify-send '${FIRST_RUN_NOTIF_TITLE}' '${FIRST_RUN_NOTIF_BODY}' -a '${APP_NAME}' &` ]).catch(print)