mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 05:02:28 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}"`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
17
tldr/linux/v4l2loopback-ctl
Normal file
17
tldr/linux/v4l2loopback-ctl
Normal 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`
|
||||
Reference in New Issue
Block a user