diff --git a/.config/WindowsAutoNightMode/config.yaml b/.config/WindowsAutoNightMode/config.yaml index b05b2fe..9581d4e 100644 --- a/.config/WindowsAutoNightMode/config.yaml +++ b/.config/WindowsAutoNightMode/config.yaml @@ -67,8 +67,8 @@ Tunable: UICulture: fr GPUMonitoring: Enabled: true - Threshold: 30 - Samples: 1 + Threshold: 40 + Samples: 2 ProcessBlockList: ProcessNames: [] Enabled: false diff --git a/.config/fish/config_wsl.fish b/.config/fish/config_wsl.fish index 5beca0b..e1af4e7 100644 --- a/.config/fish/config_wsl.fish +++ b/.config/fish/config_wsl.fish @@ -1,3 +1,10 @@ # NAS -sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 +if timeout 0.2 ping -c1 192.168.1.200 > /dev/null + sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2> /dev/null & +end + +# Sometimes the screen is getting lost +if not test -e /tmp/.X11-unix/X0 + ln -sf /mnt/wslg/.X11-unix/X0 /tmp/.X11-unix/ +end diff --git a/arch.sh b/arch.sh index 632411b..62aa56b 100644 --- a/arch.sh +++ b/arch.sh @@ -387,9 +387,6 @@ main() { # Add perl packages to path fish -c "fish_add_path /usr/bin/vendor_perl ||:" - # === CPAN modules == - sudo cpanm YAML::Tiny File::HomeDir File::Which # latexindent dependencies - # === Discord == # Skip update path_config_discord="$HOME"/.config/discord/settings.json diff --git a/arch_wsl.sh b/arch_wsl.sh index 615b305..26654e6 100644 --- a/arch_wsl.sh +++ b/arch_wsl.sh @@ -39,7 +39,7 @@ main() { otf-fira-mono mingw-w64-gcc otf-font-awesome soundfont-fluid fluidsynth \ pulseaudio-alsa texlive-latexextra texlive-langfrench texlive-luatex \ noto-fonts jdk-openjdk texlive-fontsrecommended texlive-publishers sfml \ - texlive-fontsextra + texlive-fontsextra perl-yaml-tiny perl-file-homedir perl-file-which # === Rustup == @@ -54,7 +54,7 @@ main() { sudo sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 3/g" /etc/pacman.conf # === Remove SU password == - echo -e "# Disable password for specific user\nanri ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers > /dev/null + echo -e "\n# Disable password for specific user\n$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers > /dev/null # === Paru == git clone https://aur.archlinux.org/paru.git @@ -201,9 +201,6 @@ main() { # Add perl packages to path fish -c "fish_add_path /usr/bin/vendor_perl ||:" - # === CPAN modules == - sudo cpanm YAML::Tiny File::HomeDir File::Which # latexindent dependencies - # === Emacs == # mkdir -p "$HOME"/.emacs.d # wget -q ${repo}/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el diff --git a/archinstall/user_configuration.json b/archinstall/user_configuration.json index d1f6f07..b3c5c5b 100644 --- a/archinstall/user_configuration.json +++ b/archinstall/user_configuration.json @@ -135,7 +135,10 @@ "texlive-fontsrecommended", "texlive-fontsextra", "texlive-publishers", - "sfml" + "sfml", + "perl-yaml-tiny", + "perl-file-homedir", + "perl-file-which" ], "plugin": null, "profile": { diff --git a/dotfiles/.clang-format b/dotfiles/.clang-format index 6a9d1ce..2ad6be9 100644 --- a/dotfiles/.clang-format +++ b/dotfiles/.clang-format @@ -1,3 +1,4 @@ IndentWidth: 2 AlwaysBreakTemplateDeclarations: true InsertBraces: true +AllowShortFunctionsOnASingleLine: Empty diff --git a/windows11.bat b/windows11.bat index 5a5df1e..b07388c 100644 --- a/windows11.bat +++ b/windows11.bat @@ -96,7 +96,8 @@ SET ^"net_libs=^ Microsoft.DotNet.DesktopRuntime.3_1 Microsoft.DotNet.SDK.3_1 ^ Microsoft.DotNet.DesktopRuntime.5 Microsoft.DotNet.SDK.5 ^ Microsoft.DotNet.DesktopRuntime.6 Microsoft.DotNet.SDK.6 ^ - Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7" + Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7 ^ + Microsoft.DotNet.DesktopRuntime.8 Microsoft.DotNet.SDK.8" ECHO .NET libraries... for %%i in (!net_libs!) do ( @@ -271,18 +272,18 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v Ins :: Install Deceive ECHO Deceive... -MKDIR "%ProgramFiles%\Deceive" 2>NUL +MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL PowerShell -Command "" ^ "$exe = 'Deceive.exe';" ^ "$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^ - "$outfile = Join-Path -Path '%ProgramFiles%\Deceive' -ChildPath $exe;" ^ + "$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^ - "$Shortcut.TargetPath = \"%ProgramFiles%\Deceive\$exe\";" ^ + "$Shortcut.TargetPath = $outfile;" ^ "$Shortcut.Save()" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive" -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Deceive" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive" :: :: Install Topgrade :: ECHO Topgrade...