From 6ca1544b439f931c9acfd3c7c9e1c9d9c1b36e2c Mon Sep 17 00:00:00 2001 From: "T. Hinrichsmeyer" <t.hinrichsmeyer@ndr.de> Date: Thu, 24 Apr 2025 15:55:09 +0200 Subject: [PATCH] etc --- docs/coding/shell/mise.md | 6 ++ docs/desktop/wayland/displays.md | 3 +- docs/desktop/wayland/hyprland/mylinux4work.md | 14 +++++ docs/git/credentials-helper.md | 15 +++-- docs/media/audio/pulseaudio.md | 59 +++++++++++++++---- 5 files changed, 79 insertions(+), 18 deletions(-) diff --git a/docs/coding/shell/mise.md b/docs/coding/shell/mise.md index 6fd8515..19c6c63 100644 --- a/docs/coding/shell/mise.md +++ b/docs/coding/shell/mise.md @@ -115,6 +115,12 @@ is not evaluated each time): ETC_PASSWORD = "{{exec(command='rbw get etc/password', cache_key='secret', cache_duration='1d')}}" ``` +After rotating tokens/passwords in password store clear the mise cache with: + +```sh +mise cache clear +``` + Mise Terraform issues: - [Support changing the version file for terraform and opentofu](https://github.com/jdx/mise/issues/2602) diff --git a/docs/desktop/wayland/displays.md b/docs/desktop/wayland/displays.md index bb9a051..dfd2b26 100644 --- a/docs/desktop/wayland/displays.md +++ b/docs/desktop/wayland/displays.md @@ -13,7 +13,8 @@ ### Hardware -- LG Electronics LG HDR 5K: +- `LG Electronics LG HDR 5K`: 2 displays are detected instead of one + - Hyprland: [modesetting failing on external monitor](https://github.com/hyprwm/aquamarine/issues/59) ## Multi-display setup diff --git a/docs/desktop/wayland/hyprland/mylinux4work.md b/docs/desktop/wayland/hyprland/mylinux4work.md index a4f7feb..f8926df 100644 --- a/docs/desktop/wayland/hyprland/mylinux4work.md +++ b/docs/desktop/wayland/hyprland/mylinux4work.md @@ -24,9 +24,23 @@ ml4w-hyprland-setup ml4w-hyprland-setup ``` +## Config + +- Config locations at + - `~/.config/ml4w/settings` + - `~/.config/hypr/conf/`, i.e. `~/.config/hypr/conf/monitor.conf` +- [Docs: Configuration Variations](https://github.com/mylinuxforwork/dotfiles/wiki/Configuration-Variations) +- Custom hyprland config: `~/.config/hypr/conf/custom.conf` + - gets sourced at the very end of `~/.config/hypr/hyprland.conf` + ## Key bindings - Show keybindings dialog in Hyprland: `Mod Ctrl k` - default keybindings: `share/dotfiles/.config/hypr/conf/keybindings/default.conf` - Reload hyprland config: `Mod Shift R` - App launcher (Rofi): `Mod Crtl Return` + +## Issues + +- [Docs: Troubleshooting](https://github.com/mylinuxforwork/dotfiles/wiki/Troubleshooting#globbing-errors-on-startup) +- SDDM is configured to only support US keyboard layouts diff --git a/docs/git/credentials-helper.md b/docs/git/credentials-helper.md index 34566b7..dddf11a 100644 --- a/docs/git/credentials-helper.md +++ b/docs/git/credentials-helper.md @@ -14,6 +14,8 @@ git credential-cache--daemon /home/varac/.cache/git/credential/socket - [GitHub](https://github.com/hickford/git-credential-oauth) - Golang - [How it works](https://github.com/hickford/git-credential-oauth?tab=readme-ov-file#how-it-works) +- Downside: Each repo needs to get allowed with OAuth, doesn't scale + ell with tools like gitlabber i.e. Install: @@ -31,7 +33,8 @@ git config --global --add credential.helper oauth ### Custom Gitlab host -- Custom Gitlab hosts need to get registered manually, until [Preconfigure Git Credential Manager as instance-wide OAuth application](https://gitlab.com/gitlab-org/gitlab/-/issues/374172) +- Custom Gitlab hosts need to get registered manually, + until [Preconfigure Git Credential Manager as instance-wide OAuth application](https://gitlab.com/gitlab-org/gitlab/-/issues/374172) is solved. - [Docs: Custom hosts](https://github.com/hickford/git-credential-oauth?tab=readme-ov-file#custom-hosts) @@ -57,15 +60,17 @@ echo url=https://gitlab.com | git credential fill [Custom GitLab instance support](https://github.com/hickford/git-credential-oauth/issues/18) +### Issues + +- [FR: Allow all repos of an instance](https://github.com/hickford/git-credential-oauth/issues/29#issuecomment-2827278017) + ## git-credential-manager - [GitHub](https://github.com/git-ecosystem/git-credential-manager) - dot.net - [AUR packages](https://aur.archlinux.org/packages?O=0&K=git-credential-manager) - - [git-credential-manager](https://aur.archlinux.org/packages/git-credential-manager) - - Installs ~460 MB dot.net dependencies - - [git-credential-manager-core](https://aur.archlinux.org/packages/git-credential-manager-core) - - Installs ~525 MB dot.net dependencies + - [git-credential-manager-bin](https://aur.archlinux.org/packages/git-credential-manager-bin) + - [git-credential-manager-extras](https://aur.archlinux.org/packages/git-credential-manager-extras) ## Gopasspw git-credential-gopass diff --git a/docs/media/audio/pulseaudio.md b/docs/media/audio/pulseaudio.md index bc49b5d..6dbce34 100644 --- a/docs/media/audio/pulseaudio.md +++ b/docs/media/audio/pulseaudio.md @@ -1,41 +1,76 @@ # Pulseaudio +- [Arch wiki: PulseAudio](https://wiki.archlinux.org/title/PulseAudio) +- [Arch wiki: PulseAudio/Examples](https://wiki.archlinux.org/title/PulseAudio/Examples) + ## Usage +Demo sounds: + +- `/usr/share/sounds/freedesktop/stereo/` +- `locate .ogg` + Play (paplay can't play `mp3`): - paplay ~/Audio/examples/Thriller.ogg - paplay /usr/share/sounds/alsa/Front_Center.wav +```sh +paplay /usr/share/sounds/freedesktop/stereo/bell.oga +paplay -d bluez_output.C8_7B_23_9D_AA_8A.1 /usr/share/sounds/freedesktop/stereo/bell.oga +``` + +Show general info about pulseaudio (including default sink/source): + +```sh +pactl info +``` List all configured pulseaudio components (including soundcards): - pactl list +```sh +pactl list +``` + +List available sinks: + +```sh +pactl list short sinks +pactl list sinks # Very verbose +``` + +Configure default sink: + +```sh +pactl set-default-sink bluez_output.C8_7B_23_9D_AA_8A.1 +``` Configure volume: - pactl set-sink-volume 0 +5% - pactl set-sink-volume 0 -5% - pactl set-sink-mute 0 toggle - pactl set-source-mute 1 toggle +```sh +pactl set-sink-volume 0 +5% +pactl set-sink-volume 0 -5% +pactl set-sink-mute 0 toggle +pactl set-source-mute 1 toggle +``` ## Issues ### Device/sink suspended -https://unix.stackexchange.com/a/171925 +<https://unix.stackexchange.com/a/171925> Disable `module-suspend-on-idle` in either `.config/pulse/default.pa` or `/etc/pulse/default.pa`. ## Troubleshooting -https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting +<https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting> Debug output: - systemctl --user stop pulseaudio.socket pulseaudio.service - pulseaudio -v +```sh +systemctl --user stop pulseaudio.socket pulseaudio.service +pulseaudio -v +``` ## Etc -* [How to auto-switch to new connected (i.e. bluetooth) sink](https://askubuntu.com/a/396166) +- [How to auto-switch to new connected (i.e. bluetooth) sink](https://askubuntu.com/a/396166) -- GitLab