Commit graph

192 commits

Author SHA1 Message Date
Basti
6cc1fc16df
Issue-231: Add -v/--version (#246) 2021-07-21 01:03:47 +02:00
Basti
95bd5767ae
Use XDG_* variables for directories and /home/sebtm* only as fallback (ported from #184) (#244) 2021-07-21 01:03:47 +02:00
Basti
62b8002248
Add current github-workflow from master (#243) 2021-07-21 01:03:47 +02:00
Jeff M. Hubbard
d1d19e1ff0
Clear shellcheck errors 2021-07-21 01:03:47 +02:00
Sourav Das
321b8e8c5f
Don't change state of dunst on unlock if paused on lock (#233)
* Fix: Don't change state of dunst on unlock if paused on lock (credits to @souravdas142)
2021-07-21 01:03:46 +02:00
Jeff M. Hubbard
a64ce8f441
Left-align time string (#238) 2021-07-21 01:03:46 +02:00
Jeff M. Hubbard
66d9759159
Get DPI from xrdb, fixes #236 (#237)
`multi-monitor` branch did not check for user set DPI in Xresources.
It does now. Also, rather than parsing .Xresources file, we instead
query xrdb to get the current value.
2021-07-21 01:03:46 +02:00
Jeff M. Hubbard
c025de7b8f
Delete TODO.md 2021-07-21 01:03:46 +02:00
Jeff M. Hubbard
741567fa3e
Prepare to merge (#228)
* Fix loginbox position for vertical arrangements

* Fix tabs everywhere

* 110 Automatically deduce DPI

* 118 Add description for Void Linux installation

* 119 Add Timeout Option

* Update README for multi-monitor

* Keep original directory

* Update README

* Rename project files

* Always use defaults

* Rewrite update() and get_display_list()

* Add lock_timeout to defaults

* Fix ExecStart in systemd unit

* Update README

* Fix bad variable name in wallpaper()

* Remove quoting, it breaks things

* Fix paths and canvas color

* Effects now are optional to speed up updating cache

* Fix fx_dimblur()

* Add shadow to loginbox (#3)

* Add create_loginbox(), add loginshadow option
* Add loginshadow option to example config

* Add solid color background effect (#4)

* Use array and fix quoting

* Add color effect, create solid color backgrounds

* Update README

* Add more arguments and options (#5)

* New arguments and config options

* Update usage more

* Update README

* Minor text edits

* Relocate config and cache (#6)

* Move config and cache directories
* Make sure cache dir exists
* Reorder defaults, clarify options and theme
* Reformat example config
* Moved example config
* Update header info
* Fix quoting in DEFAULT_TIMEOUT

* Rewrite usage()

* Touch up comments and some syntax

* Update README, fix usage

* Fix passing arguments to i3lock

lockargs needs to be an array so that it can expand to multiple
arguments (preferable to using wordsplitting or eval instead).

* Scale loginbox based on DPI

Fixes jeffmhubbard/multilockscreen#7.

* Add failsafe to lock screen when images not found (#13)

* Add optional description box (#10)

* Add optional description box

The box is located in the bottom right corner
of the lock screen image and contains a
custom  description message
(e.g. to present a name for random images
or to display additional information)

Added option: --desc <DESCRIPTION>

* Adapt description to i3lock date font

* Description font queried like in i3lock-color

* description: force normal upright font style

* added support for dimpixel effect (#16)

* added support for using different images on different displays (#17)

* added support for using different images on different displays

* fixed list creation when passed a single image

* reworked how WALL_LIST is generated

* Fix span output (#19)

* Make output reflect one set of images is processed

* Return only 1 image when spanning

* Correct output in a few spots

* Add fancy output (#20)

* Add echo wrapper to prefix output

* Fix typo

* Update README.md (#21)

* Fixes misspelled fn (#22)

* Escape spaces in path for IM (#24)

* Minor fixes (#26)

* Better parsing --lock args

* Add --pass-media-keys

* Add --pass-screen-keys and --pass-power-keys

* Fix insanely short default timeout

* Make error text transparent

* Call init_config later, update example config (#27)

Reading config file later allows users to define
custom functions in config (prelock, postlock, etc)
Updated docs with example usage

* Fix suspend (#30)

* Fix borked logic in --lock arg that breaks suspend

* Don't check  before all arguments read

* Use `dunstctl` to (un)pause the dunst pre/post-lock. (#31)

Please be aware that, the use of dunstctl means that users will be forced to have dunst v1.5.0 or newer installed.

* Update LICENSE

* Disable DPMS after unlocking if it was originally disabled (#32)

* feat[multilockscreen]: Add --show-layout option (#36)

* Only change DPMS timeout if Enabled (#38)

* Fix #40 (#41)

Don't wait for `prelock()` and `postlock()` to complete

* Add bgcolor option to set i3lock --color (#44)

Closes #43

* Update systemd unit (#45)

* Fix options name for i3color-lock release 2.13.c.3 (#49)

With release 2.13.c.3 i3color-lock has added dashes before color, pos, size, etc.
https://github.com/Raymo111/i3lock-color/releases/tag/2.13.c.3

* Add checklist

* Rename script

* Extra files from upstream

* Update README

Keep most of betterlockscreen README. Replaced configuration,
usage, and usage examples.

* Update example config

* Fix branding, paths, etc

* Add wallpaper_cmd and time_format, long arg only

* Fix quoting, remove unused variable

Co-authored-by: Fox Kiester <noct@posteo.net>
Co-authored-by: Richard <fr34q@users.noreply.github.com>
Co-authored-by: Sheeets <31318683+sheeets@users.noreply.github.com>
Co-authored-by: Paul Zeinlinger <paul.zeinlinger@gmail.com>
Co-authored-by: Luc Caspar <casparluc@users.noreply.github.com>
Co-authored-by: R. David Dunphy <rdd.dunphy@gmail.com>
Co-authored-by: Artem Vasenin <vasart169@gmail.com>
Co-authored-by: Nicolas Serafini <serafini.nicolas@gmail.com>
2021-07-21 01:03:44 +02:00
Jeff M. Hubbard
dcc9166703
Fix loginbox position for vertical arrangements (#123) 2021-07-21 01:01:15 +02:00
Jeff M. Hubbard
49ce9ae7fa
add pixel effect 2021-07-21 01:01:15 +02:00
Jeff M. Hubbard
41d43f6323
Update README and example config 2021-07-21 01:01:13 +02:00
Jeff M. Hubbard
c6064ff970
Fix for wallpaper(), always span multi-monitor 2021-07-21 00:59:48 +02:00
Jeff M. Hubbard
e74dec7848
Removed commented code and fix spacing issues 2021-07-21 00:59:48 +02:00
Jeff M. Hubbard
e5e891786e
Multi-monitor rewrite
* init_filenames -> init_config
- remove -t from i3lock call since we make image for total resolution
+ add --screen to i3lock call to show time and ring on that screen
* rec_get_random -> get_user_wall
+ get_total_size retuns total combined resolution
+ get_display_list returns list of screens (number name geometry)
+ resize_and_render resize, dim, blur, dimblur image for each screen
+ purge_cache delete and recreate cache directories
* update completely rewritten to support multi-monitor
- arg --resolution; isn't needed
+ arg --display; screen to display loginbox (default: 0)
+ rc display_on; screen to display loginbox (default: 0)
+ arg --span; span image across all screens (default: false)
+ rc span_image; span image across all screens (default: false)
2021-07-21 00:59:48 +02:00
Pavan Jadhaw
3df1808280
[main] add ability to choose on which screen clock is shown for multimonitor setup 2021-07-21 00:59:46 +02:00
Sebastian Sellmeier
4a95562740
Update readme to show beta-release, rename workflow-config 2021-07-01 18:38:54 +02:00
Basti
1c36673ecb
Should fix #218 and #175 (#227) 2021-05-29 18:48:38 +02:00
Basti
bbe277c0db
Fix #217 - Change systemd-service type to forking (#224)
Besides user-feedback I've found many resources showing that it is one common way to use forking here.
I've also found the option "--nofork" for i3lock-color but I'm unsure of the side-effects (https://github.com/i3/i3lock/issues/109)
as it was the less popular solution.

https://gist.github.com/victorhaggqvist/603125bbc0f61a787d89
https://github.com/Raymo111/i3lock-color/issues/174#issuecomment-687149213
https://gist.github.com/Raymo111/91ffd256b7aca6a85e8a99d6331d3b7b
2021-05-28 23:36:46 +02:00
Raymond Li
bbf8840fd8
Fix i3lock-color args for new standardized version (#220)
* Update required i3lock-color version
* Fix i3lock-color args for new standardized version
2021-05-28 22:21:50 +02:00
Sebastian Sellmeier
ee1a64375e
Change back to i3lock-command. Fixes #210 (#211) 2021-05-18 17:26:53 +02:00
Sebastian Sellmeier
4a852bb21c
nix-shell: add bash5 for testing (#209) 2021-05-16 19:22:24 +02:00
affficionado
f208ce1bb1
Systemd patch (#163)
* update system service location
* update binary location
* Add hint for systemd-service and install-dir
2021-05-15 22:58:05 +02:00
Sebastian Sellmeier
52a065cfdc
Update AUR-Maintainer (#208) 2021-05-15 16:44:55 +02:00
Sebastian Sellmeier
4544ec7e86
Add nix-shell for development, add hint in CONTRIBUTING.md (#207) 2021-05-15 13:00:01 +02:00
Sebastian Sellmeier
929205022c
Add shellcheck-action, fix shellcheck-errors (#206) 2021-05-15 12:43:43 +02:00
Sebastian Sellmeier
3be77f6854
Add option for time-format (with default-config) from #185 (#205)
* Add an option to change the time format
* Add option to example-config

Co-authored-by: Addison Bean <addisonbean@gmail.com>
2021-05-15 11:36:48 +02:00
Eliaz Bobadilla
bacc7cea57
Readme improvements (#200)
* Shorter Link
* Add hyperlink to reddit
2021-05-15 10:26:35 +02:00
E. Almqvist
2d1a53e245 Added i3lock option
Added `-c 00000000` to make the backgrounds opacity to 0.
2021-04-17 01:30:30 +05:30
Philipp Hemmelmayr
9a8294becf
updated i3lock-color link
#170
2020-05-15 10:16:28 +02:00
AUTplayed
66411bc8da Added config & cmd arg to change wallpaper setter; don't create .fehbg 2020-05-15 10:15:18 +02:00
Philipp Hemmelmayr
d6883077ba changed sbin to usr/bin in service file 2020-03-11 19:19:21 +05:30
Aicaya
7774266ee6 Restore previous DPMS setting if turned off (#151)
* Restore previous DPMS setting if turned off

Added the variable 'default_dpms', which reads the last element of line
26 ("DPMS is Enabled/Disabled").  If it's disabled, it restores that
setting upon login.

This fixes an issue where if the user had manually turned off DPMS, the
screen will still turn itself off after a while.

* Look for string instead of line number

(also use tabs for indents to match code)
2020-01-23 21:27:29 +01:00
Kieran Siek
82d1a7280e Fix typo when getting DPI from .Xresources (#140) 2019-09-14 17:53:22 +02:00
Yanze Li
6c66db535f fix scaling when Xft.dpi are set (#114) 2019-09-02 21:52:00 +02:00
yurisuki
69ae265a40 add the --pass-media-keys argument (#120) 2019-09-02 21:48:02 +02:00
Philipp Hemmelmayr
a1916b2881
update service file according to findings in #121 2019-09-02 21:38:03 +02:00
Ibrahim Jarif
11bb4e1c6d Fix null check for lock_timeout
This commit fixes an issue with the validating the `lock_timeout` value. The current implementation would complain if `lock_timeout` value is null.
2019-09-02 21:31:49 +02:00
ettom
89f7dcd2be Make compatible with shellcheck
Add double quotes for variables, fix minor semantic problems.
2019-06-14 10:17:09 +05:30
Vivek R
643ea70aa7 Add Timeout Option (#119)
This adds an opton to set custom monitor timeout in seconds.
Timeout only applicable during lockscreen.
Reverts back to normal timeout after logging back in.

Closes https://github.com/pavanjadhaw/betterlockscreen/issues/116
2019-05-28 23:18:22 +05:30
Aleksander
3f5fd23839 Add description for Void Linux installation (#118)
* Add description for Void Linux installation

* fixed typo

* shortened xbps instructions
2019-04-29 15:33:35 +02:00
Andre Schröder
cdb603a3f2 Automatically deduce DPI (#110)
With this commit the DPI doesn't have to be listed in the ~/.Xresources and will be deduced automatically.
2019-03-31 13:15:31 +00:00
Kamil Skowron
d022301c38 Fix: Allow to remove current directory (#112)
* Fix: Allow to delete `current` directory

* Further improvements just in case new screen resolution
2019-03-28 16:34:30 +00:00
Ben Allen
ed2e9d80bb Added pixelation lock mode (#101)
* Added pixelation lock option
2019-02-12 08:35:52 +05:30
Pavan Jadhaw
d877b69ad5
[update] mv service file to specific dir(system) 2019-02-07 08:55:43 +05:30
Pavan Jadhaw
364848eec6
[update] rc, custom lockscreen text 2019-02-07 08:54:35 +05:30
Pavan Jadhaw
08440bab90
[main] rm un-needed greeter-font flag 2019-01-30 14:38:43 +05:30
Pavan Jadhaw
e1579ce343
[update] config, add default font 2019-01-29 18:57:42 +05:30
Lélio Brun
4edcd0c452 Add support to change default font (#96) 2019-01-29 18:25:55 +05:30
Philipp Hemmelmayr
839a3746d2
fixed #93 2019-01-28 20:20:13 +01:00