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
/* put this in the chrome folder and load it in your main userChrome.css file with @import url("firefoxInactive.css") screen; */ | |
/* adding the system accent colour to the non-system titlebar. you can also just use regular background colour instead of gradient if you're BORING*/ | |
#toolbar-menubar { | |
background: linear-gradient(180deg, AccentColor 50%, rgba(0,0,0,0)) !important; | |
} | |
/* dimming the titlebar and most elements on it when inactive */ | |
#toolbar-menubar:-moz-window-inactive { | |
background: transparent !important; |
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
import easygui, sys, os | |
#TODO remake for multiple files | |
try: | |
# get input file from dragging and dropping onto the script | |
input_file=sys.argv[1] | |
except IndexError: | |
# if the script is double clicked, open a file dialog | |
input_file=easygui.fileopenbox() |
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
; Replicates spring loaded key functionality for any key | |
SpringLoadedKey(key, timeHeld) ; parameters: hotkey that you want to send, timeout for the key to be considered held and not tapped | |
{ | |
send { %key% } ; send first hotkey on key down | |
keywait, %A_ThisHotkey% ; wait for key up | |
if (A_TimeSinceThisHotkey > timeHeld) ; if key was down for more than the timeout value, | |
{ ; then on key up send the second hotkey to toggle it off, | |
send { %key% } ; otherwise do nothing, making the toggle 'stick' | |
} | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Control Panel\Desktop] | |
"DragHeight"="50" | |
[HKEY_CURRENT_USER\Control Panel\Desktop] | |
"DragWidth"="50" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci] | |
"Start"=dword:00000000 | |
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
& "C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /backup "$ENV:UserProfile\Documents\WacomBackup.wacomprefs" | |
(Get-Content $ENV:UserProfile\Documents\WacomBackup.wacomprefs).Replace('1</Orientation>' , | |
'3</Orientation>' ) | | |
Set-Content $ENV:UserProfile\Documents\WacomBackup.wacomprefs | |
& "C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /restore /silent "$ENV:UserProfile\Documents\WacomBackup.wacomprefs" | |
Wait-Process -Name PrefUtil #wait until prefutil is done. For some reason it's faster with the /silent switch | |
Read-Host -Prompt "Done. Press Enter to exit" |
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
$Shell = New-Object -ComObject Shell.Application | |
$Global:Recycler = $Shell.NameSpace(0xa) | |
foreach($item in $Recycler.Items()) | |
{ | |
$DeletedDate = $Recycler.GetDetailsOf($item,2) -replace "\u200f|\u200e","" | |
$dtDeletedDate = get-date $DeletedDate | |
If($dtDeletedDate -lt (Get-Date).AddMonths(-6)) | |
{ | |
Remove-Item -Path $item.Path -Confirm:$false -Force -Recurse |
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
echo Reset crashed Wacom drivers and restore settings automatically (since they can get lost on stopping the service). | |
echo Tested with driver version 6.3.27-2. Run as admin. Restart your painting app after running the script. | |
cd %USERPROFILE%\Documents | |
"C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /backup WBackup.wacomprefs | |
net stop WTabletServicePro | |
net start WTabletServicePro | |
"C:\Program Files\Tablet\Wacom\32\PrefUtil.exe" /restore WBackup.wacomprefs |
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
# Reset crashed Wacom drivers and restore settings automatically (since they can get lost on stopping the service). | |
# Tested with driver version 6.3.27-2. Restart your painting app after running the script. | |
#elevation | |
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
$arguments = "& '" + $myinvocation.mycommand.definition + "'" | |
Start-Process powershell -Verb runAs -ArgumentList $arguments | |
Break | |
} |