Compare commits

..

42 Commits

Author SHA1 Message Date
77cbe83996 Merge branch 'master' into debian 2025-11-20 21:29:42 +01:00
73f5fe2e45 fixed commandExists 2025-11-20 21:28:53 +01:00
977956cc03 Merge branch 'debian' of git.szimnau.de:fabian/sync into debian 2025-11-19 21:04:53 +01:00
9f71c9f636 Merge branch 'master' into debian 2025-11-19 21:03:09 +01:00
96ced8ff18 script for editing audible audio books post decrypt 2025-11-19 21:02:35 +01:00
edf7f1a1d1 - improved map, vbr flags 2025-11-19 21:02:03 +01:00
57644311b3 pass down arguments 2025-11-19 21:00:59 +01:00
85bae25c2f added escape replacement 2025-11-19 21:00:35 +01:00
a120d54b30 updated backup scripts 2025-11-19 20:59:53 +01:00
916faa68fd dont quit the tty upon failure 2025-11-19 20:59:08 +01:00
c2bd45267a Revert "- removed debug ouptut"
This reverts commit 4c09537776.
2025-11-19 20:57:16 +01:00
4c09537776 - removed debug ouptut
- only execute certain code when the accompanying command exists
2025-11-19 20:54:18 +01:00
d5ff6f3332 Merge branch 'master' of ssh://git.szimnau.de:222/fabian/sync 2025-11-19 20:45:03 +01:00
1622b1bd52 removed redundant file 2025-11-19 20:44:12 +01:00
334cf5c3e0 Merge branch 'debian' of git.szimnau.de:fabian/sync into debian 2025-11-19 20:35:13 +01:00
SZIMNAU
c794518817 - added helper method to look up wether a command exists
- avoid calling flatpak or notify-send if not installed
2025-11-05 14:06:40 +01:00
6c5ae8044e Merge branch 'debian' of git.szimnau.de:fabian/sync into debian 2025-05-03 13:07:34 +02:00
bdfa92f790 Merge branch 'debian' of git.szimnau.de:fabian/sync into debian 2024-09-01 14:49:26 +02:00
cc3760347c fixed prints 2024-09-01 14:49:14 +02:00
6fb25215b5 Merge remote-tracking branch 'origin/master' into debian 2023-08-20 17:32:10 +02:00
812805ced5 Merge remote-tracking branch 'origin/master' into debian 2023-08-20 14:49:40 +02:00
632a0c6741 Merge remote-tracking branch 'origin/master' into debian 2023-07-30 09:56:57 +02:00
25065ea703 Merge remote-tracking branch 'origin/master' into debian 2023-07-06 15:39:29 +02:00
fd9dba9f12 Merge remote-tracking branch 'origin/master' into debian 2023-07-06 13:00:17 +02:00
3d740f1c3b Merge branch 'master' into debian 2023-06-02 16:03:05 +02:00
647831e860 improved automatic updates via executeAndNotify to enable fire-and-forget 2023-06-02 15:57:57 +02:00
452fd7600d new function to update debian based systems 2023-05-31 10:55:35 +02:00
d84d9e6933 Merge branch 'debian' of ssh://git.szimnau.de:222/fabian/sync into debian 2023-05-31 10:42:56 +02:00
12e5c3e2b1 - commented out options not working in ancient debian version 2023-05-31 10:42:41 +02:00
49335145fd Revert "Revert "old raspi version of nanorc cannot handle certain settings""
This reverts commit 844fe85d6d.
2023-05-31 10:42:41 +02:00
ec5a09da64 Merge remote-tracking branch 'origin/master' into debian 2023-05-27 18:14:45 +02:00
bb277234ea Merge branch 'master' into debian 2023-05-19 18:34:17 +02:00
2d4027379b Merge branch 'master' into debian 2023-05-19 15:14:21 +02:00
d59183ad63 Merge branch 'master' into debian 2023-05-14 12:50:49 +02:00
2233d47782 Merge remote-tracking branch 'origin/master' into debian 2023-05-14 12:20:09 +02:00
1d3d82aa5b Merge branch 'debian' of git.szimnau.de:fabian/sync into debian 2023-05-14 12:19:05 +02:00
d6cc45381e - commented out options not working in ancient debian version 2023-05-14 12:18:13 +02:00
de22a1668e Merge remote-tracking branch 'origin/master' into debian 2023-05-06 15:19:37 +02:00
6c283839fb Merge remote-tracking branch 'origin/master' into debian 2023-05-06 06:10:23 +02:00
682dc5f18a Merge remote-tracking branch 'origin/master' into debian 2023-05-06 05:45:19 +02:00
ea7c081bd4 Merge remote-tracking branch 'origin/master' into debian 2023-05-06 04:57:15 +02:00
5881642a40 Revert "Revert "old raspi version of nanorc cannot handle certain settings""
This reverts commit 844fe85d6d.
2023-05-06 04:11:17 +02:00
11 changed files with 43 additions and 128 deletions

View File

@@ -40,6 +40,11 @@ alias dirsizes='du -kh --apparent-size --max-depth=1 | sort -hr'
alias start_x11_vnc="x11vnc -many -display :0 -no6 -rfbport 5900 -auth /var/run/lightdm/root/:0 -rfbauth $HOME/.vnc/passwd"
commandExists() {
type $1 2>&1 > /dev/null
}
rsyncLink() {
source=$1;
linkSource="$(realpath $source)";
@@ -63,6 +68,9 @@ doUpdateSystem() {
updateFlatpak() {
if ! $(commandExists flatpak); then
return 1;
fi
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--assumeyes";
@@ -119,11 +127,19 @@ finds () {
# sends a desktop-notification with an icon signalling an error
notifyError () {
if ! $(commandExists notify-send); then
echo "ERROR: $1";
else
notify-send "$1" --icon=data-warning;
fi
}
# sends a desktop-notification with an icon signalling a simple information
notifyInfo () {
if ! $(commandExists notify-send); then
echo "INFO: $1";
else
notify-send "$1" --icon=preferences-desktop-notification;
fi
}

View File

@@ -2,7 +2,7 @@
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
set -o pipefail
# set -o pipefail
# set -u
# If not running interactively, don't do anything

View File

@@ -1,116 +0,0 @@
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local act = wezterm.action
local mux = wezterm.mux
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = 'AdventureTime'
-- config.font = wezterm.font 'JetBrains Mono' -- also the default
config.font = wezterm.font 'Fira Code'
config.font_size = 12.0 -- also the default
-- Spawn a git bash shell
config.default_prog = { 'C:/Program Files/Git/bin/bash.exe' , '--cd-to-home' }
-- cursor shape and behaviour
config.default_cursor_style = 'BlinkingBar'
config.animation_fps = 1
config.cursor_blink_ease_in = 'Constant'
config.cursor_blink_ease_out = 'Constant'
config.enable_kitty_keyboard = true
-- window appearance
config.enable_scroll_bar = true
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
-- config.initial_rows = 50;
--[[wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
-- Create a split occupying the right 1/3 of the screen
local loading_bar_pane = pane:split {
direction = 'Bottom',
size = 0.06,
}
-- go to JavaUtils-Directory and prepare command
loading_bar_pane:send_text 'cd JavaUtils/zeitlaeufer/target\njava de.szimnau.WorkLoadingBar'
-- optionally: clear before preparing command
-- loading_bar_pane:send_text 'cd JavaUtils/zeitlaeufer/target\nc\njava de.szimnau.WorkLoadingBar'
end)]]
config.keys = {
-- This will create a new horizontal split and run your default program inside it
{
key = 'E',
mods = 'CTRL|SHIFT',
action = act.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
-- This will create a new vertical split and run your default program inside it
{
key = 'O',
mods = 'CTRL|SHIFT',
action = act.SplitVertical { domain = 'CurrentPaneDomain' },
},
-- resize the current split
{
key = 'UpArrow',
mods = 'CTRL|SHIFT',
action = act.AdjustPaneSize { 'Up', 1 },
},
{
key = 'DownArrow',
mods = 'CTRL|SHIFT',
action = act.AdjustPaneSize { 'Down', 1 },
},
{
key = 'LeftArrow',
mods = 'CTRL|SHIFT',
action = act.AdjustPaneSize { 'Left', 1 }
},
{
key = 'RightArrow',
mods = 'CTRL|SHIFT',
action = act.AdjustPaneSize { 'Right', 1 },
},
-- move around the splits
{
key = 'UpArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Up',
},
{
key = 'DownArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Down',
},
{
key = 'LeftArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Left',
},
{
key = 'RightArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Right',
},
-- makes pane take up all available space in the tab, hiding all other panes
{
key = 'X',
mods = 'CTRL|SHIFT',
action = wezterm.action.TogglePaneZoomState,
},
}
-- and finally, return the configuration to wezterm
return config

View File

@@ -36,6 +36,6 @@ if [[ $# > 0 && "$1" == "--noupload" ]]; then
exit 0;
fi
sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" --filter="P /home/docker" /sync/backup/ fabian@garrus:/citadel/backup/edi/
sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" /sync/backup/ fabian@garrus:/citadel/backup/edi/
sd rsync_backup -e "ssh -i /home/edi/.ssh/id_ed25519" /home/edi/docker/ fabian@garrus:/citadel/backup/edi/home/docker/
echo "Note: remember to keep /citadel in sync!"

View File

@@ -20,7 +20,7 @@ backupDirectory $HOME/.ssh/ $BACKUP_DIR_HOME/.ssh/
### upload backup ###
#####################
if [[ "$1" == "--noupload" ]]; then
if [[ $# > 0 && "$1" == "--noupload" ]]; then
exit 0;
fi

View File

@@ -4,4 +4,4 @@ set -euo pipefail
source /sync/scripts/dockerContainerAction.sh
# FIXME!!! implement possibility to pass down directory
upDownContainers down
upDownContainers down $@

View File

@@ -13,6 +13,7 @@ replacements['(']='_';
replacements[')']='_';
replacements['[']='_';
replacements[']']='_';
replacements[',']='_';
while [[ $# > 0 ]]; do
replacements["$1"]="$2";
shift 2;

14
scripts/postTreatmentAudible.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
/sync/scripts/escapeFilenames.sh . _
for d in *; do
cd "$d";
/sync/scripts/escapeFilenames.sh Chapter Kapitel
/sync/scripts/reencode_m4a.sh -map;
rm *.m4a;
mv * "../${d}_reencode";
cd ..;
rmdir "$d"
mv "${d}_reencode" "$d";
done

View File

@@ -4,4 +4,4 @@ set -euo pipefail
source /sync/scripts/dockerContainerAction.sh
# FIXME!!! implement possibility to pass down directory
upDownContainers pull
upDownContainers pull $@

View File

@@ -6,15 +6,15 @@ map=
vbr=
while [[ $# > 0 ]]; do
case $1 in
-map) map='-map 0:0'; shift;;
-vbr) vbr='aac_at -profile:a aac_he -b:a 64k'; shift;;
-map) map='-map 0:a'; shift;;
-vbr) vbr='aac -profile:a aac_he -b:a 64k'; shift;;
* ) break ;; # Anything else stops command line processing.
esac
done
# if no variable bitrate, just copy audio
if [[ -z $vbr ]]; then
map="$map copy"
vbr="copy"
fi
# ensure existence of destination folder

View File

@@ -4,4 +4,4 @@ set -euo pipefail
source /sync/scripts/dockerContainerAction.sh
# FIXME!!! implement possibility to pass down directory
upDownContainers up -d
upDownContainers up -d $@