Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-21 00:26:22 +00:00
parent 51e1b58889
commit 49187d6be0
11 changed files with 138 additions and 25 deletions

View File

@@ -7,28 +7,16 @@ source: https://github.com/tldr-pages/tldr.git
> Wallpaper utility for Hyprland with the ability to dynamically change wallpapers.
> Controlled by the config file `~/.config/hypr/hyprpaper.conf`.
> More information: <https://github.com/hyprwm/hyprpaper>.
> More information: <https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/>.
- Start the hyprpaper service:
- Start the `hyprpaper` daemon:
`hyprpaper`
- Preload a wallpaper:
`hyprctl hyprpaper preload "{{path/to/image.png}}"`
- Switch wallpaper to a different preloaded image:
- Change the wallpaper for a specific monitor:
`hyprctl hyprpaper wallpaper "{{monitor}},{{path/to/image.png}}"`
- Preload a wallpaper, set that wallpaper, then unload all unused wallpapers:
- Change the default wallpaper for all unspecified monitors and set its fit mode:
`hyprctl hyprpaper reload "{{monitor}},{{path/to/image.png}}"`
- List the wallpapers that are currently preloaded (useful for dynamically preloading and unloading):
`hyprctl hyprpaper listloaded`
- List the active wallpapers hyprpaper is displaying, along with their associated monitor:
`hyprctl hyprpaper listactive`
`hyprctl hyprpaper wallpaper ",{{path/to/image.png}},{{contain|cover|tile|fill}}"`

View File

@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set the promisc mode status of a device:
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} promisc {{on|off}}`
- Delete a device:
`sudo ip {{[l|link]}} {{[d|delete]}} {{ethX}}`

View File

@@ -9,18 +9,22 @@ source: https://github.com/tldr-pages/tldr.git
> For simple user add/remove/password, you can also use `smbpasswd`.
> More information: <https://manned.org/pdbedit>.
- List all Samba users (use verbose flag to show their settings):
- List all Samba users:
`sudo pdbedit --list --verbose`
`sudo pdbedit {{[-L|--list]}}`
- List all Samba users and their settings:
`sudo pdbedit {{[-L|--list]}} {{[-v|--verbose]}}`
- Add an existing Unix user to Samba (will prompt for password):
`sudo pdbedit --user {{username}} --create`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-a|--create]}}`
- Remove a Samba user:
`sudo pdbedit --user {{username}} --delete`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-x|--delete]}}`
- Reset a Samba user's failed password counter:
`sudo pdbedit --user {{username}} --bad-password-count-reset`
`sudo pdbedit {{[-u|--user]}} {{username}} {{[-z|--bad-password-count-reset]}}`

View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# v4l2loopback-ctl
> Control Video4Linux2 loopback devices.
> More information: <https://manned.org/v4l2loopback-ctl>.
- List all available loopback devices:
`sudo v4l2loopback-ctl list`
- Add a loopback device:
`sudo v4l2loopback-ctl add`