-
Notifications
You must be signed in to change notification settings - Fork 14
kinda major update #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
18fbe81
5a9a9d4
fe19186
45502cc
b546412
7878642
dd981e4
be77c87
c50d5d0
7360024
703d5e1
791b06d
20f5807
3dc09ed
2b62f3c
f8dc29a
b4edfb2
bb0f131
331812f
b8d92ee
0f4076a
6bce226
6f7b383
9579bdf
85b6e72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| @echo off | ||
| set "_home=%~dp0" | ||
| powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" |
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [line 2] windows terminal minimizing problem fix (by using good ol' conhost - the classic command line window manager)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even if they fix it i wouldnt recommend removing it, because some people might have the version with the problem and apart from that it doesnt really affect anything |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| @echo off | ||
| set home=%~dp0 | ||
| cd /D "%~dp0" | ||
| cd ..\mpv | ||
| %home%ChangeWallpaper.exe %home%..\media\first.bmp | ||
| if not [%1]==[ch] (start conhost cmd /c "" "%~dpnx0" ch & exit) | ||
| powershell -NoP -W hidden ; exit | ||
| set "_home=%~dp0" | ||
| cd /D "%_home%" | ||
|
|
||
| powershell -NoP .\wallpaper.ps1 "%_home%..\media\first.bmp" | ||
|
|
||
| timeout 1 | ||
| start /B mpv %home%..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress | ||
| start /B ..\mpv\mpv ..\media\bloom.mp4 --no-osc --no-input-default-bindings --no-taskbar-progress | ||
| cd ..\src | ||
| timeout 5 | ||
| %home%ChangeWallpaper.exe %home%..\media\last.bmp | ||
| timeout 4 | ||
| powershell -NoP .\wallpaper.ps1 "%_home%..\media\last.bmp" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| $imgPath = $args[0] | ||
| $code = @' | ||
| using System.Runtime.InteropServices; | ||
| namespace Win32{ | ||
|
|
||
| public class Wallpaper{ | ||
| [DllImport("user32.dll", CharSet=CharSet.Auto)] | ||
| static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; | ||
|
|
||
| public static void SetWallpaper(string thePath){ | ||
| SystemParametersInfo(20,0,thePath,3); | ||
| } | ||
| } | ||
| } | ||
| '@ | ||
|
|
||
| add-type $code | ||
|
|
||
| #Apply the Change on the system | ||
| [Win32.Wallpaper]::SetWallpaper($imgPath) |
Uh oh!
There was an error while loading. Please reload this page.