add nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX variable in /etc/default/grub
Example line:
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
then perform update-grub to apply the setting.
| "$schema" = 'https://starship.rs/config-schema.json' | |
| #disabled_format = """ | |
| #$c\ | |
| #$cmake\ | |
| #$cobol\ | |
| #$crystal\ | |
| #$daml\ | |
| #$dart\ | |
| #$deno\ |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device] | |
| "DevicePasswordLessBuildVersion"=dword:00000000 |
| const MAX_CONCURRENCY = 2; | |
| const useTaskQueue = () => { | |
| const triggers = useRef<Function[]>([]); | |
| const runningTasksRef = useRef(new Set<Function>()); | |
| const dispatchTriggers = useCallback(() => { | |
| const runningTaskSize = runningTasksRef.current.size; | |
| if (runningTaskSize >= MAX_CONCURRENCY) return; |
| # Initialize `mise` with zplug example script | |
| # https://mise.jdx.dev/ | |
| if ! type "mise" > /dev/null; then | |
| echo "mise is not installed. Installing mise..." | |
| curl https://mise.run | sh | |
| fi | |
| eval "$(~/.local/bin/mise activate zsh)" | |
| if ! mise which usage > /dev/null 2>&1; then | |
| echo "mise usage is not installed. Installing usage with mise..." |
| #!/usr/bin/env bash | |
| ARGS='a b c d e' # replace this with your test file paths | |
| GROUP_SIZE=2 | |
| NTH_OF_GROUPS=2 | |
| # outputs "c d" | |
| echo "${ARGS}" | xargs -n "${GROUP_SIZE}" echo | sed -n "${NTH_OF_GROUPS}p" |
| /* To get this shader working, Run picom like the following | |
| picom --glx-fshader-win "$(cat ~/.config/picom/gs.glsl)" | |
| NOTE: You need to set the backend to "glx" to get this working. | |
| */ | |
| uniform float opacity; | |
| uniform bool invert_color; | |
| uniform sampler2D tex; | |
| void main() { |