Compare commits

...
2 Commits
Author SHA1 Message Date
mathias2784 7302e87fa3 noctalia config 2026-10-15 11:28:18 +01:00
mathias2784 4434feed16 skripte 2026-10-15 10:24:18 +01:00
2 changed files with 172 additions and 40 deletions
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
set -Eeuo pipefail
SERVER="buntes-monster"
SERVER_IP="192.168.0.4"
MOUNTS=(
"/mnt/anbau:/mnt/anbau"
"/mnt/bilder:/mnt/bilder"
)
# Re-run as root when needed.
if [[ "${EUID}" -ne 0 ]]; then
exec sudo "$0" "$@"
fi
# Preserve ownership for the user who invoked sudo.
OWNER="${SUDO_USER:-${USER}}"
OWNER_UID="$(id -u "$OWNER")"
OWNER_GID="$(id -g "$OWNER")"
for entry in "${MOUNTS[@]}"; do
IFS=":" read -r remote_path local_path <<< "$entry"
# Create the mount point if necessary and give it to the invoking user.
install -d \
-o "$OWNER_UID" \
-g "$OWNER_GID" \
-m 0755 \
"$local_path"
# Do not remount an already-mounted location.
if mountpoint -q "$local_path"; then
echo "Already mounted: $local_path"
continue
fi
echo "Mounting $SERVER:$remote_path at $local_path..."
mount \
-t nfs \
-o rw,sync,addr="$SERVER_IP" \
"$SERVER:$remote_path" \
"$local_path"
echo "Mounted: $local_path"
done
+125 -40
View File
@@ -1,68 +1,153 @@
# Portable Noctalia config — generated by noctalia-sync-from-gui.sh.
# Validate with: noctalia config validate ~/.config/noctalia/config.toml
[bar.default]
background_opacity = 0.52
capsule = false
center = []
end = []
background_opacity = 0.50999998860061169
capsule = true
center = [ "session", "launcher", "control-center", "wallpaper" ]
end = [
"tray",
"notifications",
"network",
"bluetooth",
"volume",
"brightness",
"temp",
"cpu",
"sysmon",
"battery",
"clock"
]
margin_ends = 0
panel_overlap = 0
position = "bottom"
radius = 0
start = []
start = [ "workspaces", "media" ]
thickness = 28
[desktop_widgets]
enabled = false
schema_version = 2
widget_order = []
[desktop_widgets.grid]
cell_size = 16
major_interval = 4
visible = true
[desktop_widgets.widget]
[dock]
background_opacity = 0.68
background_opacity = 0.67999998480081558
[idle]
behavior_order = [ "backlight-dim", "kbd-off", "lock", "screen-off", "suspend" ]
[idle.behavior.backlight-dim]
action = "command"
command = "brightnessctl -s set 10"
enabled = true
resume_command = "brightnessctl -r"
timeout = 300.0
[idle.behavior.kbd-off]
action = "command"
command = "brightnessctl -sd rgb:kbd_backlight set 0"
enabled = true
resume_command = "brightnessctl -rd rgb:kbd_backlight"
timeout = 300.0
[idle.behavior.lock]
action = "lock"
enabled = true
timeout = 900.0
[idle.behavior.screen-off]
action = "screen_off"
enabled = false
timeout = 1800.0
[idle.behavior.suspend]
action = "lock_and_suspend"
enabled = true
timeout = 2700.0
[keybinds]
down = [ "Down", "Ctrl+j" ]
left = [ "Left", "Ctrl+h" ]
right = [ "Right", "Ctrl+l" ]
up = [ "Up", "Ctrl+k" ]
[location]
auto_locate = true
[lockscreen_widgets]
enabled = false
schema_version = 2
widget_order = [ "lockscreen-login-box@eDP-1" ]
[lockscreen_widgets.grid]
cell_size = 16
major_interval = 4
visible = true
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1"]
box_height = 196.0
box_width = 810.0
cx = 960.0
cy = 898.0
output = "eDP-1"
placement_height = 1080.0
placement_width = 1920.0
rotation = 0.0
type = "login_box"
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1".settings]
background_color = "surface_variant"
background_opacity = 0.88
background_radius = 12.0
center_password_text = false
input_opacity = 1.0
input_radius = 6.0
layout = "regular"
show_caps_lock = true
show_keyboard_layout = true
show_login_button = true
show_media = true
show_session_buttons = true
show_unlock_hint = true
show_weather = true
[shell]
font_family = "JetBrainsMono Nerd Font Mono"
telemetry_enabled = true
[shell.panel]
launcher_placement = "attached"
transparency_mode = "glass"
[shell.panel]
launcher_placement = "attached"
transparency_mode = "glass"
[theme]
mode = "dark"
builtin = "Catppuccin"
mode = "dark"
[theme.templates]
enable_builtin_templates = true
builtin_ids = []
[theme.templates]
builtin_ids = [ "gtk3", "gtk4", "hyprland", "kitty" ]
enable_builtin_templates = true
[wallpaper]
directory = ""
directory = "/home/mathias/nextcloud/Photos/Wallpapers"
[idle]
behavior_order = ["backlight-dim", "kbd-off", "lock", "screen-off", "suspend"]
[wallpaper.default]
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
[idle.behavior.backlight-dim]
timeout = 300
action = "command"
command = "brightnessctl -s set 10"
resume_command = "brightnessctl -r"
[wallpaper.last]
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
[idle.behavior.kbd-off]
timeout = 300
action = "command"
# This ThinkPad exposes the keyboard backlight as tpacpi::kbd_backlight;
# the previous rgb:kbd_backlight matched no device and errored out silently.
command = "brightnessctl -sd tpacpi::kbd_backlight set 0"
resume_command = "brightnessctl -rd tpacpi::kbd_backlight"
[wallpaper.monitors.eDP-1]
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
[idle.behavior.lock]
timeout = 900
action = "lock"
[widget.clock]
format = "{:%Y-%m-%d|%H:%M}"
[idle.behavior.screen-off]
timeout = 1800
action = "screen_off"
[widget.network]
show_label = false
[idle.behavior.suspend]
timeout = 2700
action = "lock_and_suspend"
[widget.sysmon]
stat = "gpu_usage"