From 77de10758514246ba784e889053dbbb060fadbaa Mon Sep 17 00:00:00 2001 From: Miszo Radomski Date: Thu, 16 Jan 2025 17:55:35 +0100 Subject: [PATCH] chore: move floating apps to yml file --- home/.chezmoidata/floating_apps.yml | 13 ++++ home/.chezmoidata/packages.yml | 8 +-- .../aerospace.toml.tmpl | 61 +------------------ 3 files changed, 20 insertions(+), 62 deletions(-) create mode 100644 home/.chezmoidata/floating_apps.yml diff --git a/home/.chezmoidata/floating_apps.yml b/home/.chezmoidata/floating_apps.yml new file mode 100644 index 0000000..9d16465 --- /dev/null +++ b/home/.chezmoidata/floating_apps.yml @@ -0,0 +1,13 @@ +floating_apps: + - 'com.apple.finder' + - 'com.apple.systempreferences' + - 'com.apple.ActivityMonitor' + - 'com.apple.AppStore' + - 'pl.maketheweb.cleanshotx' + - 'com.1password.1password' + - 'dev.kdrag0n.MacVirt' + - 'com.jordanbaird.Ice' + - 'com.macpaw.CleanMyMac-setapp' + - 'com.iBoysoft.NTFS-Assistant-website-setapp' + - 'org.languagetool.desktop' + - 'com.shure.motivmix' diff --git a/home/.chezmoidata/packages.yml b/home/.chezmoidata/packages.yml index 2141d39..7f6bcc0 100644 --- a/home/.chezmoidata/packages.yml +++ b/home/.chezmoidata/packages.yml @@ -1,7 +1,7 @@ packages: gh: extensions: - - "nektos/gh-act" - - "joaom00/gh-b" - - "github/gh-copilot" - - "dlvhdr/gh-dash" + - 'nektos/gh-act' + - 'joaom00/gh-b' + - 'github/gh-copilot' + - 'dlvhdr/gh-dash' diff --git a/home/dot_config/exact_private_aerospace/aerospace.toml.tmpl b/home/dot_config/exact_private_aerospace/aerospace.toml.tmpl index ea9dab4..08b3268 100644 --- a/home/dot_config/exact_private_aerospace/aerospace.toml.tmpl +++ b/home/dot_config/exact_private_aerospace/aerospace.toml.tmpl @@ -197,66 +197,11 @@ alt-shift-k = ['join-with up', 'mode main'] alt-shift-l = ['join-with right', 'mode main'] # floating windows for apps - - -[[on-window-detected]] -if.app-id = 'com.apple.finder' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.apple.systempreferences' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.apple.AppStore' -run = 'layout floating' - +{{ range .floating_apps }} [[on-window-detected]] -if.app-id = 'pl.maketheweb.cleanshotx' +if.app-id = {{ . | squote }} run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.1password.1password' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.1password.1password' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.apple.ActivityMonitor' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'dev.kdrag0n.MacVirt' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.google.Chrome' -if.window-title-regex-substring = 'Picture in Picture' -run = 'layout floating' -check-further-callbacks = true - -[[on-window-detected]] -if.app-id = 'com.jordanbaird.Ice' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.macpaw.CleanMyMac-setapp' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.iBoysoft.NTFS-Assistant-website-setapp' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'org.languagetool.desktop' -run = 'layout floating' - -[[on-window-detected]] -if.app-id = 'com.shure.motivmix' -run = 'layout floating' - +{{ end }} {{- if .computer.isWork }} [[on-window-detected]] if.app-id = {{ .selfService.appId | squote }}