Compare commits
79 Commits
v0.0.2
...
pureos/byz
Author | SHA1 | Date |
---|---|---|
Joao Azevedo | 95e14f0b61 | |
Joao Azevedo | 9e00cc502d | |
Joao Azevedo | 2f5784c6b7 | |
Joao Azevedo | e3c012fc0e | |
Joao Azevedo | 460c8bccb9 | |
Guido Günther | f487497265 | |
Guido Günther | 2a444158c6 | |
Guido Günther | eb71756777 | |
Joao Azevedo | 318802de54 | |
Joao Azevedo | 93cab485ac | |
Joao Azevedo | 236845a654 | |
Joao Azevedo | 878f6bc3e6 | |
Joao Azevedo | 5899e8f147 | |
Joao Azevedo | 476a7b8eb8 | |
Joao Azevedo | 7700a5d2ab | |
Joao Azevedo | 030106bf7b | |
Joao Azevedo | a4a703942b | |
Joao Azevedo | d260b8d57d | |
Joao Azevedo | 8063732577 | |
Joao Azevedo | b1e1a4fcf5 | |
Joao Azevedo | d583724822 | |
Joao Azevedo | dcd01fd716 | |
Joao Azevedo | 368b936446 | |
Joao Azevedo | dce5ee40a2 | |
Joao Azevedo | 31bc728d03 | |
Joao Azevedo | ac8bac85cc | |
Joao Azevedo | 8bf4e9a307 | |
Joao Azevedo | 0537a86740 | |
David Hamner | 300fced68a | |
Guido Gunther | 6fe0c7143d | |
Guido Günther | 09045eab0a | |
Guido Gunther | d25ac70f77 | |
Joao Azevedo | cae9349e02 | |
Guido Gunther | f595391bf4 | |
Guido Günther | 6b25c3aff8 | |
Joao Azevedo | 5753e17174 | |
Neil Simpson | f5d4d141a9 | |
Joao Azevedo | df95a1505a | |
Joao Azevedo | 6a645e354c | |
Guido Günther | 4846c7d158 | |
Guido Günther | 9b5f4657a9 | |
Guido Günther | 7bad418b47 | |
Joao Azevedo | 3ed5b2dec1 | |
Joao Azevedo | 5c5b6a6f32 | |
Joao Azevedo | 7310b35d2c | |
Joao Azevedo | fc0172f2e0 | |
Joao Azevedo | e63afb5d08 | |
Joao Azevedo | dff70f945e | |
Guido Gunther | 7ee2a7e4ad | |
Joao Azevedo | f5ae17e61d | |
Guido Gunther | 2556299314 | |
Joao Azevedo | 2b3f5fe5f2 | |
Joao Azevedo | 61845679b5 | |
Joao Azevedo | 01431fca4c | |
Joao Azevedo | e015eeab9c | |
Joao Azevedo | 18fb3fcd04 | |
Joao Azevedo | f05992396a | |
Joao Azevedo | b028ca504f | |
Joao Azevedo | ac78586de5 | |
Joao Azevedo | ca347d0c63 | |
Joao Azevedo | 7d77f22da2 | |
Joao Azevedo | 1d8bbf1abe | |
Joao Azevedo | d39704ed6d | |
Joao Azevedo | f6b2356d28 | |
Guido Günther | 83222074fc | |
Joao Azevedo | 1a56055268 | |
Joao Azevedo | 5f1c204830 | |
Joao Azevedo | b600f868b7 | |
Joao Azevedo | 9dc35d449c | |
Joao Azevedo | a454a9865d | |
Joao Azevedo | fc24235e80 | |
Joao Azevedo | d9ada05ce7 | |
Joao Azevedo | 8725bcd466 | |
Joao Azevedo | fa60c85899 | |
Joao Azevedo | aaae5ae59a | |
Joao Azevedo | 82fb957eb8 | |
Joao Azevedo | 5ea3116661 | |
Joao Azevedo | 298d6218d8 | |
Joao Azevedo | 61bc70d7ff |
15
Makefile
15
Makefile
|
@ -1,2 +1,13 @@
|
||||||
all:
|
APPDATA = \
|
||||||
shellcheck contacts-importer
|
sm.puri.librem5.goodies.appdata.xml \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
all: shell-check appstream-check
|
||||||
|
|
||||||
|
shell-check:
|
||||||
|
shellcheck l5-contacts-importer l5-screenshot l5-screen-recorder
|
||||||
|
|
||||||
|
appstream-check:
|
||||||
|
appstream-util validate-relax $(APPDATA)
|
||||||
|
|
||||||
|
.PHONY: all shell-check appstream-check
|
||||||
|
|
22
README.md
22
README.md
|
@ -1,10 +1,12 @@
|
||||||
# Librem 5 Goodies
|
# Librem 5 Goodies
|
||||||
|
|
||||||
This project serves to create a deb package with several bash scripts created for the Librem 5 phone.
|
This project serves to create a deb package with several temporary helper bash scripts created for the Librem 5 phone.
|
||||||
|
|
||||||
Bring your script here and it might be packaged :tada:
|
Bring your script here and it might be packaged :tada:
|
||||||
|
|
||||||
Please Avoid scripts that require cloning and building packages from source.
|
Please avoid scripts that require cloning and building packages from source.
|
||||||
|
|
||||||
|
When one of these temporary helper scripts is no longer considered necessary, it will be removed (say if features provided by the script in question are added to `phosh`).
|
||||||
|
|
||||||
#### Scripts added to this package:
|
#### Scripts added to this package:
|
||||||
|
|
||||||
|
@ -12,10 +14,18 @@ Please Avoid scripts that require cloning and building packages from source.
|
||||||
|
|
||||||
|Script | Description | Dependencies | Notes |
|
|Script | Description | Dependencies | Notes |
|
||||||
|:--:|:--:|:--:|:--:|
|
|:--:|:--:|:--:|:--:|
|
||||||
|Contacts Importer| Allows to import contacts from a vcard file to gnome contacts. Can work with a UI, 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. |
|
|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 be removed from this paclage when the version of GNOME-Contacts available in PureOS supports importing contacts from a vcard file. |
|
||||||
|
|Screenshot| Allows to take screenshots in the Librem 5 phone|`yad`, `grim`, `libnotify-bin`, `xdg-user-dirs`| This script will be removed from this package when there is a native app that can take screenshots in `Phosh`. |
|
||||||
|
|Screen recorder | A simple application to record the screen| `wf-recorder`, `yad`, `libnotify-bin` | This script will be removed from this package when `phosh` has better support for recording.|
|
||||||
|
|
||||||
|
**Previously removed scripts:**
|
||||||
|
|
||||||
|
- Scale the screen: A simple application to scale the screen. This is now supported in `phosh`.
|
||||||
|
|
||||||
#### Adding a script to this package:
|
#### Adding a script to this package:
|
||||||
|
|
||||||
- Make a new branch based on the master branch and work from it.
|
- Make a new branch based on the `pureos/latest` branch and work from it.
|
||||||
- Make a merge request
|
- Make a merge request.
|
||||||
- Avoid scripts that download and build source code
|
- Avoid scripts that download and build source code. If you need a dependency not available in PureOS, package it :D
|
||||||
|
- If your script stores files somewhere, then please use `xdg-user-dir` to set the path instead of harcoding directory names like "Documents", "Videos", this is usefull because not all users have their OS in English. See example here; https://source.puri.sm/librem5-apps/librem5-goodies/-/blob/pureos/byzantium/l5-screenshot#L27 `xdg-user-dir` is also quite usefull
|
||||||
|
- if you are not confortable in commiting to a Deb package then open an issue asking for the script to be packaged and we will work it out
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Name=Contacts Importer
|
|
||||||
Type=Application
|
|
||||||
Icon=preferences-desktop-personal
|
|
||||||
Exec=/usr/bin/contacts-importer %U
|
|
||||||
Categories=Utility;
|
|
||||||
MimeType=text/x-vcard;
|
|
|
@ -1,6 +1,93 @@
|
||||||
|
librem5-goodies (0.0.7pureos1) byzantium; urgency=medium
|
||||||
|
|
||||||
|
[ Guido Günther ]
|
||||||
|
* Make it a native package again.
|
||||||
|
There's no upstream other than us afaik.
|
||||||
|
* ci: Drop check-tarball.
|
||||||
|
Not needed (and hence not working) for a 3.0 (native) package
|
||||||
|
|
||||||
|
-- Guido Günther <agx@sigxcpu.org> Sat, 30 Oct 2021 15:40:47 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.7-1pureos2) byzantium; urgency=medium
|
||||||
|
|
||||||
|
[ João Azevedo ]
|
||||||
|
* Prepare release to byzantium.
|
||||||
|
- Update CI
|
||||||
|
- New release number
|
||||||
|
- Increase debhelper version to 13
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Sat, 30 Oct 2021 00:36:54 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.7pureos1) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
[ João Azevedo ]
|
||||||
|
* New upstream release.
|
||||||
|
- Remove scale the screen script, closes #15
|
||||||
|
- Remove wl-randr as a dependency as it is no longer required
|
||||||
|
- Update packge discription to include l5-screen-recorder
|
||||||
|
- Update appdata file to include the l5-screen-recorder
|
||||||
|
- Add l5-screen-recorder to makefile build tests
|
||||||
|
- Fix shellcheck warning with l5-screen-recorder
|
||||||
|
- Add usage function to l5-screen-recorder
|
||||||
|
- Add l5-screen-recorder icon to notifications
|
||||||
|
- Add l5-screen-recorder to build tests
|
||||||
|
- Update debhelper version
|
||||||
|
|
||||||
|
[ David Hamner ]
|
||||||
|
* Add l5-screen-recorder:
|
||||||
|
- Add l5-screen-recorder script and l5-screen-recorder desktop file
|
||||||
|
- Add wf-recorder as a dependency required by l5-screen-recorder
|
||||||
|
- Add paths for l5-screen-recorder in librem5-goodies.install file
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Fri, 29 Oct 2021 23:28:46 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.6pureos1) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
* Non-maintainer upload.
|
||||||
|
* Use a PureOS compatible version tag
|
||||||
|
|
||||||
|
-- Guido Günther <agx@sigxcpu.org> Wed, 01 Sep 2021 10:38:26 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.6) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release.
|
||||||
|
- Make screenshot script l10n friendy, closes: #13
|
||||||
|
- d/control: add dependency; xdg-user-dirs
|
||||||
|
- Add scale the screens support for QEMU image closes: #12
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Sun, 18 Apr 2021 13:33:50 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.5) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release.
|
||||||
|
- added tags in the desktop files for then to be visible in phosh
|
||||||
|
- Added appstream metadata file
|
||||||
|
- Added Scale the screen script
|
||||||
|
- Updated the control file and dependencies
|
||||||
|
- Updated changelog file
|
||||||
|
- Updated README file
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Mon, 23 Nov 2020 13:26:52 +0100
|
||||||
|
|
||||||
|
librem5-goodies (0.0.4) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release.
|
||||||
|
- replaced zenity with yad in the screenshot script
|
||||||
|
- changed the scripts names to have the prefix l5-
|
||||||
|
- Updated README file
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Tue, 04 Aug 2020 22:17:24 +0200
|
||||||
|
|
||||||
|
librem5-goodies (0.0.3) amber-phone; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release.
|
||||||
|
- Added the script: screenshot
|
||||||
|
|
||||||
|
-- João Azevedo <joao.azevedo@puri.sm> Tue, 04 Aug 2020 22:17:24 +0200
|
||||||
|
|
||||||
librem5-goodies (0.0.2) amber-phone; urgency=medium
|
librem5-goodies (0.0.2) amber-phone; urgency=medium
|
||||||
|
|
||||||
* New upstream release.
|
* New upstream release.
|
||||||
- Changed the project name.
|
- Changed the project name.
|
||||||
- Changed the target repo to amber-phone.
|
- Changed the target repo to amber-phone.
|
||||||
|
|
||||||
|
@ -8,6 +95,6 @@ librem5-goodies (0.0.2) amber-phone; urgency=medium
|
||||||
|
|
||||||
contacts-importer (0.0.1) byzantium; urgency=medium
|
contacts-importer (0.0.1) byzantium; urgency=medium
|
||||||
|
|
||||||
* Initial release.
|
* Initial release.
|
||||||
|
|
||||||
-- João Azevedo <joao.azevedo@puri.sm> Fri, 19 Jun 2020 13:47:46 +0200
|
-- João Azevedo <joao.azevedo@puri.sm> Fri, 19 Jun 2020 13:47:46 +0200
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
contacts-importer /usr/bin
|
|
||||||
contacts-importer.desktop /usr/share/applications
|
|
|
@ -3,23 +3,29 @@ Section: comm
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: João Azevedo <joao.azevedo@puri.sm>
|
Maintainer: João Azevedo <joao.azevedo@puri.sm>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
debhelper-compat (= 12),
|
appstream-util,
|
||||||
|
debhelper-compat (= 13),
|
||||||
shellcheck,
|
shellcheck,
|
||||||
Homepage: https://source.puri.sm/librem5-apps/diy-contacts-importer
|
Homepage: https://source.puri.sm/librem5-apps/librem5-goodies
|
||||||
Vcs-Git: https://source.puri.sm/librem5-apps/diy-contacts-importer.git
|
Vcs-Git: https://source.puri.sm/librem5-apps/librem5-goodies.git
|
||||||
Vcs-Browser: https://source.puri.sm/librem5-apps/diy-contacts-importer
|
Vcs-Browser: https://source.puri.sm/librem5-apps/librem5-goodies
|
||||||
Standards-Version: 4.3.0
|
Standards-Version: 4.3.0
|
||||||
|
|
||||||
Package: librem5-goodies
|
Package: librem5-goodies
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends:
|
Depends:
|
||||||
evolution-data-server,
|
evolution-data-server,
|
||||||
|
grim,
|
||||||
libnotify-bin,
|
libnotify-bin,
|
||||||
syncevolution,
|
syncevolution,
|
||||||
yad,
|
yad,
|
||||||
|
xdg-user-dirs,
|
||||||
|
wf-recorder,
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
Description: Librem 5 Goodies
|
Description: Librem 5 Goodies
|
||||||
A collection of bash scripts and applications made to add functionalities to
|
A collection of bash scripts and applications made to add functionalities to
|
||||||
the Librem 5 phone and Phosh Shell. It includes the following:
|
the Librem 5 phone and Phosh Shell. It includes the following:
|
||||||
- Contacts Importer: A simple application to import contacts from a vcard file
|
- L5 Contacts Importer: A simple application to import contacts from a vcard
|
||||||
to GNOME Contacts.
|
file to GNOME Contacts.
|
||||||
|
- L5 Screenshot: A simple application to make screenshots on the Librem 5
|
||||||
|
- L5 Screen Recorder: A simple application to record the Librem 5 screen
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
Source: https://source.puri.sm/librem5-apps/diy-contacts-importer
|
Source: https://source.puri.sm/librem5-apps/librem5-goodies
|
||||||
Upstream-Name: librem5-goodies
|
Upstream-Name: librem5-goodies
|
||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
contacts-importer_0.0.1_all.deb comm optional
|
|
||||||
contacts-importer_0.0.1_amd64.buildinfo comm optional
|
|
|
@ -1,19 +1,9 @@
|
||||||
include:
|
include:
|
||||||
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
||||||
|
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-byzantium-jobs.yml'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- package
|
- package
|
||||||
- test-package
|
- test-package
|
||||||
|
|
||||||
package:deb-debian-buster:
|
|
||||||
extends: .l5-build-debian-package
|
|
||||||
|
|
||||||
autopkgtest-debian-buster-package:
|
|
||||||
dependencies:
|
|
||||||
- package:deb-debian-buster
|
|
||||||
extends: .l5-autopkgtest-debian-package
|
|
||||||
|
|
||||||
lintian-debian-buster-package:
|
|
||||||
dependencies:
|
|
||||||
- package:deb-debian-buster
|
|
||||||
extends: .l5-lintian-debian-package
|
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
contacts-importer /usr/bin
|
l5-contacts-importer /usr/bin
|
||||||
contacts-importer.desktop /usr/share/applications
|
l5-contacts-importer.desktop /usr/share/applications
|
||||||
|
l5-screenshot /usr/bin
|
||||||
|
l5-screenshot.desktop /usr/share/applications
|
||||||
|
l5-screen-recorder /usr/bin
|
||||||
|
l5-screen-recorder.desktop /usr/share/applications
|
||||||
|
sm.puri.librem5.goodies.appdata.xml /usr/share/metainfo
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
Test-Command: /usr/bin/contacts-importer --help
|
Test-Command: /usr/bin/l5-contacts-importer --help && /usr/bin/l5-screenshot --help && l5-screen-recorder --help
|
||||||
Restrictions: superficial
|
Restrictions: superficial
|
||||||
Depends:
|
Depends: librem5-goodies
|
||||||
contacts-importer,
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[DEFAULT]
|
||||||
|
debian-branch = pureos/byzantium
|
||||||
|
debian-tag = pureos/%(version)s
|
||||||
|
upstream-tag = v%(version)s
|
||||||
|
upstream-branch = master
|
||||||
|
pristine-tar = True
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
sign-tags = True
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Contacts Importer
|
||||||
|
Type=Application
|
||||||
|
Icon=preferences-desktop-personal
|
||||||
|
Exec=/usr/bin/l5-contacts-importer %U
|
||||||
|
Categories=Utility;
|
||||||
|
MimeType=text/x-vcard;
|
||||||
|
# Translators: Do NOT translate or transliterate this text (these are enum types)!
|
||||||
|
X-Purism-FormFactor=Workstation;Mobile;
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# GPL3
|
||||||
|
|
||||||
|
function usage()
|
||||||
|
{
|
||||||
|
echo "Usage: Just press the Screen Shot Icon in the app tray"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
NOTIFY_SEND="notify-send -i emblem-videos-symbolic"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--help|-h|-?)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
VIDEO="$(xdg-user-dir VIDEOS)/$(date +%Y-%m-%d-%H%M%S).avi"
|
||||||
|
yad --title ScreenCapture --text "A simple GUI to record the screen" --button="Start capture:100" --button="Quit:0" --buttons-layout=center
|
||||||
|
start_window_return=$?
|
||||||
|
|
||||||
|
if [[ $start_window_return -eq 100 ]]
|
||||||
|
then
|
||||||
|
wf-recorder -a -f "$VIDEO" --codec=asv1 &
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
yad --title ScreenCapture --text "Screen capture is actively running. \\nFile: $VIDEO" --button='Stop capture:100' --buttons-layout=center
|
||||||
|
exit_window_return=$?
|
||||||
|
|
||||||
|
if [[ $exit_window_return -eq 100 ]]
|
||||||
|
then
|
||||||
|
killall -2 wf-recorder
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$VIDEO"
|
||||||
|
then
|
||||||
|
$NOTIFY_SEND ScreenCapture "Video stored at $VIDEO"
|
||||||
|
fi
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Screen Recorder
|
||||||
|
Type=Application
|
||||||
|
Icon=emblem-videos-symbolic
|
||||||
|
Exec=/usr/bin/l5-screen-recorder
|
||||||
|
Categories=Utility;
|
||||||
|
# Translators: Do NOT translate or transliterate this text (these are enum types)!
|
||||||
|
X-Purism-FormFactor=Workstation;Mobile;
|
|
@ -0,0 +1,44 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# This screenshot program was based on an initial command-line only version
|
||||||
|
# by the purismforum user in community/librem-5
|
||||||
|
#
|
||||||
|
# I've since expanded it to use libnotify and provide a GUI
|
||||||
|
# It requires the grim, libnotify-bin and yad packages:
|
||||||
|
# sudo apt install grim yad libnotify-bin
|
||||||
|
|
||||||
|
# Adding usage information and Icon to libnotify
|
||||||
|
|
||||||
|
function usage()
|
||||||
|
{
|
||||||
|
echo "Usage: $0, or just press the Screen Shot Icon in the app tray"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
NOTIFY_SEND="notify-send -i applets-screenshooter"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--help|-h|-?)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#Variable
|
||||||
|
|
||||||
|
SCREENSHOT="$(xdg-user-dir PICTURES)/$(date +%Y-%m-%d-%H%M%S).png"
|
||||||
|
|
||||||
|
if [ -e /usr/bin/yad ]; then
|
||||||
|
INPUT=$(yad --title Screenshot --text="Take screenshot after X seconds" --form --field=filename:SFL --field=seconds:NUM "$SCREENSHOT" "5" --focus-field=2)
|
||||||
|
echo "$INPUT"
|
||||||
|
SCREENSHOT=$(echo "$INPUT" | cut -d '|' -f1)
|
||||||
|
SECONDS=$(echo "$INPUT" | cut -d '|' -f2)
|
||||||
|
else
|
||||||
|
SECONDS=$(yad --title Screenshot --text="Take screenshot after X seconds" --entry-text=5 --entry)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$SECONDS" -eq 0 ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
$NOTIFY_SEND -t 1000 screenshot "Taking a screenshot in $SECONDS seconds"
|
||||||
|
sleep "$SECONDS";
|
||||||
|
grim "$SCREENSHOT"
|
||||||
|
$NOTIFY_SEND screenshot "Screenshot stored at ${SCREENSHOT}"
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Screen Shot
|
||||||
|
Type=Application
|
||||||
|
Icon=applets-screenshooter
|
||||||
|
Exec=/usr/bin/l5-screenshot %U
|
||||||
|
Categories=Utility;
|
||||||
|
# Translators: Do NOT translate or transliterate this text (these are enum types)!
|
||||||
|
X-Purism-FormFactor=Workstation;Mobile;
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2018-2019 Purism, SPC -->
|
||||||
|
<component type="desktop-application">
|
||||||
|
<id>sm.puri.librem5.goodies</id>
|
||||||
|
<metadata_license>gpl-3+</metadata_license>
|
||||||
|
<project_license>GPL-3.0+</project_license>
|
||||||
|
<name>Librem 5 Goodies</name>
|
||||||
|
<summary>A collection of bash scripts for the Librem 5</summary>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
<p>Librem5 Goodies contains the following scripts:</p>
|
||||||
|
<p>- Contacts importer: An application to import contacts from a vcard</p>
|
||||||
|
<p>- Screen Shot: An application to make screenshots of the Librem 5</p>
|
||||||
|
<p>- Screen recorder: An application to record the Librem 5 screen</p>
|
||||||
|
</description>
|
||||||
|
<url type="homepage">https://source.puri.sm/librem5-apps/librem5-goodies/</url>
|
||||||
|
<developer_name>Purism Developers</developer_name>
|
||||||
|
|
||||||
|
<update_contact>support@puri.sm</update_contact>
|
||||||
|
|
||||||
|
<custom>
|
||||||
|
<value key="Purism::form_factor">workstation</value>
|
||||||
|
<value key="Purism::form_factor">mobile</value>
|
||||||
|
</custom>
|
||||||
|
|
||||||
|
<provides>
|
||||||
|
<binary>librem5-goodies</binary>
|
||||||
|
</provides>
|
||||||
|
|
||||||
|
</component>
|
||||||
|
|
Loading…
Reference in New Issue