Skip to content

Commit ae26713

Browse files
n0tooseemersion
authored andcommitted
main: change background color to #a3a3a3
This is a port of the change I made to i3lock a couple of years ago, see: https://github.com/i3/i3lock/pull/300/commits FFFFFF can cause varying degrees of uncomfortableness to users like me, especially during night time. Uncomfortableness can mean "migraines" or being woken up if the electric wiring is suboptimal, causing a desktop to wake up (the latter of which is why I opened the i3lock PR, despite the effort associated with changing defaults). However, the choice of a color that is not solid white helps users tell whether their computer is turned off or not. Light gray (#a3a3a3) is a compromise that is bright, but not "flashbang levels" of bright. This compromise was met after a long discussion with the i3lock developers, and, given the similarities between i3lock and swaylock, this change could be sensible for swaylock as well.
1 parent 7fb6bc3 commit ae26713

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ static void load_image(char *arg, struct swaylock_state *state) {
397397
}
398398

399399
static void set_default_colors(struct swaylock_colors *colors) {
400-
colors->background = 0xFFFFFFFF;
400+
colors->background = 0xA3A3A3FF;
401401
colors->bs_highlight = 0xDB3300FF;
402402
colors->key_highlight = 0x33DB00FF;
403403
colors->caps_lock_bs_highlight = 0xDB3300FF;
@@ -546,7 +546,7 @@ static int parse_options(int argc, char **argv, struct swaylock_state *state,
546546
" -C, --config <config_file> "
547547
"Path to the config file.\n"
548548
" -c, --color <color> "
549-
"Turn the screen into the given color instead of white.\n"
549+
"Turn the screen into the given color instead of light gray.\n"
550550
" -d, --debug "
551551
"Enable debugging output.\n"
552552
" -e, --ignore-empty-password "

swaylock.1.scd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ Locks your Wayland session.
8080
Same as --scaling=tile.
8181

8282
*-c, --color* <rrggbb[aa]>
83-
Turn the screen into the given color instead of white. If -i is used, this
84-
sets the background of the image to the given color. Defaults to white
85-
(FFFFFF).
83+
Turn the screen into the given color instead of light gray. If -i is used,
84+
this sets the background of the image to the given color. Defaults to light
85+
gray (A3A3A3).
8686

8787
*--bs-hl-color* <rrggbb[aa]>
8888
Sets the color of backspace highlight segments.

0 commit comments

Comments
 (0)