View difference between Paste ID: HYBkx6Lv and 6tqn4MAa
SHOW: | | - or go back to the newest paste.
1
michael@Rocket:~$ cat tools/brightness 
2
#!/bin/bash
3
cd /mnt/c/Users/Michael
4
./brightness.ps1 $1
5
michael@Rocket:~$ cat Windows/brightness.ps1 
6
#!/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
7
$level = $args[0]
8
$monitor = Get-WmiObject -ns root/wmi -class wmiMonitorBrightNessMethods
9
$monitor.WmiSetBrightness(5, $level)
10
michael@Rocket:~$