Skip to content

Instantly share code, notes, and snippets.

@Shobhit-Nagpal
Created September 12, 2025 13:01
Show Gist options
  • Select an option

  • Save Shobhit-Nagpal/9e7feb3bcac7346575974bafe0a05c68 to your computer and use it in GitHub Desktop.

Select an option

Save Shobhit-Nagpal/9e7feb3bcac7346575974bafe0a05c68 to your computer and use it in GitHub Desktop.
# Utils
function log {
param([string]$Message)
Write-Host "`n$Message"
}
# Startup script (check $PROFILE and add below code there)
function touch {
param([string]$File)
if (Test-Path $File) {
(Get-Item $File).LastWriteTime = Get-Date
} else {
New-Item -Name $File -ItemType File | Out-Null
}
}
# Workspace startup (goes C:\Users\<YOUR_USER>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup as a shortcut)
try {
$glazeWM = "glazewm"
$glazeWMExe = "$glazeWM.exe"
$flowLauncherExe = "Flow.Launcher.Exe"
$flowLauncherFilePath = "PATH\TO\YOUR\FLOW\LAUNCHER\FOLDER.$flowLauncherExe"
# Open GlazeWM
$glazeWMPath = Get-Command $glazeWMExe -ErrorAction Stop | Select-Object -ExpandProperty Source
if (Test-Path $galzeWMPath) {
Start-Process $glazeWM
} else {
log "Could not find GlazeWM Path"
}
# Open FlowLauncher
if (Test-Path $flowLauncherFilePath) {
Start-Process $flowLauncherFilePath
} else {
log "Could not find FlowLauncher Path"
}
} catch {
log $_.Exception.Message
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment