diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
| commit | 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch) | |
| tree | 6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | |
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc
nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh')
| -rwxr-xr-x | users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh b/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh new file mode 100755 index 0000000..c5d8ed0 --- /dev/null +++ b/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | # hyprland/window -> focused application name. | ||
| 3 | # (For the literal window *title* instead of the app name, query yabai: | ||
| 4 | # yabai -m query --windows --window | jq -r '.title') | ||
| 5 | source "$CONFIG_DIR/colors.sh" | ||
| 6 | source "$CONFIG_DIR/icons.sh" | ||
| 7 | |||
| 8 | if [ "$SENDER" = "front_app_switched" ]; then | ||
| 9 | sketchybar --set "$NAME" label="$INFO" | ||
| 10 | fi | ||
