Compare commits

..

No commits in common. "0388bc1768ffa0c111c083e51e1a35f1801c2909" and "13e320813e9d5e9610fde295e028257284bcb937" have entirely different histories.

14 changed files with 104 additions and 775 deletions

View file

@ -1,604 +0,0 @@
{
"__VERSION__": "205",
"Main": {
"Controls": [
{
"Calibration": [],
"Enable": false,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/0",
"IsHidden": true,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #1",
"NickName": "Fan #1",
"PairedFanSensor": null,
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": null,
"SelectedOffset": 0,
"SelectedStart": 0,
"SelectedStop": 0
},
{
"Calibration": [
[
10,
326
],
[
20,
509
],
[
30,
725
],
[
40,
899
],
[
50,
1044
],
[
60,
1183
],
[
70,
1304
],
[
80,
1411
],
[
90,
1481
],
[
100,
1581
]
],
"Enable": true,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/1",
"IsHidden": false,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #2",
"NickName": "CPU",
"PairedFanSensor": {
"Identifier": "/lpc/nct6797d/fan/1",
"IsHidden": false,
"Name": "Fan #2",
"NickName": "CPU"
},
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": {
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "CPU",
"OneWayHysteresis": false,
"Points": [
"35,40",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "/amdcpu/0/temperature/2",
"IsHidden": false,
"Name": "Core (Tctl/Tdie)",
"NickName": "Core (Tctl/Tdie)"
}
},
"SelectedOffset": 0,
"SelectedStart": 0,
"SelectedStop": 0
},
{
"Calibration": [
[
20,
0
],
[
30,
631
],
[
40,
851
],
[
50,
1023
],
[
60,
1187
],
[
70,
1336
],
[
80,
1477
],
[
90,
1604
],
[
100,
1690
]
],
"Enable": true,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/2",
"IsHidden": false,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #3",
"NickName": "BACK",
"PairedFanSensor": {
"Identifier": "/lpc/nct6797d/fan/2",
"IsHidden": false,
"Name": "Fan #3",
"NickName": "BACK"
},
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": {
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "CPU",
"OneWayHysteresis": false,
"Points": [
"35,40",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "/amdcpu/0/temperature/2",
"IsHidden": false,
"Name": "Core (Tctl/Tdie)",
"NickName": "Core (Tctl/Tdie)"
}
},
"SelectedOffset": 0,
"SelectedStart": 35,
"SelectedStop": 26
},
{
"Calibration": [
[
20,
0
],
[
30,
364
],
[
40,
520
],
[
50,
650
],
[
60,
765
],
[
70,
865
],
[
80,
964
],
[
90,
1051
],
[
100,
1106
]
],
"Enable": true,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/3",
"IsHidden": false,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #4",
"NickName": "FRONT BAS",
"PairedFanSensor": {
"Identifier": "/lpc/nct6797d/fan/3",
"IsHidden": false,
"Name": "Fan #4",
"NickName": "FRONT BAS"
},
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": {
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "GPU",
"OneWayHysteresis": false,
"Points": [
"40,50",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "NVApiWrapper/0-TU106-A/sensor/0",
"IsHidden": false,
"Name": "GPU",
"NickName": "GPU"
}
},
"SelectedOffset": 0,
"SelectedStart": 47,
"SelectedStop": 26
},
{
"Calibration": [
[
10,
0
],
[
20,
465
],
[
30,
641
],
[
40,
785
],
[
50,
918
],
[
60,
1041
],
[
70,
1140
],
[
80,
1254
],
[
90,
1353
],
[
100,
1409
]
],
"Enable": true,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/4",
"IsHidden": false,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #5",
"NickName": "FRONT TOP",
"PairedFanSensor": {
"Identifier": "/lpc/nct6797d/fan/4",
"IsHidden": false,
"Name": "Fan #5",
"NickName": "FRONT TOP"
},
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": {
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "CPU",
"OneWayHysteresis": false,
"Points": [
"35,40",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "/amdcpu/0/temperature/2",
"IsHidden": false,
"Name": "Core (Tctl/Tdie)",
"NickName": "Core (Tctl/Tdie)"
}
},
"SelectedOffset": 0,
"SelectedStart": 22,
"SelectedStop": 16
},
{
"Calibration": [],
"Enable": false,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/5",
"IsHidden": true,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #6",
"NickName": "Fan #6",
"PairedFanSensor": null,
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": null,
"SelectedOffset": 0,
"SelectedStart": 0,
"SelectedStop": 0
},
{
"Calibration": [],
"Enable": false,
"ForceApply": false,
"Identifier": "/lpc/nct6797d/control/6",
"IsHidden": true,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Fan #7",
"NickName": "Fan #7",
"PairedFanSensor": null,
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": null,
"SelectedOffset": 0,
"SelectedStart": 0,
"SelectedStop": 0
},
{
"Calibration": [
[
40,
1491
],
[
50,
1643
],
[
60,
1796
],
[
70,
1800
],
[
80,
1802
],
[
100,
1806
]
],
"Enable": true,
"ForceApply": false,
"Identifier": "NVApiWrapper/0-TU106-A/control/0",
"IsHidden": false,
"ManualControl": false,
"ManualControlValue": 50,
"MinimumPercent": 0,
"Name": "Control 1 - NVIDIA GeForce RTX 2060 SUPER",
"NickName": "Control 1 - NVIDIA GeForce RTX 2060 SUPER",
"PairedFanSensor": {
"Identifier": "NVApiWrapper/0-TU106-A/fan/0",
"IsHidden": false,
"Name": "Fan 1 - NVIDIA GeForce RTX 2060 SUPER",
"NickName": "Control 1 - NVIDIA GeForce RTX 2060 SUPER"
},
"SelectedCommandStepDown": 8.0,
"SelectedCommandStepUp": 8.0,
"SelectedFanCurve": {
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "GPU",
"OneWayHysteresis": false,
"Points": [
"40,50",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "NVApiWrapper/0-TU106-A/sensor/0",
"IsHidden": false,
"Name": "GPU",
"NickName": "GPU"
}
},
"SelectedOffset": 0,
"SelectedStart": 0,
"SelectedStop": 0
}
],
"CustomSensors": [],
"Fahrenheit": false,
"FanCurves": [
{
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "CPU",
"OneWayHysteresis": false,
"Points": [
"35,40",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "/amdcpu/0/temperature/2",
"IsHidden": false,
"Name": "Core (Tctl/Tdie)",
"NickName": "Core (Tctl/Tdie)"
}
},
{
"CommandMode": 0,
"IgnoreHysteresisAtLimits": true,
"IsHidden": false,
"MaximumCommand": 100,
"MaximumTemperature": 120.0,
"MinimumTemperature": 20.0,
"Name": "GPU",
"OneWayHysteresis": false,
"Points": [
"40,50",
"60,100"
],
"SelectedHysteresis": 2.0,
"SelectedResponseTime": 1,
"SelectedTempSource": {
"Identifier": "NVApiWrapper/0-TU106-A/sensor/0",
"IsHidden": false,
"Name": "GPU",
"NickName": "GPU"
}
}
],
"FanSensors": [
{
"Identifier": "/lpc/nct6797d/fan/0",
"IsHidden": false,
"Name": "Fan #1",
"NickName": "Fan #1"
},
{
"Identifier": "/lpc/nct6797d/fan/1",
"IsHidden": false,
"Name": "Fan #2",
"NickName": "CPU"
},
{
"Identifier": "/lpc/nct6797d/fan/2",
"IsHidden": false,
"Name": "Fan #3",
"NickName": "BACK"
},
{
"Identifier": "/lpc/nct6797d/fan/3",
"IsHidden": false,
"Name": "Fan #4",
"NickName": "FRONT BAS"
},
{
"Identifier": "/lpc/nct6797d/fan/4",
"IsHidden": false,
"Name": "Fan #5",
"NickName": "FRONT TOP"
},
{
"Identifier": "/lpc/nct6797d/fan/5",
"IsHidden": false,
"Name": "Fan #6",
"NickName": "Fan #6"
},
{
"Identifier": "/lpc/nct6797d/fan/6",
"IsHidden": false,
"Name": "Fan #7",
"NickName": "Fan #7"
},
{
"Identifier": "NVApiWrapper/0-TU106-A/fan/0",
"IsHidden": false,
"Name": "Fan 1 - NVIDIA GeForce RTX 2060 SUPER",
"NickName": "Control 1 - NVIDIA GeForce RTX 2060 SUPER"
}
],
"HideCalibration": false,
"HideFanSpeedCards": true,
"HorizontalUIOrientation": false,
"PrimaryColor": "#FF607D8B",
"SecondaryColor": "#FFC6FF00",
"SelectedTheme": "",
"ShowHiddenCards": false,
"SyncThemeWithWindows": true,
"SyncTrayIconColorWithWindows": true,
"TemperatureSensors": [],
"TrayIconColor": null,
"TrayIcons": []
},
"Sensors": {
"AdlxWrapperSettings": {
"Enabled": true
},
"DisabledPlugins": [],
"DisableStorageSensors": true,
"LibreHardwareMonitorSettings": {
"Controller": false,
"CPU": true,
"EmbeddedEC": true,
"GPU": true,
"InpOut": false,
"Memory": false,
"Motherboard": true,
"PSU": false,
"Storage": false,
"ZeroRPMOverride": false
},
"NvAPIWrapperSettings": {
"Enabled": true,
"ZeroRPMOverride": false
},
"SensorCount": 23
}
}

View file

@ -31,4 +31,3 @@ abbr lfs "git lfs install; git lfs fetch; git lfs checkout"
abbr ls "eza --icons=auto"
abbr topgrade "topgrade; pacman-clean"
abbr run "for i in (seq 100); ./program; end"
abbr commit-undo "git reset --hard HEAD~1 && git push --force"

View file

@ -7,5 +7,5 @@ abbr catall "catall . '*.ext1' '*.ext2' | clip.exe"
abbr ll "eza --git -gl"
abbr la "eza --git -gla"
abbr pdf "'/mnt/c/Program Files/Mozilla Firefox/firefox.exe' (for f in *.pdf; echo "file:///"(wslpath -m .)/\$f; end)"
abbr zfind "find ~ -type f -name '*:Zone.Identifier' -ok rm {} \;"
abbr zfind "find * -type f -name '*:Zone.Identifier' -ok rm {} \;"
abbr beep "powershell.exe -c '[console]::beep(200,300)'"

View file

@ -1,55 +0,0 @@
function latex-color --description "Get the LaTeX color from HEX code"
# Declare our arguments
argparse h/help -- $argv
# Get function name
set current_name $(status current-function)
# Check if not enough arguments provided, or help menu
if set -ql _flag_help || test -z $argv[1]
echo -e "Usage: $current_name \"hexcode\""
echo -e " $current_name [-h|--help] - Show this help message"
return 0
end
# Remove '#'
set hex $argv[1]
if string match -qr '^#' -- $hex
set hex (string sub -s 2 $hex)
end
# Check if the hex code is valid
if not string match -qir '^[0-9A-F]{3,8}$' $hex
and not contains $(string length $hex) $(string split " " "3 4 6 8")
echo "Error: Invalid HEX code" 1>&2
return 1
end
# Expand 3 to 4
if test (string length $hex) -eq 3
set hex $(string join "" $hex "F")
end
# Expand 4 to 8
if test (string length $hex) -eq 4
set hex "$(string replace -ar '(.)' '$1$1' $hex)FF"
end
# Expand 6 to 8
if test (string length $hex) -eq 6
set hex $(string join "" $hex "FF")
end
# Convert hex to RGB
set r (math "0x$(string sub -s 1 -l 2 $hex) / 255")
set g (math "0x$(string sub -s 3 -l 2 $hex) / 255")
set b (math "0x$(string sub -s 5 -l 2 $hex) / 255")
set a (math "0x$(string sub -s 7 -l 2 $hex) / 255")
set -x LC_NUMERIC C
if test $a -eq 1
printf "{%.2f, %.2f, %.2f}\n" $r $g $b
else
printf "{%.2f, %.2f, %.2f, %.2f}\n" $r $g $b $a
end
end

View file

@ -1 +1 @@
{"DesktopAudioDevice1":{"prev_ver":503447555,"name":"Audio du bureau","uuid":"bd19a8ef-aee4-4725-92b0-8a1d2ab917a1","id":"wasapi_output_capture","versioned_id":"wasapi_output_capture","settings":{"device_id":"default"},"mixers":251,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503447555,"name":"Mic/Aux","uuid":"b72a6bee-252d-4ab5-833e-46bbc4864f76","id":"wasapi_input_capture","versioned_id":"wasapi_input_capture","settings":{"device_id":"default"},"mixers":253,"sync":0,"flags":2,"volume":1.4125375747680664,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{},"filters":[{"prev_ver":503447555,"name":"Suppression du bruit","uuid":"68ca1b8c-53f8-45aa-9dbb-31e8c1a2063b","id":"noise_suppress_filter","versioned_id":"noise_suppress_filter_v2","settings":{"method":"speex"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}]},"current_scene":"Scène","current_program_scene":"Scène","scene_order":[{"name":"Scène"}],"name":"ReplayBuffer","sources":[{"prev_ver":503447555,"name":"Capture d'écran","uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","id":"monitor_capture","versioned_id":"monitor_capture","settings":{"monitor_id":"\\\\?\\DISPLAY#AOC2590#5&243f34f&2&UID155906#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}"},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503447555,"name":"Scène","uuid":"0b53bf55-6a71-4b86-960a-f2df1c2e0c3d","id":"scene","versioned_id":"scene","settings":{"id_counter":1,"custom_size":false,"items":[{"name":"Capture d'écran","source_uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds_crop":false,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Coupure","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fondu","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"virtual-camera":{"type2":3},"modules":{"scripts-tool":[{"path":"C:/Program Files/obs-studio/config/OBSReplayFolders.lua","settings":{}},{"path":"C:/Program Files/obs-studio/config/AutoOBSRBRestart.lua","settings":{}}],"output-timer":{"streamTimerHours":0,"streamTimerMinutes":0,"streamTimerSeconds":30,"recordTimerHours":0,"recordTimerMinutes":0,"recordTimerSeconds":30,"autoStartStreamTimer":false,"autoStartRecordTimer":false,"pauseRecordTimer":true},"auto-scene-switcher":{"interval":300,"non_matching_scene":"","switch_if_not_matching":false,"active":false,"switches":[]},"captions":{"source":"","enabled":false,"lang_id":1036,"provider":"mssapi"}},"resolution":{"x":1920,"y":1080}}
{"DesktopAudioDevice1":{"prev_ver":503447555,"name":"Audio du bureau","uuid":"bd19a8ef-aee4-4725-92b0-8a1d2ab917a1","id":"wasapi_output_capture","versioned_id":"wasapi_output_capture","settings":{"device_id":"default"},"mixers":251,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503447555,"name":"Mic/Aux","uuid":"b72a6bee-252d-4ab5-833e-46bbc4864f76","id":"wasapi_input_capture","versioned_id":"wasapi_input_capture","settings":{"device_id":"default"},"mixers":253,"sync":0,"flags":2,"volume":1.4125375747680664,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{},"filters":[{"prev_ver":503447555,"name":"Suppression du bruit","uuid":"68ca1b8c-53f8-45aa-9dbb-31e8c1a2063b","id":"noise_suppress_filter","versioned_id":"noise_suppress_filter_v2","settings":{"method":"speex"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}]},"current_scene":"Scène","current_program_scene":"Scène","scene_order":[{"name":"Scène"}],"name":"ReplayBuffer","sources":[{"prev_ver":503447555,"name":"Capture d'écran","uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","id":"monitor_capture","versioned_id":"monitor_capture","settings":{"monitor_id":"\\\\?\\DISPLAY#AOC2590#5&243f34f&3&UID155906#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}"},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503447555,"name":"Scène","uuid":"0b53bf55-6a71-4b86-960a-f2df1c2e0c3d","id":"scene","versioned_id":"scene","settings":{"id_counter":1,"custom_size":false,"items":[{"name":"Capture d'écran","source_uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds_crop":false,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Coupure","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fondu","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"virtual-camera":{"type2":3},"modules":{"scripts-tool":[{"path":"C:/Program Files/obs-studio/config/OBSReplayFolders.lua","settings":{}}],"output-timer":{"streamTimerHours":0,"streamTimerMinutes":0,"streamTimerSeconds":30,"recordTimerHours":0,"recordTimerMinutes":0,"recordTimerSeconds":30,"autoStartStreamTimer":false,"autoStartRecordTimer":false,"pauseRecordTimer":true},"auto-scene-switcher":{"interval":300,"non_matching_scene":"","switch_if_not_matching":false,"active":false,"switches":[]},"captions":{"source":"","enabled":false,"lang_id":1036,"provider":"mssapi"}},"resolution":{"x":1920,"y":1080}}

View file

@ -11,28 +11,23 @@ REPO_SRC = https://git.mylloon.fr/Anri/confOS/raw/branch/main
WGET = wget -q --show-progress
CURL = curl -s
# Checkers
ARCH = $(shell grep -c "archlinux" /proc/version 2> /dev/null)
WSL = $(shell grep -c "WSL2" /proc/version 2> /dev/null)
TERMUX = $(firstword $(shell type termux-info &> /dev/null && echo 1))
# Hide some verbose messages from Make
MAKEFLAGS += --no-print-directory
# Location
WIN_USER = anri
PFx86 = /mnt/c/Program\ Files\ \(x86\)
PF = /mnt/c/Program\ Files
WIN_HOME = /mnt/c/Users/$(WIN_USER)
APPDATA = $(WIN_HOME)/AppData/Roaming
LOCALAPPDATA = $(WIN_HOME)/AppData/Local
# Locations aliases
CS2_CFG = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/game/csgo/cfg
OBS_CFG = $(PF)/obs-studio/config/obs-studio
# Checkers
ARCH = $(shell grep -c "archlinux" /proc/version 2> /dev/null)
WSL = $(shell grep -c "WSL2" /proc/version 2> /dev/null)
TERMUX = $(firstword $(shell type termux-info &> /dev/null && echo 1))
ADMIN_WIN = $(shell touch $(PF) 2> /dev/null; echo $$?)
WIN_USER = anri
PFx86 = /mnt/c/Program\ Files\ \(x86\)
PF = /mnt/c/Program\ Files
WIN_HOME = /mnt/c/Users/$(WIN_USER)
APPDATA = $(WIN_HOME)/AppData/Roaming
LOCALAPPDATA = $(WIN_HOME)/AppData/Local
WIN_STEAM_USERDATA = $(filter-out "userdata",$(shell find $(PFx86)/Steam/userdata -maxdepth 1 -type d -printf "\"%f\" "))
CS2_CFG = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/game/csgo/cfg
all: full-sync
@ -59,12 +54,11 @@ sync-dotconfig:
@$(WGET) $(REPO_SRC)/.config/fish/config.fish -O $(HOME)/.config/fish/config.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/fish_prompt.fish -O $(HOME)/.config/fish/functions/fish_prompt.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/catall.fish -O $(HOME)/.config/fish/functions/catall.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/latex-color.fish -O $(HOME)/.config/fish/functions/latex-color.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/makeaway.fish -O $(HOME)/.config/fish/functions/makeaway.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/ssh-export.fish -O $(HOME)/.config/fish/functions/ssh-export.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/ssh-import.fish -O $(HOME)/.config/fish/functions/ssh-import.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/ugc.fish -O $(HOME)/.config/fish/functions/ugc.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/catall.fish -O $(HOME)/.config/fish/functions/catall.fish
@$(WGET) $(REPO_SRC)/.config/fish/functions/update-theme.fish -O $(HOME)/.config/fish/functions/update-theme.fish
@$(WGET) $(REPO_SRC)/.config/fish/conf.d/abbr.fish -O $(HOME)/.config/fish/conf.d/abbr.fish
@ -212,7 +206,6 @@ sync-windows:
echo "$(WIN) CS2 configs synced!"; \
echo; \
fi
# Firefox
-@$(RM) $(APPDATA)/Mozilla/Firefox/Profiles/*.default-release/user.js
@$(WGET) $(REPO_SRC)/.mozilla/firefox/user.js -P $(APPDATA)/Mozilla/Firefox/Profiles/*.default-release
@ -245,29 +238,15 @@ sync-windows:
# @echo
# OBS config
ifeq ($(ADMIN_WIN),1)
ifeq ($(shell touch $(PF) 2> /dev/null; echo $$?),1)
@echo "$(WIN) Can't update OBS configuration, use elevated terminal to do so"
@echo
else
@$(MKDIR) $(OBS_CFG)/basic/profiles/ReplayBuffer
@$(MKDIR) $(OBS_CFG)/basic/scenes
@$(WGET) $(REPO_SRC)/.config/obs/global.ini -O $(OBS_CFG)/global.ini
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/basic.ini -O $(OBS_CFG)/basic/profiles/ReplayBuffer/basic.ini
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -O $(OBS_CFG)/basic/profiles/ReplayBuffer/recordEncoder.json
@$(WGET) $(REPO_SRC)/.config/obs/basic/scenes/ReplayBuffer.json -O $(OBS_CFG)/basic/scenes/ReplayBuffer.json
@echo "$(WIN) OBS configuration synced! Check your OBS to see if the screen is correctly picked up (could have turned black due to the update)"
@echo
endif
# FanControl
ifeq ($(ADMIN_WIN),1)
@echo "$(WIN) Can't update FanControl configuration, use elevated terminal to do so"
@echo
else
@$(MKDIR) $(PFx86)/FanControl/Configurations/
@$(WGET) $(REPO_SRC)/.config/FanControl/userConfig.json -O $(PFx86)/FanControl/Configurations/userConfig.json
@echo "$(WIN) FanControl configuration synced!"
@echo
@$(MKDIR) $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer
@$(MKDIR) $(PF)/obs-studio/config/obs-studio/basic/scenes
@$(WGET) $(REPO_SRC)/.config/obs/global.ini -O $(PF)/obs-studio/config/obs-studio/global.ini
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/basic.ini -O $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer/basic.ini
@$(WGET) $(REPO_SRC)/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -O $(PF)/obs-studio/config/obs-studio/basic/profiles/ReplayBuffer/recordEncoder.json
@$(WGET) $(REPO_SRC)/.config/obs/basic/scenes/ReplayBuffer.json -O $(PF)/obs-studio/config/obs-studio/basic/scenes/ReplayBuffer.json
endif
# Termux distro specific

View file

@ -4,11 +4,7 @@
## Windows 11
> Dans l'invite de commande `cmd`
```batch
PowerShell -Command "Invoke-Expression """"& { $(Invoke-WebRequest -UseBasicParsing 'https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/runner.ps1') } -Script windows11"""""
```
- Télécharger et lancer [windows11.bat](./windows11.bat)
### Mise à jour de certains programmes

22
arch.sh
View file

@ -79,7 +79,7 @@ function main {
# Themes in Gnome Terminal, the default one will be the dark one
local GT_default
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
wget -q ${repo}/.config/update_theme.sh -O "$HOME"/.config/update_theme.sh
wget -q ${repo}/.config/update_theme.sh -P "$HOME"/.config/
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ use-custom-command true
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ custom-command "fish"
# Default colors
@ -114,7 +114,8 @@ function main {
# === Flameshot ==
# Custom configuration
wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -O "$HOME"/.config/flameshot/flameshot.ini
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null ||:
wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/
# Change keybindings
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
local custom_keybindings_list flameshot_shortcuts
@ -139,7 +140,8 @@ function main {
# === Emoji picker ==
# Custom configuration
wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -O "$HOME"/.config/gazatu.xyz/emoji-picker.ini
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null ||:
wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/
# Add keybinding
custom_keybindings_list=$(gsettings get ${gs_mediakey} custom-keybindings)
if ! echo "$custom_keybindings_list" | grep -q "x11-emoji-picker"
@ -238,7 +240,7 @@ function main {
gsettings set org.gnome.TextEditor show-line-numbers true
# Configuration Blackbox
wget -q --show-progress ${repo}/.local/share/blackbox/user-keymap.json -O "$HOME"/.local/share/blackbox/user-keymap.json # keymap # TODO: Quid de mkdir avant?
wget -q --show-progress ${repo}/.local/share/blackbox/user-keymap.json -P "$HOME"/.local/share/blackbox/ # keymap # TODO: Quid de mkdir avant? est-ce que un fichier existe pas déjà ??
gsettings set com.raggesilver.BlackBox use-custom-command true # custom shell
gsettings set com.raggesilver.BlackBox custom-shell-command "fish" # use fish as default
gsettings set com.raggesilver.BlackBox easy-copy-paste true # allow ^C and ^V
@ -297,9 +299,9 @@ function main {
# Hardware acceleration
echo "export MOZ_DRM_DEVICE=/dev/dri/renderD128" >> "$HOME"/.profile
# Download extension configuration (TODO: Check Download Folder's Name)
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/Dark-Reader-Settings.json -O "$HOME"/Téléchargements/Dark-Reader-Settings.json
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/SponsorBlockConfig.json -O "$HOME"/Téléchargements/SponsorBlockConfig.json
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -O "$HOME"/Téléchargements/auto-tab-discard-preferences.json
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/Dark-Reader-Settings.json -P "$HOME"/Téléchargements
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/SponsorBlockConfig.json -P "$HOME"/Téléchargements
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -P "$HOME"/Téléchargements
# === Docker ==
@ -329,7 +331,7 @@ function main {
# === VSCodium ==
wget -q ${repo}/.config/VSCodium/product.json -O "$HOME"/.config/VSCodium/product.json
wget -q ${repo}/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/
# === Discord ==
@ -364,7 +366,7 @@ function main {
# === s-tui ==
# Configuration
wget -q --show-progress ${repo}/.config/s-tui/s-tui.conf -O "$HOME"/.config/s-tui/s-tui.conf
wget -q --show-progress ${repo}/.config/s-tui/s-tui.conf -P "$HOME"/.config/s-tui/
# === ClamAV ==
@ -378,7 +380,7 @@ function main {
# === GPU Screen recorder ==
# Configuration
wget -q --show-progress ${repo}/.config/gpu-screen-recorder.env -O "$HOME"/.config/gpu-screen-recorder.env
wget -q --show-progress ${repo}/.config/gpu-screen-recorder.env -P "$HOME"/.config/
# Enable
systemctl enable --now --user gpu-screen-recorder
# Keybind

View file

@ -146,8 +146,7 @@
"spotify-launcher",
"bottom",
"mvn",
"qpdf",
"inkscape"
"qpdf"
],
"plugin": null,
"profile": {

16
meta.sh
View file

@ -68,13 +68,14 @@ function main {
fish -c "fisher install jethrokuan/fzf"
fish -c "fisher install jorgebucaran/autopair.fish"
# SSH
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -O "$HOME"/.config/fish/functions/fish_ssh_agent.fish
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
mkdir -p "$HOME"/.ssh
# Fish theme
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
fish -c "set fish_color_comment 5c6773" # custom comment color
# Fish prompt
wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -O "$HOME"/.config/fish/functions/fish_prompt.fish
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||:
wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
# Add configuration
@ -84,12 +85,11 @@ function main {
# Add aliases
wget -q "${repo}"/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
# Add functions
functions=("catall" "latex-color" "makeaway" "ssh-export" "ssh-import" "ugc"
"update-theme")
for function in "${functions[@]}"
do
wget -q "${repo}"/.config/fish/functions/"${function}".fish -O "$HOME"/.config/fish/functions/"${function}".fish
done
wget -q "${repo}"/.config/fish/functions/makeaway.fish -P "$HOME"/.config/fish/functions/
wget -q "${repo}"/.config/fish/functions/ssh-export.fish -P "$HOME"/.config/fish/functions/
wget -q "${repo}"/.config/fish/functions/ssh-import.fish -P "$HOME"/.config/fish/functions/
wget -q "${repo}"/.config/fish/functions/ugc.fish -P "$HOME"/.config/fish/functions/
wget -q "${repo}"/.config/fish/functions/catall.fish -P "$HOME"/.config/fish/functions/
# === Default editor ==

View file

@ -39,7 +39,8 @@ function main {
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
fish -c "set fish_color_comment 5c6773" # custom comment color
# Fish prompt
wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -O "$HOME"/.config/fish/functions/fish_prompt.fish
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||:
wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
# Add configuration

View file

@ -2,23 +2,14 @@ param (
[string]$script
)
$fileName = "$script.bat"
$url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName"
$filePath = Join-Path -Path $env:TEMP -ChildPath $fileName
$baseUrl = "https://git.mylloon.fr/Anri/confOS/raw/branch/main"
if ($script -eq "windows11") {
$url = "$baseUrl/$fileName"
}
else {
$url = "$baseUrl/windows/installers/$fileName"
}
Write-Host "Downloading $fileName..."
Invoke-WebRequest -Uri $url -OutFile $filePath
Start-Process $filePath -NoNewWindow -Wait;
Remove-Item -Path $filePath
exit

View file

@ -54,6 +54,9 @@ IF NOT "%1"=="noskipadmin" (
:: === Registery modifications ==
ECHO Registery entries...
:: Right click of Windows 10
@REM REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
:: Disabling widgets
REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f
@ -68,7 +71,7 @@ sc stop "SysMain" & sc config "SysMain" start=disabled
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 1 /f
:: Don't create Zone.Identifier
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 1 /f
:: Disables memory integrity
:: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613
@ -97,17 +100,9 @@ REG ADD "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWind
:: Disable checkboxes in explorer
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v AutoCheckSelect /t REG_DWORD /d 0 /f
:: Set "This PC" default window when opening explorer
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f
:: Show file extension
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f
:: Show hidden files
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t REG_DWORD /d 1 /f
:: Disable web search in start menu
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
:: TODO: Need testing
@REM REG ADD "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
:: Disable ad in file explorer
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSyncProviderNotifications /t REG_DWORD /d 0 /f
@ -184,9 +179,18 @@ for %%i in (!java_jdk!) do (
!pmi! %%i
)
:: Drivers
@REM SET ^"drivers=^
@REM Nvidia.CUDA"
@REM ECHO Drivers...
@REM for %%i in (!drivers!) do (
@REM !pmi! %%i
@REM )
:: Applications
SET ^"apps=^
Mozilla.Firefox M2Team.NanaZip GIMP.GIMP Rem0o.FanControl ^
Mozilla.Firefox M2Team.NanaZip GIMP.GIMP ^
voidtools.Everything.Lite VideoLAN.VLC Obsidian.Obsidian Parsec.Parsec ^
Microsoft.VisualStudioCode Bitwarden.Bitwarden sylikc.JPEGView ^
TheDocumentFoundation.LibreOffice Armin2208.WindowsAutoNightMode ^
@ -201,7 +205,7 @@ for %%i in (!apps!) do (
SET ^"games=^
RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU Valve.Steam ^
HeroicGamesLauncher.HeroicGamesLauncher PrismLauncher.PrismLauncher ^
ppy.osu pizzaboxer.Bloxstrap"
Ryujinx.Ryujinx ppy.osu Roblox.Roblox"
ECHO Games...
for %%i in (!games!) do (
@ -209,16 +213,26 @@ for %%i in (!games!) do (
)
:: === Ryujinx shortcut ==
:: Installed from winget as a portable app
PowerShell -Command "" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$exe = (Get-ChildItem $env:LOCALAPPDATA\Microsoft\WinGet\Packages\Ryujinx.Ryujinx_Microsoft.Winget.*\publish\Ryujinx.exe).FullName;" ^
"$Shortcut = $WshShell.CreateShortcut('!startmenu!\Ryujinx.lnk');" ^
"$Shortcut.TargetPath = $exe;" ^
"$Shortcut.Save()"
:: === Install WSL ==
ECHO WSL...
wsl --install --no-distribution
:: === Activate Windows ==
:: https://massgrave.dev/command_line_switches#uses-in-powershell-one-liner
PowerShell -Command "" ^
"& ([ScriptBlock]::Create((irm https://get.activated.win )))" ^
"/HWID"
@REM TODO: Fix command, see https://massgrave.dev/command_line_switches#uses-in-powershell-one-liner
@REM PowerShell -Command "" ^
@REM "& ([ScriptBlock]::Create((irm https://get.activated.win )))" ^
@REM "/HWID"
:: === Modules for Windows Update ==
@ -235,12 +249,10 @@ CMD /c "%TEMP%\geek.bat" yes
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/losslesscut.bat -OutFile '%TEMP%\losslesscut.bat'"
CMD /c "%TEMP%\losslesscut.bat" yes
:: === DSR ==
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/dsr.bat -OutFile '%TEMP%\dsr.bat'"
CMD /c "%TEMP%\dsr.bat" yes
:: === Vencord ==
:: Use already downloaded script
CMD /c "!local!\vencord_installer.bat" yes
@ -299,6 +311,27 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/deceive.ba
CMD /c "%TEMP%\deceive.bat" yes
:: === Xournal++ ==
:: TODO: Winget report an incorrect hash on installation,
:: that's why we're installing it manually
@REM ECHO Xournal++...
@REM PowerShell -Command "" ^
@REM "$repo = 'xournalpp/xournalpp';" ^
@REM "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
@REM "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^
@REM "$file = \"xournalpp-$($tag.substring(1))-windows.zip\";" ^
@REM "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
@REM "$archive = 'xournalpp.zip';" ^
@REM "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
@REM "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
@REM "cd $env:TEMP;" ^
@REM "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
@REM "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^
@REM "Start-Process $exe /S;" ^
@REM "Remove-Item -Force $outfile;" ^
@REM "Remove-Item -Force $exe"
:: === Minecraft ==
:: Copy shortcut of Prism Launcher to a Minecraft shortcut
COPY /Y "!startmenu!\Prism Launcher.lnk" "!startmenu!\Minecraft.lnk"
@ -343,20 +376,13 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/Re
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\recordEncoder.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
:: Script OBS Replay Folder
:: OBS Scripts
PowerShell -Command "" ^
"$archive = '%TEMP%\obs-replay-folders.zip';" ^
"Invoke-WebRequest -Uri https://github.com/Mylloon/obs-replay-folders/releases/latest/download/obs-replay-folders.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
"Remove-Item -Force $archive"
:: Script OBS Automatic ReplayBuffer Restart
PowerShell -Command "" ^
"$archive = '%TEMP%\auto-obs-rb-restart.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/auto-obs-rb-restart/releases/download/latest/auto-obs-rb-restart.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
"Remove-Item -Force $archive"
:: Setup the autostart of shadowplay
SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^
/TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^
@ -382,11 +408,6 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/fivem.bat
CMD /c "%TEMP%\fivem.bat" yes
:: === FanControl ==
MKDIR "%ProgramFiles(x86)%\FanControl\Configurations" 2>NUL
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/FanControl/userConfig.json -OutFile '%ProgramFiles(x86)%\FanControl\Configurations\userConfig.json'"
:: === DaVinci Resolve ==
ECHO Useful link to download the latest version of DaVinci Resolve:
ECHO https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion

4
wsl.sh
View file

@ -39,7 +39,7 @@ function main {
noto-fonts jdk-openjdk texlive-fontsrecommended texlive-publishers sfml \
texlive-fontsextra perl-yaml-tiny perl-file-homedir perl-file-which \
man-pages bottom maven fakeroot texlive-mathscience texlive-plaingeneric \
qpdf inkscape
qpdf
# === Remove SU password ==
@ -83,7 +83,7 @@ function main {
curl -s ${repo}/.config/fish/conf.d/abbr_wsl.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
curl -s ${repo}/.config/fish/conf.d/alias_wsl.fish >> "$HOME"/.config/fish/conf.d/alias.fish
# Specific WSL functions
#wget -q "${repo}"/.config/fish/functions/trash.fish -O "$HOME"/.config/fish/functions/trash.fish
#wget -q "${repo}"/.config/fish/functions/trash.fish -P "$HOME"/.config/fish/functions/
# === OCaml ==