Created
September 12, 2025 13:01
-
-
Save Shobhit-Nagpal/9e7feb3bcac7346575974bafe0a05c68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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