Skip to content

Instantly share code, notes, and snippets.

@reisir
reisir / assoc_rmskin.ps1
Last active September 12, 2023 15:06
Associate .rmskin files to SkinInstaller.exe
# Find SkinInstaller.exe (search all drives recursively)
Write-Host Finding SkinInstaller.exe
$SkinInstaller = Get-Childitem -Path (Get-Volume | % { $_.DriveLetter } | Where { $_ -ne $null } | % { $_ + ":\" }) -Recurse -ErrorAction SilentlyContinue -File -Filter "SkinInstaller.exe" | Select-Object -First 1
$SkinInstallerPath = $SkinInstaller.VersionInfo.FileName
Write-Host Found SkinInstaller.exe at $SkinInstallerPath
# Call ftype & assoc to set the command and file type association
Write-Host Associating .rmskin to SkinInstaller.exe
cmd.exe /c ftype Rainmeter.SkinInstaller=`"$SkinInstallerPath`" %1
cmd.exe /c assoc .rmskin=Rainmeter.SkinInstaller
@reisir
reisir / Arc.ini
Created July 27, 2023 19:41
Arc RoundLine (round progress)
; Arc that follows an ellipse shape. Basically a replacement for the RoundLine meter.
; Arcs can use the various Stroke modifiers that come with the Shape meter.
; Could also be used to make any meter follow an ellipse shape
[Rainmeter]
Update=16
; Source measure. Should have MinValue / MaxValue set if not automatically provided by the measure
[MeasureProgress]
@reisir
reisir / TitleExtraction.ini
Last active July 26, 2023 21:02
Title Extraction for Rainmeter, removing duplicate or extraneous information from media titles
; Title Extraction snippet from reisir/mondtholomew
; Useful when the "title" of the media has duplicate or unnecessary information.
; For example, the song "Fake Friends" posted on the YouTube channel "MANON" has the title "MANON / Fake Friends (Music Video)"
; Title Extraction removes the duplicated artist name and "(Music Video)" from the information displayed
; [MeasureTitle] reports the following values when Title Extraction is disabled / enabled:
; TitleExtraction=0 -> MANON - MANON / Fake Friends (Music Video)
; TitleExtraction=1 -> MANON - Fake Friends
[Variables]
@reisir
reisir / ContextMenu.ps1
Created July 24, 2023 08:44
PowerShell script to generate context menus for Rainmeter skins
# Skin information
$SkinName = "Skycoder"
$ROOTCONFIG = $SkinName
$editVariablesFile = "#@#settings.inc"
# Script settings
# Output file
$out = "context.inc"
@reisir
reisir / scroll_text.ini
Created April 7, 2023 19:30
horizontally scrolling text rainmeter example
[Rainmeter]
DefaultUpdateDivider=-1
Update=16
[Variables]
; User settings
Spacing=20
MaxWidth=500
ScrollStepSize=1
ScrollStartDelay=1000
@reisir
reisir / AudioLevel.inc
Last active August 3, 2023 19:17
Optimal AudioLevel setup
; Optimal AudioLevel setup
; Thanks to @kodikuu for the math
[Variables]
; How many bands to generate
Bands=50
; How many frames of data to keep (an integer higher than 0)
; Higher accuracy also means higher latency
Accuracy=5
; How many bands to skip, it's recommended to skip the first band because of AudioLevel inaccuracies
@reisir
reisir / hunter_skate.ahk
Created January 18, 2022 18:49
Destiny 2 Hunter Eager Edge Shatterdive Skate AHK Macro
#SingleInstance force
; You need to have a sword with the Eager Edge perk: https://www.light.gg/db/items/2077819806/
; and use Revenant Hunter w/ Shatterdive aspect, and either triple or strafe jump.
; If you use non-standard keybinds, edit the script accordingly.
; List of special keys: https://www.autohotkey.com/docs/KeyList.htm
#IfWinActive ahk_exe destiny2.exe
CapsLock::