Compare commits
64 Commits
c794518817
...
debian
| Author | SHA1 | Date | |
|---|---|---|---|
| 77cbe83996 | |||
| 73f5fe2e45 | |||
| 977956cc03 | |||
| 9f71c9f636 | |||
| 96ced8ff18 | |||
| edf7f1a1d1 | |||
| 57644311b3 | |||
| 85bae25c2f | |||
| a120d54b30 | |||
| 916faa68fd | |||
| c2bd45267a | |||
| 4c09537776 | |||
| d5ff6f3332 | |||
| 1622b1bd52 | |||
| 334cf5c3e0 | |||
|
|
4dad286d0a | ||
|
|
57e52b78a2 | ||
|
|
685957301d | ||
| bb7fa9ae79 | |||
| 0d9f4cfb25 | |||
| cb88a86e71 | |||
| 96821cf0aa | |||
| 2af9cc20df | |||
| e31b04bdc6 | |||
| 6c5ae8044e | |||
| 634014851c | |||
| 89b17fbc07 | |||
| 6162c2016a | |||
| 82861e7685 | |||
| 77d6ef3708 | |||
| bdfa92f790 | |||
| cc3760347c | |||
|
|
d3d0a4cc5d | ||
|
|
ae2779f48e | ||
| 0d7c1902c1 | |||
| d8e73040bc | |||
| bb09061c3b | |||
| 08fbd0beb9 | |||
| e99b430ce8 | |||
| 1952ece138 | |||
| a50baf801c | |||
| 6fb25215b5 | |||
| 812805ced5 | |||
| 632a0c6741 | |||
| 25065ea703 | |||
| fd9dba9f12 | |||
| 3d740f1c3b | |||
| 647831e860 | |||
| 452fd7600d | |||
| d84d9e6933 | |||
| 12e5c3e2b1 | |||
| 49335145fd | |||
| ec5a09da64 | |||
| bb277234ea | |||
| 2d4027379b | |||
| d59183ad63 | |||
| 2233d47782 | |||
| 1d3d82aa5b | |||
| d6cc45381e | |||
| de22a1668e | |||
| 6c283839fb | |||
| 682dc5f18a | |||
| ea7c081bd4 | |||
| 5881642a40 |
@@ -68,7 +68,7 @@ doUpdateSystem() {
|
|||||||
|
|
||||||
|
|
||||||
updateFlatpak() {
|
updateFlatpak() {
|
||||||
if [[ ! $(commandExists flatpak) ]]; then
|
if ! $(commandExists flatpak); then
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
noconfirm=
|
noconfirm=
|
||||||
@@ -127,7 +127,7 @@ finds () {
|
|||||||
|
|
||||||
# sends a desktop-notification with an icon signalling an error
|
# sends a desktop-notification with an icon signalling an error
|
||||||
notifyError () {
|
notifyError () {
|
||||||
if [[ ! $(commandExists notify-send) ]]; then
|
if ! $(commandExists notify-send); then
|
||||||
echo "ERROR: $1";
|
echo "ERROR: $1";
|
||||||
else
|
else
|
||||||
notify-send "$1" --icon=data-warning;
|
notify-send "$1" --icon=data-warning;
|
||||||
@@ -137,7 +137,7 @@ notifyError () {
|
|||||||
|
|
||||||
# sends a desktop-notification with an icon signalling a simple information
|
# sends a desktop-notification with an icon signalling a simple information
|
||||||
notifyInfo () {
|
notifyInfo () {
|
||||||
if [[ ! $(commandExists notify-send) ]]; then
|
if ! $(commandExists notify-send); then
|
||||||
echo "INFO: $1";
|
echo "INFO: $1";
|
||||||
else
|
else
|
||||||
notify-send "$1" --icon=preferences-desktop-notification;
|
notify-send "$1" --icon=preferences-desktop-notification;
|
||||||
|
|||||||
@@ -4,13 +4,18 @@
|
|||||||
updatePackages() {
|
updatePackages() {
|
||||||
noconfirm=
|
noconfirm=
|
||||||
if [[ $1 == "-y" ]]; then
|
if [[ $1 == "-y" ]]; then
|
||||||
noconfirm="--no-confirm";
|
noconfirm="--assume-yes"
|
||||||
fi
|
fi
|
||||||
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
|
full=
|
||||||
|
if [[ $2 == "--full" ]]; then
|
||||||
|
full="full-"
|
||||||
|
fi
|
||||||
|
executeAndNotify "doUpdatePackages $noconfirm $full" "system updated" "system update failed";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
doUpdatePackages() {
|
doUpdatePackages() {
|
||||||
pamac update $1;
|
sudo apt update;
|
||||||
pamac remove --orphans --cascade $1;
|
sudo apt ${2}upgrade $1;
|
||||||
|
sudo apt autoremove $1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||||
# for examples
|
# for examples
|
||||||
|
|
||||||
set -o pipefail
|
# set -o pipefail
|
||||||
# set -u
|
# set -u
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ set linenumbers
|
|||||||
set matchbrackets "(<[{)>]}"
|
set matchbrackets "(<[{)>]}"
|
||||||
|
|
||||||
## Suppress title bar and show file name and editor state at the bottom.
|
## Suppress title bar and show file name and editor state at the bottom.
|
||||||
set minibar
|
# set minibar
|
||||||
|
|
||||||
## Enable mouse support, if available for your system. When enabled,
|
## Enable mouse support, if available for your system. When enabled,
|
||||||
## mouse clicks can be used to place the cursor, set the mark (with a
|
## mouse clicks can be used to place the cursor, set the mark (with a
|
||||||
|
|||||||
@@ -139,13 +139,13 @@ configuration {
|
|||||||
/* me-select-entry: "MousePrimary";*/
|
/* me-select-entry: "MousePrimary";*/
|
||||||
/* me-accept-entry: "MouseDPrimary";*/
|
/* me-accept-entry: "MouseDPrimary";*/
|
||||||
/* me-accept-custom: "Control+MouseDPrimary";*/
|
/* me-accept-custom: "Control+MouseDPrimary";*/
|
||||||
timeout {
|
/* timeout {
|
||||||
action: "kb-cancel";
|
action: "kb-cancel";
|
||||||
delay: 0;
|
delay: 0;
|
||||||
}
|
}
|
||||||
filebrowser {
|
filebrowser {
|
||||||
directories-first: true;
|
directories-first: true;
|
||||||
sorting-method: "name";
|
sorting-method: "name";
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
@theme "/usr/share/rofi/themes/Arc-Dark.rasi"
|
@theme "/usr/share/rofi/themes/Arc-Dark.rasi"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -32,10 +32,10 @@ backupRootDirectory /etc/docker/daemon.json $BACKUP_DIR_ROOT/docker/
|
|||||||
### upload backup ###
|
### upload backup ###
|
||||||
#####################
|
#####################
|
||||||
|
|
||||||
if [[ "$1" == "--noupload" ]]; then
|
if [[ $# > 0 && "$1" == "--noupload" ]]; then
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
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/
|
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!"
|
echo "Note: remember to keep /citadel in sync!"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ backupDirectory $HOME/.ssh/ $BACKUP_DIR_HOME/.ssh/
|
|||||||
### upload backup ###
|
### upload backup ###
|
||||||
#####################
|
#####################
|
||||||
|
|
||||||
if [[ "$1" == "--noupload" ]]; then
|
if [[ $# > 0 && "$1" == "--noupload" ]]; then
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ upDownContainers() {
|
|||||||
continue;
|
continue;
|
||||||
fi
|
fi
|
||||||
cd $subdir;
|
cd $subdir;
|
||||||
docker-compose $@;
|
docker compose $@;
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ set -euo pipefail
|
|||||||
source /sync/scripts/dockerContainerAction.sh
|
source /sync/scripts/dockerContainerAction.sh
|
||||||
|
|
||||||
# FIXME!!! implement possibility to pass down directory
|
# FIXME!!! implement possibility to pass down directory
|
||||||
upDownContainers down
|
upDownContainers down $@
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ replacements['(']='_';
|
|||||||
replacements[')']='_';
|
replacements[')']='_';
|
||||||
replacements['[']='_';
|
replacements['[']='_';
|
||||||
replacements[']']='_';
|
replacements[']']='_';
|
||||||
|
replacements[',']='_';
|
||||||
while [[ $# > 0 ]]; do
|
while [[ $# > 0 ]]; do
|
||||||
replacements["$1"]="$2";
|
replacements["$1"]="$2";
|
||||||
shift 2;
|
shift 2;
|
||||||
|
|||||||
14
scripts/postTreatmentAudible.sh
Executable file
14
scripts/postTreatmentAudible.sh
Executable 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
|
||||||
@@ -4,4 +4,4 @@ set -euo pipefail
|
|||||||
source /sync/scripts/dockerContainerAction.sh
|
source /sync/scripts/dockerContainerAction.sh
|
||||||
|
|
||||||
# FIXME!!! implement possibility to pass down directory
|
# FIXME!!! implement possibility to pass down directory
|
||||||
upDownContainers pull
|
upDownContainers pull $@
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ map=
|
|||||||
vbr=
|
vbr=
|
||||||
while [[ $# > 0 ]]; do
|
while [[ $# > 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-map) map='-map 0:0'; shift;;
|
-map) map='-map 0:a'; shift;;
|
||||||
-vbr) vbr='aac_at -profile:a aac_he -b:a 64k'; shift;;
|
-vbr) vbr='aac -profile:a aac_he -b:a 64k'; shift;;
|
||||||
* ) break ;; # Anything else stops command line processing.
|
* ) break ;; # Anything else stops command line processing.
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# if no variable bitrate, just copy audio
|
# if no variable bitrate, just copy audio
|
||||||
if [[ -z $vbr ]]; then
|
if [[ -z $vbr ]]; then
|
||||||
map="$map copy"
|
vbr="copy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ensure existence of destination folder
|
# ensure existence of destination folder
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ set -euo pipefail
|
|||||||
source /sync/scripts/dockerContainerAction.sh
|
source /sync/scripts/dockerContainerAction.sh
|
||||||
|
|
||||||
# FIXME!!! implement possibility to pass down directory
|
# FIXME!!! implement possibility to pass down directory
|
||||||
upDownContainers up -d
|
upDownContainers up -d $@
|
||||||
|
|||||||
Reference in New Issue
Block a user