Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .bin/initial-installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ print_log_message $info_color "oh-my-zsh installation initiated..."
0>/dev/null sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
mv "${HOME}/.zshrc.pre-oh-my-zsh" "${HOME}/.zshrc"

# Downloading all git submodules such as waybar-crypto, etc
# Downloading all git submodules such as zsh-autosuggestions, etc...
print_log_message $info_color "submodules update initiated..."
cd "${HOME}" || exit
git submodule update --init --recursive
Expand All @@ -135,6 +135,8 @@ sudo cp "${HOME}/.system-config-backup/tlp/tlp.conf" "/etc/tlp.conf"
sudo cp "${HOME}/.system-config-backup/greetd/config.toml" "/etc/greetd/config.toml"
sudo cp "${HOME}/.system-config-backup/reflector/reflector.conf" "/etc/xdg/reflector/reflector.conf"
sudo cp "${HOME}/.system-config-backup/systemd/resolved.conf" "/etc/systemd/resolved.conf"
sudo mkdir "/etc/security/limits.d/"
sudo cp "${HOME}/.system-config-backup/audio/audio.conf" "/etc/security/limits.d/audio.conf"
print_log_message $success_color "system configs has been copied."

chsh -s /usr/bin/zsh celtic
Expand All @@ -143,7 +145,10 @@ curl -o .config/OpenRGB/plugins/effects.so https://openrgb.org/releases/plugins/

# Start some daemons
print_log_message $info_color "enable the necessary services..."
systemctl enable --now tlp.service
systemctl enable --now greetd.service
systemctl enable --now swayosd-libinput-backend.service
systemctl enable --now reflector.service
systemctl enable transmission.service
systemctl enable tlp.service
systemctl enable greetd.service
systemctl enable swayosd-libinput-backend.service
systemctl enable reflector.service

print_log_message $success_color "system installation successfully completed. Please, reboot your computer."
87 changes: 87 additions & 0 deletions .bin/webcam-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/bin/bash
# Creative Live! Cam Sync V3 - Optimized Configuration
# Based on actual available controls

DEVICE="/dev/video0"

echo "Configuring Creative Live! Cam Sync V3..."

# Set resolution to 1080p @ 30fps
v4l2-ctl -d $DEVICE --set-fmt-video=width=1920,height=1080,pixelformat=MJPG
v4l2-ctl -d $DEVICE --set-parm=30

# Basic Image Controls
# brightness: -64 to 64 (default: 3)
# Setting to 10-15 for slightly brighter image in typical indoor lighting
v4l2-ctl -d $DEVICE --set-ctrl=brightness=12

# contrast: 0 to 64 (default: 38)
# Setting to 42 for slightly more punch
v4l2-ctl -d $DEVICE --set-ctrl=contrast=42

# saturation: 0 to 128 (default: 64)
# Setting to 75 for more vivid colors without oversaturation
v4l2-ctl -d $DEVICE --set-ctrl=saturation=75

# hue: -40 to 40 (default: 0)
# Keep at 0 for accurate colors
v4l2-ctl -d $DEVICE --set-ctrl=hue=0

# gamma: 72 to 500 (default: 100)
# Keep at 100 for natural look
v4l2-ctl -d $DEVICE --set-ctrl=gamma=100

# gain: 0 to 100 (default: 0)
# Set to 10 for low-light improvement without too much noise
# Use 0 if you have good lighting, increase to 15-20 for dim rooms
v4l2-ctl -d $DEVICE --set-ctrl=gain=10

# sharpness: 0 to 6 (default: 3)
# Setting to 4 for slightly crisper image
v4l2-ctl -d $DEVICE --set-ctrl=sharpness=4

# backlight_compensation: 0 to 8 (default: 4)
# Increase if you have bright window behind you
# Decrease if you have good front lighting
v4l2-ctl -d $DEVICE --set-ctrl=backlight_compensation=4

# White Balance Configuration
# First, disable auto white balance to set manual temperature
v4l2-ctl -d $DEVICE --set-ctrl=white_balance_automatic=0

# white_balance_temperature: 2800 to 6500 (default: 4600)
# 2800-3200: Warm tungsten/incandescent lights
# 3500-4000: Mixed indoor lighting (RECOMMENDED for most)
# 4600-5000: Neutral indoor
# 5500-6500: Daylight/cool white LED
v4l2-ctl -d $DEVICE --set-ctrl=white_balance_temperature=3800

# Exposure Configuration
# auto_exposure: 0=Manual, 1=Auto, 3=Aperture Priority (default: 3)
# Setting to Manual (1) for consistent exposure
v4l2-ctl -d $DEVICE --set-ctrl=auto_exposure=1

# exposure_time_absolute: 1 to 5000 (default: 157)
# Lower = brighter but may blur with movement
# Higher = darker but sharper with movement
# 157 is default (good starting point)
# Adjust based on your lighting:
# - Good lighting: 100-150
# - Normal lighting: 150-250 (RECOMMENDED)
# - Dim lighting: 250-400
v4l2-ctl -d $DEVICE --set-ctrl=exposure_time_absolute=200

# exposure_dynamic_framerate: Keep disabled for consistent 30fps
v4l2-ctl -d $DEVICE --set-ctrl=exposure_dynamic_framerate=0

# power_line_frequency: 0=Disabled, 1=50Hz, 2=60Hz
# Set based on your region:
# - Europe/most of world: 50 Hz (1)
# - Americas/some Asia: 60 Hz (2)
# This prevents flickering from artificial lights
v4l2-ctl -d $DEVICE --set-ctrl=power_line_frequency=1

echo "Camera configuration complete!"
echo ""
echo "Current settings:"
v4l2-ctl -d $DEVICE --all | grep -A 1 "brightness\|contrast\|saturation\|sharpness\|exposure\|white_balance"
Loading
Loading