Compare commits

...

4 Commits

Author SHA1 Message Date
0cfa0e8d9f wip 2026-02-01 18:54:42 +00:00
7be8e842db wip 2026-01-25 23:18:10 +00:00
e8e7803e9e wip 2026-01-25 22:50:28 +00:00
00917f86c0 wip 2026-01-25 22:46:30 +00:00
10 changed files with 52 additions and 97 deletions

View File

@@ -20,13 +20,14 @@ PACKAGES=(
git zip # storage
bc xxd # data processing
gnupg pass pass-otp pwgen # crypt
imv mpv imagemagick gimp # media
imv mpv ffmpeg imagemagick gimp # media
aichat libqalculate translate-shell # utils
libreoffice-still # docs
qutebrowser qt6-wayland # web browsing
hugo miniserve # web utils
neomutt telegram-desktop # communication
transmission-cli # torrents
greetd sway swaybg swayidle # desktop basic
alacritty wmenu i3blocks mako libnotify # terminals, ui

View File

@@ -2,8 +2,8 @@
set -e
sudo rm -rf /tmp/archiso-work /tmp/archiso-out
cd ~/know/archiso
sudo mkarchiso -v -w /tmp/archiso-work -o /tmp/archiso-out "profile-$1"
cd ~/dev
sudo mkarchiso -v -w /tmp/archiso-work -o /tmp/archiso-out ~/dev/archiso-"$1"
iso=(/tmp/archiso-out/*)
sudo dd if="$iso" of="$2" status=progress bs=4M
sudo rm -rf /tmp/archiso-work /tmp/archiso-out

View File

@@ -43,67 +43,15 @@ remote_close() {
echo close done
}
declare -A repos
add_repos_local() {
while IFS= read -r -d $'\0'; do
repo_path="$REPLY"
[ ! -f "$repo_path/HEAD" ] && continue
repo_path="$(realpath "$(dirname "$repo_path")")"
repos["$repo_path"]=1
done < <(find "$@" -type d -name .git -print0)
push_homedir() {
}
add_repos_remote() {
cd "$1"
while IFS= read -r -d $'\0'; do
repo_path="$REPLY"
[ ! -f "$repo_path/HEAD" ] && continue
repo_path="/$(dirname "$repo_path")"
[[ ! " $(groups) " == *" $(echo "$repo_path" | cut -d'/' -f3) "* ]] && continue
repos["$repo_path"]=1
done < <(find "home" -type d -name '*.git' -print0 2>/dev/null)
}
sync_one() {
local_path="$1"
remote_path="$2$1/$(basename "$1").git"
echo "$local_path <-> $remote_path"
remote_url="file:///$remote_path"
if [ ! -d "$local_path" ]; then
mkdir -p "$(dirname "$local_path")"
git clone "$remote_url" "$local_path"
else
cd "$local_path"
git add .
git diff-index --quiet HEAD || git commit -m autocommit || true
if [ ! -d "$remote_path" ]; then
mkdir -p "$(dirname "$remote_path")"
git clone --bare "file:///$1" "$remote_path"
else
git pull "$remote_url"
git push "$remote_url"
fi
fi
}
sync_repos() {
for i in "${!repos[@]}"; do
sync_one "$i" "$1"
sync -f "$1"
done
}
if [[ "$1" = "open" ]]; then
remote_open
exit 0
fi
remote_open
add_repos_remote "$data_mnt"
for g in $(groups); do
[ -d "/home/$g/dev" ] && add_repos_local "/home/$g/dev" -maxdepth 2
[ -d "/home/$g/know" ] && add_repos_local "/home/$g/know" -maxdepth 2
done
sync_repos "$data_mnt"
remote_close
echo ALL OK

View File

@@ -0,0 +1,21 @@
#!/bin/bash
if [ $# -ne 3 ]; then
echo "Usage: $0 <video_file> <subtitle_file> <output_file>"
exit 1
fi
if [ ! -f "$1" ]; then
echo "Error: Video file '$1' not found"
exit 1
fi
if [ ! -f "$2" ]; then
echo "Error: Subtitle file '$2' not found"
exit 1
fi
ext="${3##*.}"
if [ "$ext" = "mp4" ]; then
ffmpeg -i "$1" -i "$2" -c copy -c:s mov_text "$3"
else
ffmpeg -i "$1" -i "$2" -c copy "$3"
fi

View File

@@ -1,3 +1,6 @@
[general]
live_config_reload = false
[bell]
animation = "EaseOutExpo"
duration = 0

View File

@@ -4,7 +4,7 @@
shopt -s autocd
stty intr ^K
stty intr ^N
alias ssh='wssh'
alias sudo='wsudo'

View File

@@ -13,56 +13,36 @@ set keymap vi-insert
"\C-b":backward-char
"\C-f":forward-char
"\eb":backward-word
"\ef":forward-word
"\ef":forward-word
"\C-k": kill-line
"\C-u": unix-line-discard
#################################
##### remap - colemak-dh #######
##### remap - colemak-dh ########
# n -> h
set keymap vi-insert
"\C-n":backward-delete-char
set keymap vi-command
"n":backward-char
"\C-n":backward-char
# e -> k (reverse swap)
set keymap vi-insert
"\C-e":"\C-j"
"n": backward-char
# e -> j
set keymap vi-command
"e":previous-history
"\C-e":kill-line
# i -> j (reverse swap)
#set keymap vi-insert
# "\C-i":accept-line # ascii code conflicts with tab
"e": previous-history
# i -> k
set keymap vi-command
"i":next-history
# "\C-i":accept-line # ascii code conflicts with tab
"i": next-history
# o -> l
set keymap vi-command
"o":forward-char
"\C-o":clear-screen
"o": forward-char
# k -> n
#set keymap vi-insert
#"\C-k":menu-complete # bound to intr, use tab
set keymap vi-command
"k":vi-search-again
"K":vi-search-again
"\C-k":next-history
"k": vi-search-again
# j -> e
set keymap vi-insert
"\C-j":self-insert
set keymap vi-command
"j":vi-end-word
"J":vi-end-word
"j": vi-end-word
# l -> i
set keymap vi-insert
"\C-l":complete
set keymap vi-command
"l":vi-insertion-mode
"L":vi-insert-beg
"l": vi-insertion-mode
# h -> o
set keymap vi-insert
"\C-h":operate-and-get-next
#################################

View File

@@ -46,6 +46,7 @@ bar {
###########################################
################ inputs ####################
mouse_warping container
input "type:keyboard" {
xkb_layout us(yurmak),ru(yurmak)
repeat_rate 50

View File

@@ -58,7 +58,7 @@ autocmd VimEnter * highlight SignColumn ctermbg=none
highlight Title term=bold ctermfg=4 gui=bold
highlight Special term=bold ctermfg=4
highlight PreProc term=underline ctermfg=4
highlight Underlined term=underline cterm=underline ctermfg=4 gui=underline
highlight Underlined term=underline cterm=underline ctermfg=4
" fg blue (4 or 12) -> magenta (5)
highlight SpecialKey term=bold ctermfg=5
highlight Directory term=bold ctermfg=5
@@ -70,7 +70,8 @@ highlight NonText term=bold ctermfg=5 gui=bold
highlight DiffDelete term=bold ctermfg=5 ctermbg=14 gui=bold
highlight Changed ctermfg=5
" bg
highlight SpellCap cterm=underline ctermfg=9 ctermbg=none gui=undercurl
highlight SpellBad term=bold ctermfg=0 ctermbg=9
highlight Search term=bold ctermfg=0 ctermbg=11
"###########################################
"############## file-specific ###############

View File

@@ -1,5 +1,5 @@
[ -f ~/.bashrc ] && . ~/.bashrc
stty intr ^K
stty intr ^N
alias ssh='wssh'
alias sudo='wsudo'
su() {