this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update terminal default profile on mode switch

+23 -13
+6 -2
actions/update-profile.js
··· 1 1 import darkMode from 'dark-mode'; 2 - import {setTerminalProfile} from 'terminal-profile'; 2 + import {setTerminalProfile, setTerminalDefaultProfile} from 'terminal-profile'; 3 3 import {config} from '../config.js'; 4 4 5 5 export async function updateProfile() { ··· 12 12 } 13 13 14 14 const mode = (await darkMode.isEnabled()) ? 'dark' : 'light'; 15 + const profile = config[`${mode}Profile`]; 15 16 16 - await setTerminalProfile(config[`${mode}Profile`]); 17 + await Promise.all([ 18 + setTerminalProfile(profile), 19 + setTerminalDefaultProfile(profile), 20 + ]); 17 21 }
+6
changelog.md
··· 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 + ## [Unreleased](https://github.com/patrik-csak/auto-terminal-profile/compare/v1.0.0...HEAD) 9 + 10 + ### Added 11 + 12 + - Update Terminal’s default profile on appearance mode switch so that Terminal will use the correct profile when opened after appearance mode switch. 13 + 8 14 ## [1.0.1](https://github.com/patrik-csak/auto-terminal-profile/compare/v1.0.0...v1.0.01) - 2022-12-03 9 15 10 16 ### Added
+8 -8
package-lock.json
··· 19 19 "execa": "^6.1.0", 20 20 "pupa": "^3.1.0", 21 21 "read-pkg-up": "^9.1.0", 22 - "terminal-profile": "^1.0.1", 22 + "terminal-profile": "^1.2.0", 23 23 "untildify": "^4.0.0" 24 24 }, 25 25 "bin": { ··· 4745 4745 } 4746 4746 }, 4747 4747 "node_modules/run-applescript": { 4748 - "version": "6.0.0", 4749 - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-6.0.0.tgz", 4750 - "integrity": "sha512-6dIkCIEcnNepNYu0E5b/Q1vVEeslms8JzGHzHwU2AY1MFe2qXe6ULPABDw1t5/nQ7fIFXhuj+IvA6vDKN2XGWQ==", 4748 + "version": "6.1.0", 4749 + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-6.1.0.tgz", 4750 + "integrity": "sha512-4sbn5dfGD41izkksKNcYuhIIQduzNp0+kGM+GqhXcHr9TFIMffkBAcPFCiwP0K7T2h85JWSdTJTMbm6R5mG3SQ==", 4751 4751 "dependencies": { 4752 4752 "execa": "^5.1.1" 4753 4753 }, ··· 5329 5329 } 5330 5330 }, 5331 5331 "node_modules/terminal-profile": { 5332 - "version": "1.1.0", 5333 - "resolved": "https://registry.npmjs.org/terminal-profile/-/terminal-profile-1.1.0.tgz", 5334 - "integrity": "sha512-MSlLKyxTDErKShK5M3QETCecdH89zjT91qqkTt/YUaSjT47XTLyL0g3tfC8929GzJFwYp7CGglz0pb2v8hFp+w==", 5332 + "version": "1.2.0", 5333 + "resolved": "https://registry.npmjs.org/terminal-profile/-/terminal-profile-1.2.0.tgz", 5334 + "integrity": "sha512-B2WXYH8XIJe9Q+hBqTRvO5UiblZsfMbnvgHi4w+M09bCVuRRclOKM44T1LJebFr3SYphwNu5lCYUzVyg9KnSVw==", 5335 5335 "os": [ 5336 5336 "darwin" 5337 5337 ], ··· 5339 5339 "run-applescript": "^6.0.0" 5340 5340 }, 5341 5341 "engines": { 5342 - "node": "14 - 19" 5342 + "node": ">=14 <=19" 5343 5343 } 5344 5344 }, 5345 5345 "node_modules/terser": {
+3 -3
package.json
··· 26 26 "execa": "^6.1.0", 27 27 "pupa": "^3.1.0", 28 28 "read-pkg-up": "^9.1.0", 29 - "terminal-profile": "^1.0.1", 29 + "terminal-profile": "^1.2.0", 30 30 "untildify": "^4.0.0" 31 31 }, 32 32 "devDependencies": { 33 33 "xo": "^0.53.1" 34 34 }, 35 35 "engines": { 36 - "node": "14 - 19" 36 + "node": ">=14 <=19" 37 37 }, 38 38 "os": [ 39 39 "darwin" 40 40 ], 41 41 "type": "module" 42 - } 42 + }