Replace alacritty with kitty, add squeezelite config
This commit is contained in:
@@ -1,78 +0,0 @@
|
||||
#+TITLE: Alacritty Configuration
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args+ :comments none
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/alacritty/alacritty.toml
|
||||
|
||||
* Fonts
|
||||
#+begin_src conf
|
||||
[font]
|
||||
size = 10.0
|
||||
|
||||
[font.bold]
|
||||
family = "SauceCodePro NFM"
|
||||
style = "Bold"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "SauceCodePro NFM"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.italic]
|
||||
family = "SauceCodePro NFM"
|
||||
style = "Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "SauceCodePro NFM"
|
||||
style = "Regular"
|
||||
#+end_src
|
||||
|
||||
* Colors
|
||||
#+begin_src conf
|
||||
[colors.bright]
|
||||
black = "#928374"
|
||||
blue = "#83a598"
|
||||
cyan = "#8ec07c"
|
||||
green = "#b8bb26"
|
||||
magenta = "#d3869b"
|
||||
red = "#fb4934"
|
||||
white = "#ebdbb2"
|
||||
yellow = "#fabd2f"
|
||||
|
||||
[colors.cursor]
|
||||
cursor = "CellForeground"
|
||||
text = "CellBackground"
|
||||
|
||||
[colors.dim]
|
||||
black = "#32302f"
|
||||
blue = "#076678"
|
||||
cyan = "#427b58"
|
||||
green = "#79740e"
|
||||
magenta = "#8f3f71"
|
||||
red = "#9d0006"
|
||||
white = "#928374"
|
||||
yellow = "#b57614"
|
||||
|
||||
[colors.normal]
|
||||
black = "#32302f"
|
||||
blue = "#458588"
|
||||
cyan = "#689d6a"
|
||||
green = "#98971a"
|
||||
magenta = "#b16286"
|
||||
red = "#cc241d"
|
||||
white = "#a89984"
|
||||
yellow = "#d79921"
|
||||
|
||||
[colors.primary]
|
||||
background = "#32302f"
|
||||
bright_foreground = "#f9f5d7"
|
||||
dim_foreground = "#f2e5bc"
|
||||
foreground = "#fbf1c7"
|
||||
|
||||
[colors.selection]
|
||||
background = "CellForeground"
|
||||
text = "CellBackground"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
cursor = "CellForeground"
|
||||
text = "CellBackground"
|
||||
#+end_src
|
||||
78
kitty.org
Normal file
78
kitty.org
Normal file
@@ -0,0 +1,78 @@
|
||||
#+title: Kitty
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :tangle ~/.config/kitty/kitty.conf
|
||||
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
||||
|
||||
* Colors
|
||||
#+begin_src conf
|
||||
# Based on https://github.com/morhetz/gruvbox by morhetz <morhetz@gmail.com>
|
||||
# Adapted to kitty by wdomitrz <witekdomitrz@gmail.com>
|
||||
|
||||
cursor #928374
|
||||
cursor_text_color background
|
||||
|
||||
url_color #83a598
|
||||
|
||||
visual_bell_color #8ec07c
|
||||
bell_border_color #8ec07c
|
||||
|
||||
active_border_color #d3869b
|
||||
inactive_border_color #665c54
|
||||
|
||||
foreground #ebdbb2
|
||||
background #32302f
|
||||
selection_foreground #928374
|
||||
selection_background #ebdbb2
|
||||
|
||||
active_tab_foreground #fbf1c7
|
||||
active_tab_background #665c54
|
||||
inactive_tab_foreground #a89984
|
||||
inactive_tab_background #3c3836
|
||||
|
||||
# black (bg3/bg4)
|
||||
color0 #665c54
|
||||
color8 #7c6f64
|
||||
|
||||
# red
|
||||
color1 #cc241d
|
||||
color9 #fb4934
|
||||
|
||||
#: green
|
||||
color2 #98971a
|
||||
color10 #b8bb26
|
||||
|
||||
# yellow
|
||||
color3 #d79921
|
||||
color11 #fabd2f
|
||||
|
||||
# blue
|
||||
color4 #458588
|
||||
color12 #83a598
|
||||
|
||||
# purple
|
||||
color5 #b16286
|
||||
color13 #d3869b
|
||||
|
||||
# aqua
|
||||
color6 #689d6a
|
||||
color14 #8ec07c
|
||||
|
||||
# white (fg4/fg3)
|
||||
color7 #a89984
|
||||
color15 #bdae93
|
||||
#+end_src
|
||||
|
||||
* Fonts
|
||||
#+begin_src conf
|
||||
font_family family="SauceCodePro Nerd Font Mono"
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
|
||||
font_size 10.0
|
||||
#+end_src
|
||||
|
||||
* Other configs
|
||||
#+begin_src conf
|
||||
confirm_os_window_close 0
|
||||
#+end_src
|
||||
126
squeezelite.org
Normal file
126
squeezelite.org
Normal file
@@ -0,0 +1,126 @@
|
||||
#+title: Squeezelite
|
||||
|
||||
* Installation
|
||||
|
||||
Install OS: Raspberry Pi OS Lite (Debian GNU/Linux 12: bookworm)
|
||||
|
||||
Setup SSH Authentication
|
||||
#+begin_src bash :eval no
|
||||
# On Raspberry Pi
|
||||
ssh-keygen -t ed25519 -f ~/.ssh/lms_tunnel -N ""
|
||||
cat ~/.ssh/lms_tunnel.pub
|
||||
#+end_src
|
||||
|
||||
Copy the public key on =homelab=
|
||||
|
||||
Change =.ssh/config=
|
||||
#+begin_src conf
|
||||
Host homelab
|
||||
hostname 82.66.44.13
|
||||
Port 22
|
||||
user thomas
|
||||
IdentityFile ~/.ssh/lms_tunnel
|
||||
#+end_src
|
||||
|
||||
Test the SSH connection:
|
||||
#+begin_src bash :eval no
|
||||
ssh homelab
|
||||
#+end_src
|
||||
|
||||
Install packages:
|
||||
#+begin_src bash :eval no
|
||||
sudo apt update
|
||||
sudo apt install autossh avahi-daemon
|
||||
#+end_src
|
||||
|
||||
Create service: =/etc/systemd/system/lms-tunnel.service=
|
||||
#+begin_src conf
|
||||
[Unit]
|
||||
Description=LMS SSH Tunnel
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=pi
|
||||
ExecStart=/usr/bin/autossh -M 0 -N \
|
||||
-o "ServerAliveInterval 30" \
|
||||
-o "ServerAliveCountMax 3" \
|
||||
-o "ExitOnForwardFailure yes" \
|
||||
-o "IdentitiesOnly yes" \
|
||||
-o "TCPKeepAlive yes" \
|
||||
-o "Compression yes" \
|
||||
-i /home/pi/.ssh/lms_tunnel \
|
||||
-L 0.0.0.0:9000:localhost:9000 \
|
||||
-L 0.0.0.0:3483:localhost:3483 \
|
||||
-L 0.0.0.0:9090:localhost:9090 \
|
||||
thomas@82.66.44.13
|
||||
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
#+end_src
|
||||
|
||||
Enable the service: =sudo systemctl enable --now lms-tunnel.service=
|
||||
|
||||
Set Up Avahi for LMS Service Discovery: =/etc/avahi/services/squeezebox.service=
|
||||
#+begin_src conf
|
||||
<?xml version="1.0" standalone='no'?>
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name>Logitech Media Server</name>
|
||||
<service>
|
||||
<type>_slimdevices._tcp</type>
|
||||
<port>3483</port>
|
||||
</service>
|
||||
</service-group>
|
||||
#+end_src
|
||||
|
||||
Restart Avahi: =sudo systemctl restart avahi-daemon=.
|
||||
|
||||
#+begin_src bash :eval no
|
||||
# Check tunnel status
|
||||
sudo systemctl status lms-tunnel.service
|
||||
|
||||
# Check if ports are being forwarded
|
||||
sudo netstat -tulpn | grep -E '9000|3483|9090'
|
||||
#+end_src
|
||||
|
||||
Troubleshooting: =sudo systemctl status lms-tunnel.service=
|
||||
|
||||
Create the service for Holo Player service: =/etc/systemd/system/holo-audio-player.service=
|
||||
#+begin_src yaml
|
||||
[Unit]
|
||||
Description=Holo Audio DAC Squeezebox Player
|
||||
After=network-online.target sound.target lms-tunnel.service
|
||||
Wants=network-online.target
|
||||
Requires=lms-tunnel.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/usr/bin/squeezelite \
|
||||
-o plughw:CARD=Enhanc,DEV=0 \
|
||||
-s localhost \
|
||||
-n HoloAudioDAC \
|
||||
-a 2000:4:24:1 \
|
||||
-b 4096:8192 \
|
||||
-r 44100,48000,96000,192000 \
|
||||
-p 55 \
|
||||
-C 5 \
|
||||
-d all=info \
|
||||
-f /var/log/squeezelite.log
|
||||
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
Nice=-10
|
||||
LimitRTPRIO=99
|
||||
LimitMEMLOCK=infinity
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
#+end_src
|
||||
|
||||
=sudo systemctl enable --now holo-audio-player.service=
|
||||
|
||||
To see the logs in real time: =tail -f /var/log/squeezelite.log=
|
||||
Reference in New Issue
Block a user