aboutsummaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)AuthorLines
2023-08-02Move contrib/ to separate repositorySimon Ser-550/+0
User-contributed scripts are being moved over to this repository: https://github.com/OctopusET/sway-contrib
2022-07-30grimshot: fix tilde expansion within quotesllyyr-2/+2
2022-04-23Update grimshot.1.scdAlan-1/+1
Fixed typo. The object is **files**, which is plural. **image** modifies files; it's not countable.
2022-04-21Support cursor capture in grimshotAlice Carroll-21/+43
Refactor argument parser Bring back `sh` compatibility Default to NOTIFY=no
2021-07-10grimshot: Exit 1 on cancellationHugo Osvaldo Barrera-2/+2
Whenever the selection is cancelled by the user, exit 1, since not screenshot has been taken.
2021-06-24contrib: drop incr_version scriptSimon Ser-21/+0
This isn't used anymore.
2021-04-09refactor icon_for_window functionAljaz Gantar-17/+11
2021-04-09fix type error when class_name noneAljaz Gantar-1/+1
2021-02-23grimshot: document support for piping to STDOUT.Mark Stosberg-3/+5
2021-02-16Prevent inactive-windows-transparency.py to crash on lockscreenPierre-Albéric TROUPLIN-1/+6
2020-12-26grimshot: Fix man page issuesWilliam Culhane-42/+54
This fixes a few formatting errors in SYNOPSIS, moves the command options out of SYNOPSIS, swaps the labels on the SYNOPSIS and DESCRIPTION sections, creates an EXAMPLES section and slightly rewords parts of the OPTIONS, DESCRIPTION, EXAMPLES, and OUTPUT sections.
2020-07-17contrib/_incr_version: Disallow the "v"-prefixed version formatMichael Weiss-0/+7
The check is a bit strange but should be POSIX compliant.
2020-07-15Add check for empty GEOM variableVinko Kašljević-0/+8
In case when slurp is used to select part of screen or a window, if user aborts the selection, grimshot will capture the whole screen instead of exiting. This is fixed with check for empty variable.
2020-06-17grimshot: fix POSIX complianceDavid Arnold-1/+1
source is not POSIX compliant, '.' is. https://stackoverflow.com/a/11588629
2020-06-17grimshot: Unary operator expectedDavid Arnold-2/+2
fixes this error: /usr/local/bin/grimshot: line 22: [: ==: unary operator expected
2020-05-10Fix some mistakes in grimshot docsPaul Ouellette-14/+14
2020-05-05grimshot: Skip creating a temp file when copyingHugo Osvaldo Barrera-6/+1
2020-05-05grimshot: Add a man pageHugo Osvaldo Barrera-7/+168
2020-05-05grimshot: Add a separate flag for notificationsHugo Osvaldo Barrera-4/+18
Make notifications a separate flag. Personally, I trigger grimshot myself most of the time (via sway bindsym) rather than by some external means, so I don't need to be notified of it happening. However, keep a flag with this functionality there for those scenarios there it's necessary to inform the user. Also print the file location when saving the screenshot.
2020-05-05grimshot: Allow manually picking a windowHugo Osvaldo Barrera-3/+7
(with slurp)
2020-05-05grimshot: Show usage when on invalid commandHugo Osvaldo Barrera-3/+15
Show the usage output when an invalid command is received. Otherwise things like `grimshot --help` save a screenshot, which is really unexpected and hurts users trying to remember the right commands / arguments.
2020-05-05grimshot: Avoid screenshots overwriting each otherHugo Osvaldo Barrera-1/+1
Due to the date format used, if several screenshots are taken in succession, each one overwrote the other. This change set makes each one have a different name to avoid this. Also avoid using spaces, since many scripts and tools are unhappy with file names with spaces.
2020-05-05grimshot: Allow configuring default directoryHugo Osvaldo Barrera-1/+9
`$XDG_PICTURES_DIR` is a very loosely defined thing; it's a directory where "pictures" are stored, which no clearer definition. Some people use it for photographs they take, other use it for images they save from the internet, and others use it for screenshots. Having lots of tools save their output there (anything that's an image goes there) can easily make it a kitchen sink. To work around this, use `$XDG_SCREENSHOTS_DIR` as a target directory for screenshots by default. If not-so-standard variable is unset, fall back to the previous setting; `$XDG_PICTURES_DIR`. This also drops an external dependency, which was (a) an overkill (b) not flexible enough.
2020-02-18treewide: fix typosTorstein Husebø-1/+1
2020-02-04Change wordingCyril Levis-9/+10
2020-02-04Add the possibility to capture only one screen if several screens are use.Cyril Levis-4/+11
2020-01-09Use transparency arg in the window focus eventJR Boyens-5/+5
2019-12-31_incr_version: always overwrite old version numberDrew DeVault-1/+1
2019-12-31_incr_version: prompt for target wlroots releaseDrew DeVault-0/+8
2019-12-06A Script to change sway workspace name.Thorben Günther-0/+130
This script automatically changes the workspace name when an application gets closed, moved or openend.
2019-12-06Improve transparency scriptThorben Günther-17/+53
Transparency gets reset when the script is terminated. Added command line option to set transparency strength without changing the script. Added support for multiple displays.
2019-11-17grimshot: fix branching on command exit statusManuel Mendez-4/+2
The previous behavior was incorrect because `if` was checking the return status of the `[` command which was never going to be an error. `[` seems to only return an error if no args are provided. This was basically a useless use of `[` anyway since it was just meant as a straight interpretation of command exit, something that `if` can do itself. Compare: ```sh [ ]; echo ?=$? [ /bin/false ]; echo ?=$? if [ /bin/false ]; then echo this is the unintended bug; fi if /bin/false; then echo this will not be printed; fi ```
2019-10-16Grimshot: a helper for screenshots within swayLauri-0/+113
Usage: grimshot copy|save win|screen|area [FILE] Troubleshoot: grimshot check Requirements: - `grim`: screenshot utility for wayland - `slurp`: to select an area - `swaymsg`: to read properties of current window - `wl-copy`: clipboard utility - `jq`: json uliity to parse swaymsg output - `notify-send`: to show notifications Those are needed to be installed, if unsure, run `grimshot check` Examples: `grimshot copy win` - to copy current window `grimshot save area` - to select area and save it to default file (Pictures/Grimshot-$datetime.png) `grimshot save screen ~/screenshot.png` - to save screenshot under ~/screenshot.png `grimshot` - usage `grimshot check` - verify if tools are installed
2019-08-27chmod +x contrib/_incr_versionDrew DeVault-0/+0
2019-08-27Add _incr_version to contrib/Drew DeVault-0/+6
2018-10-20A script to make inactive windows transparentKonstantin Kharlamov-0/+28
Sway has ability to apply transparency to arbitrary windows. This script wires up this functional to one of popular use-cases from i3+<compositor_name>. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2018-09-22Remove contrib/awesome.configDrew DeVault-63/+0
We deprecated the stuff necessary to make this work.
2017-01-14Move awesome config to contrib/Drew DeVault-0/+63