Skip to content

Instantly share code, notes, and snippets.

View ChrisColeTech's full-sized avatar
🎯
Focusing

ChrisColeTech

🎯
Focusing
View GitHub Profile

PowerShell Toast Notification Test Script

Installation:

# Step 1: Add PowerShell to PATH (current session and future sessions)
export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"
echo 'export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"' >> ~/.bashrc

# Step 2: Reload bash configuration to ensure PATH changes take effect
source ~/.bashrc
@ChrisColeTech
ChrisColeTech / windows_toast_install.ps1
Last active August 18, 2025 07:38
Windows Toast Notification Installer - Native Windows notifications (WORKING)
# Windows Toast Notification Installer
# This script sets up toast notifications for Windows using the BurntToast module
# Usage: Run this script in PowerShell as Administrator (recommended) or current user
param(
[switch]$Unattended = $false
)
# Function to write colored output
function Write-ColorOutput($ForegroundColor) {
@ChrisColeTech
ChrisColeTech / windows_toast_uninstall.ps1
Last active August 17, 2025 16:59
Windows Toast Notification Uninstaller - PowerShell script (Unicode fixed)
# Windows Toast Notification Uninstaller
# This script removes toast notification setup from Windows
# Usage: Run this script in PowerShell
param(
[switch]$Force = $false
)
# Function to write colored output
function Write-ColorOutput($ForegroundColor) {
@ChrisColeTech
ChrisColeTech / TEST-README.md
Last active August 17, 2025 18:47
README documentation for the toast notification test script

Toast Notification Test Script

This test script provides automated testing for the Windows Toast Notification system in WSL environments. It performs a complete uninstall and reinstall cycle to verify that all components are working correctly.

Overview

The test script (test_toast_install.sh) automates the complete lifecycle testing of toast notifications by:

  1. Uninstalling existing components - Removes both WSL and Windows toast components
  2. Reinstalling fresh components - Downloads and installs the latest versions
@ChrisColeTech
ChrisColeTech / test_toast_install.sh
Last active August 17, 2025 18:56
Test script for toast notification installation - uninstalls and reinstalls both Windows and WSL components
#!/usr/bin/env bash
# Test script for toast notification installation
# This script uninstalls and reinstalls both Windows and WSL toast components
set -euo pipefail
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
@ChrisColeTech
ChrisColeTech / macos_toast_uninstall.sh
Created August 17, 2025 01:00
Windows Toast Notifications - Bash Uninstallation Script for macOS
#!/usr/bin/env bash
# macOS Toast Notification Uninstaller
# This script removes the toast() function from macOS shell configurations
# Usage: bash macos_toast_uninstall.sh
set -euo pipefail
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@ChrisColeTech
ChrisColeTech / macos_toast_install.sh
Created August 17, 2025 01:00
Windows Toast Notifications - Bash Installation Script for macOS
#!/usr/bin/env bash
# macOS Toast Notification Installer
# This script installs a toast() function for macOS using native AppleScript
# Usage: bash macos_toast_install.sh
set -euo pipefail
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@ChrisColeTech
ChrisColeTech / wsl_toast_uninstall.sh
Last active August 17, 2025 13:31
Windows Toast Notifications - Bash Uninstallation Script for WSL
#!/usr/bin/env bash
# WSL Toast Notification Uninstaller
# This script removes the toast() function from WSL shell configurations
# Usage: bash wsl_toast_uninstall.sh
set -euo pipefail
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@ChrisColeTech
ChrisColeTech / wsl_toast_install.sh
Last active August 18, 2025 08:01
Windows Toast Notifications - Bash Installation Script for WSL
#!/usr/bin/env bash
# Windows Toast Notifications - Bash Installation Script for WSL
# WSL Toast Notification Installer
# This script installs a toast() function for WSL that triggers Windows notifications
# Uses C:\ProgramData\Toast\ for system-wide installation - no user detection needed
set -euo pipefail
# Colors for output
RED='\033[0;31m'
@ChrisColeTech
ChrisColeTech / README-macOS.md
Last active August 17, 2025 01:09
Windows Toast Notifications - macOS Installation Guide with Claude Code integration

Toast Notifications - macOS Installation

This guide covers installing toast notifications for macOS using native AppleScript APIs. No additional software required!

Quick Installation

Step 1: Download and Install

  1. Open Terminal