Browse Source

Add autostart notes

HON95 3 years ago
parent
commit
9c7b04017d
3 changed files with 9 additions and 4 deletions
  1. 1 0
      media/v4l2.md
  2. 7 4
      pc/arch-i3.md
  3. 1 0
      virt-cont/k8s.md

+ 1 - 0
media/v4l2.md

@@ -18,6 +18,7 @@ A tool to manage video input devices (mainly webcams).
     - Show brief device info: `v4l2-ctl [-d <dev>] --info`
     - Show brief device info: `v4l2-ctl [-d <dev>] --info`
     - Show extended device info: `v4l2-ctl [-d <dev>] --all`
     - Show extended device info: `v4l2-ctl [-d <dev>] --all`
     - Show device formats: `v4l2-ctl [-d <dev>] --info --list-formats`
     - Show device formats: `v4l2-ctl [-d <dev>] --info --list-formats`
+    - Show device settings: `v4l2-ctl [-d <dev>] --info --list-ctrls`
     - If no device is specified, it defaults to `/dev/video0`.
     - If no device is specified, it defaults to `/dev/video0`.
     - Certain devices show up as multiple `/dev/video*` files. Typically there's one video capture device and one metadata capture device. Use the command above to find out.
     - Certain devices show up as multiple `/dev/video*` files. Typically there's one video capture device and one metadata capture device. Use the command above to find out.
 - Modify video device properties:
 - Modify video device properties:

+ 7 - 4
pc/arch-i3.md

@@ -174,7 +174,7 @@ Note: The use of `sudo` in the text below is a bit inconsistent, but you should
     1. Add line to allow sudo group without password: `%sudo ALL=(ALL:ALL) NOPASSWD: ALL`
     1. Add line to allow sudo group without password: `%sudo ALL=(ALL:ALL) NOPASSWD: ALL`
     1. (Note) To give users sudo access through the group: `usermod -aG sudo <user>`
     1. (Note) To give users sudo access through the group: `usermod -aG sudo <user>`
 1. Add a personal admin user:
 1. Add a personal admin user:
-    1. Create the user and add it to relevant groups: `useradd -m -G sudo,adm,sys,uucp,proc,systemd-journal <user>`
+    1. Create the user and add it to relevant groups: `useradd -m -G sudo,adm,sys,uucp,proc,systemd-journal,video <user>`
     1. Set its password: `passwd <user>`
     1. Set its password: `passwd <user>`
     1. Relog as the new user, both to make sure that it's working and because some next steps require a non-root user.
     1. Relog as the new user, both to make sure that it's working and because some next steps require a non-root user.
 1. Install yay to access the AUR (as non-root):
 1. Install yay to access the AUR (as non-root):
@@ -348,6 +348,12 @@ Note: Install _either_ the LightDM (X11 GUI) or Ly (TTY TUI) display manager, no
 1. Setup a Spotify module for Polybar:
 1. Setup a Spotify module for Polybar:
     1. Install: `yay -S polybar-spotify-git`
     1. Install: `yay -S polybar-spotify-git`
     1. In the Polybar config (`~/.config/polybar/config`), add a module `spotify` (see config snipper below) and add it to some bar module section.
     1. In the Polybar config (`~/.config/polybar/config`), add a module `spotify` (see config snipper below) and add it to some bar module section.
+1. Setup autostarting of desktop applications:
+    1. (Note) Desktop applications are applications with `<name>.desktop` files. These applications may be autostarted using a tool like `dex`, following the XDG Autostart spec.
+    1. (Note) To enable autostarting for a desktop application, find/create a `.desktop` entry file for it in `/etc/xdg/autostart` (system) `~/.config/autostart` (user). A simple method is to find the entry in e.g. `/usr/share/applications/` (system) or `~/.local/share/applications/` (user), then symlink it into the appropriate autostart directory (e.g. `ln -s /usr/share/applications/discord.desktop ~/.config/autostart`).
+    1. Install dex: `sudo pacman -S dex`
+    1. Add this to your i3 config: `exec --no-startup-id dex --autostart --environment i3`
+    1. (Optional) Test it: `dex --autostart --environment i3 &>/dev/null`
 
 
 ### Setup Xorg Multi-Display and Stuff
 ### Setup Xorg Multi-Display and Stuff
 
 
@@ -400,12 +406,9 @@ See [PipeWire (Applications)](../applications/#pipewire) for more config info.
     1. (Optional) Enable auto power-on after boot and resume: In `/etc/bluetooth/main.conf`, in the `Policy` section, set `AutoEnable = true`.
     1. (Optional) Enable auto power-on after boot and resume: In `/etc/bluetooth/main.conf`, in the `Policy` section, set `AutoEnable = true`.
 1. Setup audio:
 1. Setup audio:
     1. (Note) Using PipeWire and its PulseAudio adapter (`pipewire-pulse`), which should already have been set up and includes support for Bluetooth.
     1. (Note) Using PipeWire and its PulseAudio adapter (`pipewire-pulse`), which should already have been set up and includes support for Bluetooth.
-1. **TODO** See https://wiki.archlinux.org/title/bluetooth_headset
 1. Setup Blueman:
 1. Setup Blueman:
-    1. **TODO** This broke for some reason, the GUIs won't open and the tray icon won't show. I haven't bothered fixing it yet.
     1. (Note) Blueman is a Bluetooth manager with a practical tray icon.
     1. (Note) Blueman is a Bluetooth manager with a practical tray icon.
     1. Install: `pacman -S blueman`
     1. Install: `pacman -S blueman`
-    1. Enable tray icon on i3 start: In the i3 config, add `exec --no-startup-id blueman-applet`. (**TODO** Test.)
     1. (Optional) Try to run it. It's the "Bluetooth Manager" entry in e.g. Rofi.
     1. (Optional) Try to run it. It's the "Bluetooth Manager" entry in e.g. Rofi.
 1. (Example) Connect a device using `bluetoothctl`:
 1. (Example) Connect a device using `bluetoothctl`:
     1. (Note) To avoid entering the interactive TUI and run single commands instead, use `bluetoothctl -- <cmd>`.
     1. (Note) To avoid entering the interactive TUI and run single commands instead, use `bluetoothctl -- <cmd>`.

+ 1 - 0
virt-cont/k8s.md

@@ -40,6 +40,7 @@ Using **Debian**.
 ## Notes and Best Practices
 ## Notes and Best Practices
 
 
 - k8s is the foundation for a platform-as-a-service (PaaS), but requires a ton of configuration if self-hosting/on-premise.
 - k8s is the foundation for a platform-as-a-service (PaaS), but requires a ton of configuration if self-hosting/on-premise.
+- **TODO**
 
 
 ## Related Software
 ## Related Software