Merge branch 'lets-scale-that-screen' into 'master'

Add script scale the screen

See merge request librem5-apps/librem5-goodies!13
This commit is contained in:
Guido Gunther 2020-11-18 08:52:55 +00:00
commit 7ee2a7e4ad
7 changed files with 38 additions and 3 deletions

View File

@ -1,2 +1,2 @@
all:
shellcheck l5-contacts-importer l5-screenshot
shellcheck l5-contacts-importer l5-screenshot l5-scale-the-screen

View File

@ -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`| |

2
debian/control vendored
View File

@ -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

View File

@ -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

View File

@ -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

23
l5-scale-the-screen Executable file
View File

@ -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

View File

@ -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;