Ich habe nie KDE benutzt mit arch aber für anderer wms xrandr war einfach zu erstellen, z.B.
#!/bin/bash
# Function to list available resolutions
list_resolutions() {
echo "Available resolutions:"
xrandr | grep -A 20 "connected" | grep -v "connected" | grep "+" | awk '{print NR":", $1}'
}
# Function to set resolution
set_resolution() {
local resolution=$1
echo "Setting resolution to $resolution"
xrandr --output $(xrandr | grep " connected" | cut -d " " -f1) --mode $resolution
}
# Main menu
show_menu() {
echo "Screen Resolution Switcher"
echo "-------------------------"
echo "1. List available resolutions"
echo "2. Set custom resolution"
echo "3. Set to 1920x1080"
echo "4. Set to 1280x720"
echo "5. Exit"
echo -n "Enter your choice: "
read choice
case $choice in
1) list_resolutions ;;
2)
echo -n "Enter resolution (e.g., 1920x1080): "
read res
set_resolution $res
;;
3) set_resolution 1920x1080 ;;
4) set_resolution 1280x720 ;;
5) exit 0 ;;
*) echo "Invalid choice" ;;
esac
}
# Main loop
while true; do
show_menu
echo ""
done