From 1cbdbaedb99730fa565dc44fa21b1358b246c580 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 18 Sep 2021 17:41:22 +0200 Subject: [PATCH 1/4] add .bin/voc-mount to repo --- .bin/voc-mount | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 .bin/voc-mount diff --git a/.bin/voc-mount b/.bin/voc-mount new file mode 100755 index 0000000..0c37e63 --- /dev/null +++ b/.bin/voc-mount @@ -0,0 +1,24 @@ +#!/bin/bash + +# mount a voc encoder or minion to /video + +device=$1 + +[[ -n "$DEBUG" ]] && set -x +set -euo pipefail + +uid="$(id -u)" + +if [[ -z "$device" ]] +then + echo "Usage: $0 " >&2 + exit 1 +fi + +if ! [[ -d "/video/fuse" ]] +then + sudo mkdir -p "/video/fuse" +fi + +sudo mount -t cifs -o "uid=${uid},password=" "//${device}.lan.c3voc.de/video" "/video" +sudo mount -t cifs -o "uid=${uid},password=" "//${device}.lan.c3voc.de/fuse" "/video/fuse" From e85b5f19a6608ff3fdc66aebe4d0fb1f731cdd7c Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 18 Sep 2021 17:41:55 +0200 Subject: [PATCH 2/4] .bin/backup-and-update-system: more excludes --- .bin/backup-and-update-system | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.bin/backup-and-update-system b/.bin/backup-and-update-system index c28a285..8b9e653 100755 --- a/.bin/backup-and-update-system +++ b/.bin/backup-and-update-system @@ -19,11 +19,11 @@ done --rsync-path="/usr/bin/rsync --fake-super" \ -e "ssh" --delete-excluded \ --exclude "/home/kunsi/.cache/" \ - --exclude "/home/kunsi/.config/Rambox/" \ --exclude "/home/kunsi/.config/Ferdi/" \ + --exclude "/home/kunsi/.config/Rambox/" \ --exclude "/home/kunsi/.local/lib/python*/site-packages/" \ - --exclude "/home/kunsi/.local/share/sddm/" \ --exclude "/home/kunsi/.local/share/TelegramDesktop/tdata/user_data/cache/" \ + --exclude "/home/kunsi/.local/share/sddm/" \ --exclude "/home/kunsi/.mozilla/firefox/*/storage/*" \ --exclude "/home/kunsi/.npm/" \ --exclude "/home/kunsi/.nvm/" \ @@ -31,9 +31,10 @@ done --exclude "/home/kunsi/.ssh/cm-*" \ --exclude "/home/kunsi/.vdirsyncer" \ --exclude "/home/kunsi/Downloads/" \ - --exclude "/home/kunsi/qemu/Windows_10.qcow2" \ --exclude "/home/kunsi/Schreibtisch/" \ --exclude "/home/kunsi/VirtualBox VMs/" \ + --exclude "/home/kunsi/qemu/Windows_10.qcow2" \ + --exclude "/home/kunsi/tmp.*/" \ "/home/kunsi" "kunsi-t470@home.nas":backups/ # Exit code 24 means some files have vanished during rsync. From 6ca9992ff561a5a6411c33c2f173b02eb81fe6ca Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 18 Sep 2021 17:42:45 +0200 Subject: [PATCH 3/4] vim: more stuff --- .vimrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.vimrc b/.vimrc index a87fc1d..24cd979 100644 --- a/.vimrc +++ b/.vimrc @@ -24,5 +24,50 @@ map :nohlsearch set colorcolumn=72,120 hi colorcolumn ctermbg=NONE ctermfg=red cterm=bold guibg=NONE guifg=red gui=bold +" Tab navigation +set showtabline=2 +set tabpagemax=1000 +nmap ä gt +nmap ö gT +nmap Ä :+tabm +nmap Ö :-tabm + au BufRead /tmp/neomutt-* set tw=72 au BufRead /tmp/mutt-* set tw=72 + +" No littering. +if isdirectory('/tmp/vim-' . $USER) == 0 + :silent !install -dm700 /tmp/vim-$USER >/dev/null 2>&1 +endif +set directory=/tmp/vim-$USER// +set nobackup +set nowritebackup +set viminfo="" + + +" Set default file type to text +" https://stackoverflow.com/questions/5487338/vim-set-filetype-txt-for-every-new-file-no-name +autocmd BufEnter * if &filetype == "" | setlocal ft=text | endif + +" X11 clipboard. +fun X11Copy() + silent %w !setsid xclip -selection clipboard +endfun + +fun X11CopyRegister(reg) + let l:ignore = system('setsid xclip -selection clipboard', getreg(a:reg)) +endfun + +fun X11PasteClipboard() + r !xclip -selection clipboard -o +endfun + +fun X11PastePrimary() + r !xclip -o +endfun + +nmap xc :call X11Copy() +vmap xc "xy:call X11CopyRegister('x') +nmap xp :call X11PasteClipboard() +nmap xP :call X11PastePrimary() + From 82bd1013ef104a7c13128b256ab120c49271a7e5 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 18 Sep 2021 17:43:06 +0200 Subject: [PATCH 4/4] various improvements --- .config/fish/config.fish | 2 ++ .config/i3/config | 12 ++++++------ .fehbg | 2 +- .gtkrc-2.0 | 2 +- .ssh/config | 4 ++++ 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 49569cd..ce5167a 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -25,6 +25,8 @@ alias gc='git commit' alias gd='git diff' alias gdc='git diff --cached' alias gm='git checkout main && git pull --all' +alias gp='git push' +alias gpu='git push -u origin HEAD' alias gs='git status --short' set -x BW_ITEM_WORKERS 16 diff --git a/.config/i3/config b/.config/i3/config index b4d9bc1..2c8f466 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,7 +1,7 @@ set $mod Mod4 #font pango:B612 Regular 7 -font pango:DejaVuSans Regular 8 +font pango:DB Office Regular 9 floating_modifier $mod @@ -108,11 +108,11 @@ for_window [class="Gnome-calculator"] floating enable for_window [class="realvnc-vncviewer"] floating enable for_window [class="xiate-floating"] floating enable -workspace 1 output DP2-2 -workspace 2 output DP2-1 -workspace 3 output DP2-2 -workspace 9 output eDP1 -workspace 10 output DP2-1 +workspace $ws1 output DP2-2 +workspace $ws2 output DP2-1 +workspace $ws3 output DP2-2 +workspace $ws9 output eDP1 +workspace $ws10 output DP2-1 exec_always setxkbmap -synch exec_always ~/.fehbg diff --git a/.fehbg b/.fehbg index 94cb072..9b3f00c 100755 --- a/.fehbg +++ b/.fehbg @@ -1,2 +1,2 @@ #!/bin/sh -xsetroot -solid black +feh --no-fehbg --bg-scale '/home/kunsi/Pictures/2021-08-28_The-Treasure_by-David-Revoy.jpg' diff --git a/.gtkrc-2.0 b/.gtkrc-2.0 index 30c53fc..171dc0e 100644 --- a/.gtkrc-2.0 +++ b/.gtkrc-2.0 @@ -1,4 +1,4 @@ -gtk-theme-name="Adwaita-dark" +gtk-theme-name="breeze-dark" gtk-enable-animations=1 diff --git a/.ssh/config b/.ssh/config index 8804a22..2591b72 100755 --- a/.ssh/config +++ b/.ssh/config @@ -5,6 +5,10 @@ Host * Include ~/.ssh/bwnodes +Host luther-netcup + HostName 46.38.249.46 + User sub4632_80 + Host shells HostName shells.entropia.de Port 22