Add script scale the screen
This commit is contained in:
parent
2556299314
commit
f5ae17e61d
2
Makefile
2
Makefile
|
@ -1,2 +1,2 @@
|
|||
all:
|
||||
shellcheck l5-contacts-importer l5-screenshot
|
||||
shellcheck l5-contacts-importer l5-screenshot l5-scale-the-screen
|
||||
|
|
|
@ -12,8 +12,9 @@ Please Avoid scripts that require cloning and building packages from source.
|
|||
|
||||
|Script | Description | Dependencies | Notes |
|
||||
|:--:|:--:|:--:|:--:|
|
||||
|Contacts Importer| Allows to import contacts from a vcard file to GNOME Contacts. Can work with a UI and from command line interface|`yad`, `syncevolution`, `libnotify-bin`| This script will cease to exist when this https://gitlab.gnome.org/GNOME/gnome-contacts/-/merge_requests/105 is merged into GNOME Contacts and this feature is present in GNOME Contacts version for the Librem 5. |
|
||||
|Contacts Importer| Allows to import contacts from a vcard file to GNOME Contacts. Can work with a UI and from command line interface|`yad`, `syncevolution`, `libnotify-bin`, `Evolution Data Server`| This script will cease to exist when this https://gitlab.gnome.org/GNOME/gnome-contacts/-/merge_requests/105 is merged into GNOME Contacts and this feature is present in GNOME Contacts version for the Librem 5. |
|
||||
|Screenshot| Allows to take screenshots in the Librem 5 phone|`yad`, `grim`, `libnotify-bin`| This script will probably be removed from this package when the feature to make a screenshot is present in Phosh. |
|
||||
|Scale the screen| A simple application to scale de screen| `wlr-randr`| |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ Depends:
|
|||
libnotify-bin,
|
||||
syncevolution,
|
||||
yad,
|
||||
wlr-randr,
|
||||
${misc:Depends},
|
||||
Description: Librem 5 Goodies
|
||||
A collection of bash scripts and applications made to add functionalities to
|
||||
|
@ -25,3 +26,4 @@ Description: Librem 5 Goodies
|
|||
- L5 Contacts Importer: A simple application to import contacts from a vcard
|
||||
file to GNOME Contacts.
|
||||
- L5 Screenshot: A simple application to make screenshots on the Librem 5
|
||||
- L5 Scale the screen: A simple application to scale the Librem 5 screen
|
||||
|
|
|
@ -2,3 +2,5 @@ l5-contacts-importer /usr/bin
|
|||
l5-contacts-importer.desktop /usr/share/applications
|
||||
l5-screenshot /usr/bin
|
||||
l5-screenshot.desktop /usr/share/applications
|
||||
l5-scale-the-screen /usr/bin
|
||||
l5-scale-the-screen.desktop /usr/share/applications
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Test-Command: /usr/bin/l5-contacts-importer --help && /usr/bin/l5-screenshot --help
|
||||
Test-Command: /usr/bin/l5-contacts-importer --help && /usr/bin/l5-screenshot --help && /usr/bin/l5-scale-the-screen --help
|
||||
Restrictions: superficial
|
||||
Depends: librem5-goodies
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=Scale Screen
|
||||
Type=Application
|
||||
Icon=video-display-symbolic
|
||||
Exec=/usr/bin/l5-scale-the-screen %U
|
||||
Categories=Utility;
|
||||
|
Loading…
Reference in New Issue