backup 2026-09-16

This commit is contained in:
Lucas
2026-09-16 13:39:02 +02:00
parent 659cbf0145
commit 137e743881
12 changed files with 68 additions and 10 deletions

View File

@@ -10,4 +10,5 @@ file:///home/lucas/Nextcloud
file:///home/lucas/Nextcloud2
file:///home/lucas/Nextcloud2/03.%20Associatif/V%C3%A9lo%20Boom%20Boom
file:///home/lucas/Nextcloud2/03.%20Associatif/V%C3%A9lo%20Boom%20Boom/01%20Communication
sftp://lucas@vps-eb9864cc.vps.ovh.net:34567/home/lucas
sftp://lucas@nas.lucasroyer.fr:34567/home/lucas/services/streaming/media Streaming m70s
sftp://lucas@vps-eb9864cc.vps.ovh.net:34567/home/lucas/services VPS1

View File

@@ -14,4 +14,4 @@ gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=0
gtk-application-prefer-dark-theme=1

View File

@@ -35,7 +35,8 @@ hl.env("SDL_VIDEODRIVER", "wayland")
hl.env("CLUTTER_BACKEND", "wayland")
-- Thème
hl.env("GTK_THEME", "Adwaita:dark")
-- hl.env("GTK_THEME", "Adwaita:dark")
hl.env("GTK_THEME", "catppuccin-mocha-mauve-standard+default")
hl.env("QT_STYLE_OVERRIDE", "adwaita-dark")
-- Curseur

View File

@@ -31,7 +31,7 @@ fi
# === 7. Gestion du presse-papiers (cliphist) ===
wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store &
wl-paste --primary --type text --watch cliphist store &
# wl-paste --primary --type text --watch cliphist store &
# === 8. Agent dauthentification Polkit ===
pgrep -x "polkit-kde-authentication-agent-1" >/dev/null || /usr/lib/polkit-kde-authentication-agent-1 &

View File

@@ -36,4 +36,7 @@ monitor_tag = "monitor0"
[fallback_profile]
config_file = "/home/lucas/.config/hyprdynamicmonitors/hyprconfigs/fallback-eco.go.tmpl"
config_file_type = "template"
config_file_type = "template"
[notifications]
disabled = true

View File

@@ -36,4 +36,7 @@ monitor_tag = "monitor0"
[fallback_profile]
config_file = "/home/lucas/.config/hyprdynamicmonitors/hyprconfigs/fallback.go.tmpl"
config_file_type = "template"
config_file_type = "template"
[notifications]
disabled = true

View File

@@ -32,7 +32,7 @@ text/x-shellscript=codium.desktop
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
text/html=codium.desktop;firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
@@ -57,3 +57,5 @@ video/quicktime=mpv.desktop;
text/x-ssa=codium.desktop;org.aegisub.Aegisub.desktop;
text/x-shellscript=codium.desktop;
text/x-python3=codium.desktop;
application/vnd.oasis.opendocument.spreadsheet=com.collaboraoffice.Office.desktop;onlyoffice-desktopeditors.desktop;
image/svg+xml=firefox.desktop;

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Vide l'historique du presse-papiers à l'ouverture de session
[Service]
Type=oneshot
ExecStart=/usr/bin/cliphist wipe
[Install]
WantedBy=default.target

View File

@@ -0,0 +1 @@
/home/lucas/.config/systemd/user/cliphist-wipe.service

View File

@@ -156,6 +156,7 @@ rtpmidid-bin
rustdesk-bin
sane-airscan
sbctl
scrcpy
sddm
sddm-theme-catppuccin-git
seahorse
@@ -193,9 +194,6 @@ waybar
websocat
wget
whois
wine
wine-gecko
wine-mono
wireguard-tools
wl-clipboard
wlogout

2
scripts/scrcpy.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
SDL_VIDEODRIVER=x11 scrcpy --keyboard=uhid

38
scripts/unlock-m70s.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# unlock-m70s.sh — attend que m70s réponde, puis ouvre la session dropbear
set -euo pipefail
HOST="nas.lucasroyer.fr"
PORT="34567"
MAX_WAIT=300
INTERVAL=5
echo "Attente que $HOST:$PORT réponde..."
elapsed=0
until (exec 3<>"/dev/tcp/$HOST/$PORT") 2>/dev/null; do
sleep "$INTERVAL"
elapsed=$((elapsed + INTERVAL))
if [ "$elapsed" -ge "$MAX_WAIT" ]; then
echo "Timeout après ${MAX_WAIT}s — port toujours injoignable."
exit 1
fi
echo " ... toujours en attente (${elapsed}s)"
done
echo "Port ouvert, connexion en cours..."
echo "(la vraie invite apparaîtra juste en dessous si tout va bien — ne tape rien avant)"
ssh -p "$PORT" \
-o HostKeyAlias=m70s-dropbear \
-o StrictHostKeyChecking=accept-new \
-o ConnectTimeout=10 \
-t root@"$HOST"
status=$?
if [ $status -eq 0 ]; then
echo "Session fermée normalement. Si le déverrouillage a réussi, m70s termine son boot."
else
echo "La connexion SSH a échoué (code $status) — la passphrase n'a probablement PAS été demandée."
echo "Ne la retape pas ailleurs. Vérifie l'état de m70s avant de relancer le script."
fi