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
/* eslint-disable jsx-a11y/alt-text */ | |
/* eslint-disable @next/next/no-img-element */ | |
import type { DetailedHTMLProps, ImgHTMLAttributes } from 'react' | |
interface OptimizationOptions { | |
width: number | |
height?: number | |
dpr?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
format?: 'png' | 'jpg' | 'webp' | |
} |
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
#!/bin/bash | |
# Grep last keyboard (should be internal if no external is connected, and external if external is connected) | |
target=`cat /proc/bus/input/devices | grep "kbd leds event" | tail -1 | grep -Eo "event[0-9]+"` | |
echo "Activating Waybind for keyboard ($target)..."; | |
sed -i -r "s|/dev/input/event[0-9]+|/dev/input/${target}|g" /etc/waybind/config.yml | |
echo "Reloading waybind..." | |
if systemctl restart waybind.service; then | |
echo "Done"; |