24 lines
802 B
Bash
Executable File
24 lines
802 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function usage()
|
|
{
|
|
echo "Usage: $0, or just press the Scale the Screen Icon in the app tray"
|
|
exit 0
|
|
}
|
|
|
|
case "$1" in
|
|
--help|-h|-?)
|
|
usage
|
|
;;
|
|
esac
|
|
|
|
|
|
yad --title scale_screen --form \
|
|
--field='Default dpi (2x scale)':fbtn "wlr-randr --output DSI-1 --scale 2" \
|
|
--field='Low dpi (1.75x scale)!window-restore-symbolic':fbtn "wlr-randr --output DSI-1 --scale 1.75" \
|
|
--field='Medium dpi (1.5x scale)!window-minimize-symbolic':fbtn "wlr-randr --output DSI-1 --scale 1.5" \
|
|
--field='High dpi (1.25x scale)!window-maximize-symbolic':fbtn "wlr-randr --output DSI-1 --scale 1.25" \
|
|
--field='Max dpi (1x scale)!view-fullscreen-symbolic':fbtn "wlr-randr --output DSI-1 --scale 1" \
|
|
--field='Restart Phosh':fbtn "sudo systemctl restart phosh" \
|
|
--button='Close!gtk-cancel':1
|