From 8b234c18b940ed1313d39d829cc15a23af0dfea1 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 30 Apr 2025 00:19:40 +0000 Subject: [PATCH] Update cheatsheets --- tldr/i3lock | 37 +++++++++++++++++++++++++++++++++++++ tldr/swaybg | 21 +++++++++++++++++++++ tldr/swayidle | 18 ++++++++++++++++++ tldr/swaylock | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 tldr/i3lock create mode 100644 tldr/swaybg create mode 100644 tldr/swayidle create mode 100644 tldr/swaylock diff --git a/tldr/i3lock b/tldr/i3lock new file mode 100644 index 00000000..804b2e4b --- /dev/null +++ b/tldr/i3lock @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# i3lock + +> Simple screen locker built for the i3 window manager. +> More information: . + +- Lock the screen showing a white background: + +`i3lock` + +- Lock the screen with a simple color background (rrggbb format): + +`i3lock {{[-c|--color]}} {{0000ff}}` + +- Lock the screen to a PNG background: + +`i3lock {{[-i|--image]}} {{path/to/file.png}}` + +- Lock the screen and disable the unlock indicator (removes feedback on keypress): + +`i3lock {{[-u|--no-unlock-indicator]}}` + +- Lock the screen and don't hide the mouse pointer: + +`i3lock {{[-p|--pointer]}} {{default}}` + +- Lock the screen to a PNG background tiled over all monitors: + +`i3lock {{[-i|--image]}} {{path/to/file.png}} {{[-t|--tiling]}}` + +- Lock the screen and show the number of failed login attempts: + +`i3lock {{[-f|--show-failed-attempts]}}` diff --git a/tldr/swaybg b/tldr/swaybg new file mode 100644 index 00000000..efefc618 --- /dev/null +++ b/tldr/swaybg @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# swaybg + +> Wallpaper tool for Wayland compositors. +> More information: . + +- Set the wallpaper to an image: + +`swaybg {{[-i|--image]}} {{path/to/image}}` + +- Set the wallpaper mode: + +`swaybg {{[-i|--image]}} {{path/to/image}} {{[-m|--mode]}} {{stretch|fit|fill|center|tile|solid_color}}` + +- Set the wallpaper to a static color: + +`swaybg {{[-c|--color]}} "{{#rrggbb}}"` diff --git a/tldr/swayidle b/tldr/swayidle new file mode 100644 index 00000000..027d3ef6 --- /dev/null +++ b/tldr/swayidle @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# swayidle + +> Idle management daemon for Wayland. +> Note: the configuration options are documented in its man page. +> More information: . + +- Listen for idle activity using the configuration in `$XDG_CONFIG_HOME/swayidle/config` or `$HOME/swayidle/config`: + +`swayidle` + +- Specify an alternative path to the configuration file: + +`swayidle -C {{path/to/file}}` diff --git a/tldr/swaylock b/tldr/swaylock new file mode 100644 index 00000000..e83be5b9 --- /dev/null +++ b/tldr/swaylock @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# swaylock + +> Screen locking utility for Wayland compositors. +> More information: . + +- Lock the screen using the config in `$HOME/.swaylock/config` or `$XDG_CONFIG_HOME/swaylock/config`: + +`swaylock` + +- Lock the screen with a simple color background (`rrggbb` format): + +`swaylock {{[-c|--color]}} {{0000ff}}` + +- Lock the screen with a background image: + +`swaylock {{[-i|--image]}} {{path/to/image}}` + +- Lock the screen and disable the unlock indicator (removes feedback on keypress): + +`swaylock {{[-u|--no-unlock-indicator]}}` + +- Detach from the controlling terminal after locking (like `i3lock`): + +`swaylock {{[-f|--daemonize]}}` + +- Lock the screen with a background image tiled over all monitors: + +`swaylock {{[-i|--image]}} {{path/to/image}} {{[-t|--tiling]}}` + +- Lock the screen and show the number of failed login attempts: + +`swaylock {{[-F|--show-failed-attempts]}}` + +- Load the configuration from a specific file: + +`swaylock {{[-C|--config]}} {{path/to/config}}`