My first nushell script to apply and list oh-my-posh themes! Made in my first day with nushell.
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
| use windows::Win32::Devices::Display::DISPLAYCONFIG_PATH_INFO; | |
| use windows::Win32::{ | |
| Devices::Display::{ | |
| DisplayConfigGetDeviceInfo, GetDisplayConfigBufferSizes, QueryDisplayConfig, | |
| DISPLAYCONFIG_ADAPTER_NAME, DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME, | |
| DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME, DISPLAYCONFIG_MODE_INFO, | |
| DISPLAYCONFIG_TARGET_DEVICE_NAME, QDC_ONLY_ACTIVE_PATHS, | |
| QDC_VIRTUAL_MODE_AWARE, | |
| }, | |
| Foundation::{ERROR_INSUFFICIENT_BUFFER, ERROR_SUCCESS, WIN32_ERROR}, |