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