main 6af0a61

snapper.sh RawHistoryFolder

1#!/bin/bash
2# Post-boot: Configure snapper (requires D-Bus)
3
4# Create snapper configs if they don't exist
5if ! snapper list-configs 2>/dev/null | grep -q "root"; then
6  snapper -c root create-config /
7  echo "Created snapper config: root"
8fi
9
10if ! snapper list-configs 2>/dev/null | grep -q "home"; then
11  snapper -c home create-config /home
12  echo "Created snapper config: home"
13fi
14
15# Configure timeline snapshots for root: 1 hourly, 1 daily, 1 weekly, 1 monthly, 0 yearly
16snapper -c root set-config "TIMELINE_CREATE=yes"
17snapper -c root set-config "TIMELINE_LIMIT_HOURLY=1"
18snapper -c root set-config "TIMELINE_LIMIT_DAILY=1"
19snapper -c root set-config "TIMELINE_LIMIT_WEEKLY=1"
20snapper -c root set-config "TIMELINE_LIMIT_MONTHLY=1"
21snapper -c root set-config "TIMELINE_LIMIT_YEARLY=0"
22snapper -c root set-config "NUMBER_LIMIT=5"
23snapper -c root set-config "NUMBER_LIMIT_IMPORTANT=5"
24
25# Disable timeline for home (less critical)
26snapper -c home set-config "TIMELINE_CREATE=no"
27snapper -c home set-config "NUMBER_LIMIT=5"
28snapper -c home set-config "NUMBER_LIMIT_IMPORTANT=5"
29
30# Enable snapper timers
31systemctl enable --now snapper-timeline.timer
32systemctl enable --now snapper-cleanup.timer
33
34echo "Configured snapper timeline (1h/1d/1w/1m) with snap-pac enabled"

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close