Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7302e87fa3 | ||
|
|
4434feed16 |
Executable
+47
@@ -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
|
||||||
@@ -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]
|
[bar.default]
|
||||||
background_opacity = 0.52
|
background_opacity = 0.50999998860061169
|
||||||
capsule = false
|
capsule = true
|
||||||
center = []
|
center = [ "session", "launcher", "control-center", "wallpaper" ]
|
||||||
end = []
|
end = [
|
||||||
|
"tray",
|
||||||
|
"notifications",
|
||||||
|
"network",
|
||||||
|
"bluetooth",
|
||||||
|
"volume",
|
||||||
|
"brightness",
|
||||||
|
"temp",
|
||||||
|
"cpu",
|
||||||
|
"sysmon",
|
||||||
|
"battery",
|
||||||
|
"clock"
|
||||||
|
]
|
||||||
margin_ends = 0
|
margin_ends = 0
|
||||||
panel_overlap = 0
|
panel_overlap = 0
|
||||||
position = "bottom"
|
position = "bottom"
|
||||||
radius = 0
|
radius = 0
|
||||||
start = []
|
start = [ "workspaces", "media" ]
|
||||||
thickness = 28
|
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]
|
[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]
|
[lockscreen_widgets]
|
||||||
enabled = false
|
enabled = false
|
||||||
schema_version = 2
|
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]
|
[shell]
|
||||||
font_family = "JetBrainsMono Nerd Font Mono"
|
font_family = "JetBrainsMono Nerd Font Mono"
|
||||||
|
telemetry_enabled = true
|
||||||
|
|
||||||
[shell.panel]
|
[shell.panel]
|
||||||
launcher_placement = "attached"
|
launcher_placement = "attached"
|
||||||
transparency_mode = "glass"
|
transparency_mode = "glass"
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
mode = "dark"
|
|
||||||
builtin = "Catppuccin"
|
builtin = "Catppuccin"
|
||||||
|
mode = "dark"
|
||||||
|
|
||||||
[theme.templates]
|
[theme.templates]
|
||||||
enable_builtin_templates = true
|
builtin_ids = [ "gtk3", "gtk4", "hyprland", "kitty" ]
|
||||||
builtin_ids = []
|
enable_builtin_templates = true
|
||||||
|
|
||||||
[wallpaper]
|
[wallpaper]
|
||||||
directory = ""
|
directory = "/home/mathias/nextcloud/Photos/Wallpapers"
|
||||||
|
|
||||||
[idle]
|
[wallpaper.default]
|
||||||
behavior_order = ["backlight-dim", "kbd-off", "lock", "screen-off", "suspend"]
|
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
|
||||||
|
|
||||||
[idle.behavior.backlight-dim]
|
[wallpaper.last]
|
||||||
timeout = 300
|
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
|
||||||
action = "command"
|
|
||||||
command = "brightnessctl -s set 10"
|
|
||||||
resume_command = "brightnessctl -r"
|
|
||||||
|
|
||||||
[idle.behavior.kbd-off]
|
[wallpaper.monitors.eDP-1]
|
||||||
timeout = 300
|
path = "/home/mathias/nextcloud/Photos/Wallpapers/eigen/20180318-4825-Teneriffa_LaPalma-2.jpg"
|
||||||
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"
|
|
||||||
|
|
||||||
[idle.behavior.lock]
|
[widget.clock]
|
||||||
timeout = 900
|
format = "{:%Y-%m-%d|%H:%M}"
|
||||||
action = "lock"
|
|
||||||
|
|
||||||
[idle.behavior.screen-off]
|
[widget.network]
|
||||||
timeout = 1800
|
show_label = false
|
||||||
action = "screen_off"
|
|
||||||
|
|
||||||
[idle.behavior.suspend]
|
[widget.sysmon]
|
||||||
timeout = 2700
|
stat = "gpu_usage"
|
||||||
action = "lock_and_suspend"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user