Advertisement
bhaveshverma333

set_wallpaper.ps1

Oct 4th, 2023
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.41 KB | Software | 0 0
  1. # $selectedFile = Get-ChildItem -Recurse -File -Include *.png,*.jpg,*.jpeg,*.svg | ForEach-Object { $_.FullName } | fzf
  2. $selectedFile = Get-ChildItem -Depth 3 -File -Include *.png,*.jpg,*.jpeg,*.svg | ForEach-Object { $_.FullName } | fzf
  3.  
  4. if ($selectedFile) {
  5.     Write-Output $selectedFile
  6.     # Assuming `wallpaper` is a valid command to set the wallpaper, use the following line:
  7.     wallpaper $selectedFile
  8. }
  9.  
Tags: powershell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement