Compare commits

..

25 Commits

Author SHA1 Message Date
057b0bf93a brew_programs_cask: new version 2025-06-10 19:01:20 +02:00
954138b1ef brew_programs: updated a few things 2025-04-25 19:49:31 +02:00
75f1174ace update-pkg: added wget 2025-04-21 00:01:02 +02:00
c49c8b2a09 gitignore: added .local/bin/tss 2025-04-20 23:59:56 +02:00
d6eadbd7b6 brew_programs_cask: added rustdesk and zed 2025-04-20 23:59:39 +02:00
6cb491d338 brew_programs: added ffmpeg
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2025-04-20 23:59:01 +02:00
2079564fe5 remove-files: youtube-dl AppSupport 2025-04-20 23:57:18 +02:00
b49e7ad83d getting-spotify: added audiobooks 2025-04-16 22:32:36 +02:00
a588a8299e karabinier: upadate configuration file 2025-04-08 23:37:26 +02:00
d21a1a5c07 ffmpeg-resize-sub: added new script 2025-04-08 23:37:01 +02:00
7a519522ca brew_programs_cask: added todoist
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2025-04-05 11:11:39 +02:00
e094e72395 karabinier: changed a default keys for ~ and £ 2025-04-05 11:11:13 +02:00
93d3b4440c zshrc: added Zoxide 2025-03-23 22:16:55 +01:00
f5ded6a5e6 getting-spotify: added a PIANO folder 2025-03-23 22:16:38 +01:00
c9ac5f42ab Update-pkg: fix a misspelt 2025-03-23 22:16:23 +01:00
819de0e9ae mpv: disable always on top 2025-03-23 22:15:30 +01:00
19dcc18963 brew_programs: added iperf3, ranger, zoxide 2025-03-20 21:59:50 +01:00
311e2003b5 gitignore: added local/tss-sdk 2025-03-07 23:49:00 +01:00
cc21679185 notify-program: added new entry for MacOS 2025-03-07 23:48:42 +01:00
f279b82081 browser-x: changed browser to Firefox Nightly 2025-03-07 23:48:27 +01:00
0c8cd8f76a alacritty: changed a keyboard setting 2025-03-05 10:45:55 +01:00
095b489048 vimrc: added a json autoformat 2025-03-05 10:44:17 +01:00
5dd29e237e brew_programs_cask: changed iterm2 to alacritty 2025-03-02 21:07:44 +01:00
c36b53f60c alacritty: changed settings from .yml to .toml 2025-03-02 21:06:56 +01:00
cbbb91f09f streamlink: added default values into a config 2025-02-27 21:32:20 +01:00
19 changed files with 250 additions and 110 deletions

View File

@ -1,82 +0,0 @@
font:
bold:
family: Comic Code
style: Bold
antialias: true
bold_italic:
family: Comic Code
style: Bold Italic
antialias: true
italic:
family: Comic Code
style: Italic
antialias: true
normal:
family: Comic Code
style: Medium
antialias: true
size: 16
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
use_thin_strokes: true
mouse:
hints:
launcher:
program: open
modifiers: Command
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }
- { key: F, mods: Control, action: SearchForward }
- { key: V, mods: Control|Shift, action: Paste }
- { key: Space, mods: Control, chars: "\x00" }
selection:
save_to_clipboard: true
colors:
search:
focused_match:
foreground: "#181818"
background: "#ab4642"
matches:
foreground: "#181818"
background: "#f4bf75"
footer_bar:
background: "#262626"
foreground: "#d0d0d0"
# Default colors
primary:
background: "0x000000"
foreground: "0xffffff"
# Bright colors:
bright:
black: "0x7f7f7f"
blue: "0x5c5cff"
cyan: "0x00ffff"
green: "0x00ff00"
magenta: "0xff00ff"
red: "0xff0000"
white: "0xffffff"
yellow: "0xffff00"
# Normal colors
normal:
black: "0x000000"
blue: "0x0000ee"
cyan: "0x00cdcd"
green: "0x00cd00"
magenta: "0xcd00cd"
red: "0xcd0000"
white: "0xe5e5e5"
yellow: "0xcdcd00"
import:
- C:\Users\marcin.wozniak\AppData\Roaming\alacritty\dracula.yml

View File

@ -3,18 +3,24 @@ coreutils
dockutil
duti
fastfetch
ffmpeg
git
gnu-sed
htop
imagemagick
ipcalc
iperf3
mtr
neovim
newsboat
parallel
pinentry-mac
ranger
ripgrep
rsync
texinfo
tmux
tree
wget
zoxide
zsh

View File

@ -1,6 +1,9 @@
alacritty
akiflow
alfred
chatterino
dbeaver-community
discord
displaylink
docker
firefox@nightly
@ -8,33 +11,28 @@ font-hack-nerd-font
gimp
google-chrome
hiddenbar
iterm2
jordanbaird-ice
karabiner-elements
keepassxc
macfuse
megasync
microsoft-auto-update
microsoft-teams
mongodb-compass
mpv
mysides
obsidian
postman
platypus
postman
qbittorrent
qview
rustdesk
scroll-reverser
signal
skype
spotify
stats
telegram
the-unarchiver
transfer
twingate
visual-studio-code
vlc
winbox
wine-crossover
wireshark
zed@preview

View File

@ -0,0 +1,89 @@
# use_thin_strokes = true
[env]
TERM = "xterm-256color"
[general]
import = ["~/.config/alacritty/dracula.toml"]
[keyboard]
bindings = [
{ key = "F", mods = "Control", action = "SearchForward" },
{ key = "Left", mods = "Alt", chars = "\u001BB" },
{ key = "Return", mods = "Control|Shift", action = "SpawnNewInstance" },
{ key = "Right", mods = "Alt", chars = "\u001BF" },
{ key = "Space", mods = "Control", chars = "\u0000" },
{ key = "V", mods = "Control|Shift", action = "Paste" },
]
[font]
size = 22
[font.normal]
family = "Terminess Nerd Font"
style = "Regular"
# [font.bold]
# family = "Teminess Nerd Font"
# style = "Bold"
[font.bold_italic]
family = "Terminess Nerd Font"
style = "Bold Italic"
[font.italic]
family = "Terminess Nerd Font"
style = "Italic"
[font.glyph_offset]
x = 0
y = 0
# [mouse.hints]
# modifiers = "Command"
# [mouse.hints.launcher]
# program = "open"
[font.offset]
x = 0
y = 0
[selection]
save_to_clipboard = true
# Unused
[colors.bright]
black = "0x7f7f7f"
blue = "0x5c5cff"
cyan = "0x00ffff"
green = "0x00ff00"
magenta = "0xff00ff"
red = "0xff0000"
white = "0xffffff"
yellow = "0xffff00"
[colors.normal]
black = "0x000000"
blue = "0x0000ee"
cyan = "0x00cdcd"
green = "0x00cd00"
magenta = "0xcd00cd"
red = "0xcd0000"
white = "0xe5e5e5"
yellow = "0xcdcd00"
[colors.primary]
background = "0x000000"
foreground = "0xffffff"
[colors.search.focused_match]
background = "#ab4642"
foreground = "#181818"
# [colors.search.footer_bar]
# background = "#262626"
# foreground = "#d0d0d0"
[colors.search.matches]
background = "#f4bf75"
foreground = "#181818"

76
.config/alacritty/dracula.toml Executable file
View File

@ -0,0 +1,76 @@
# Dracula theme for Alacritty
# https://draculatheme.com/alacritty
#
# Color palette
# https://spec.draculatheme.com
#
# Instructions
# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
[colors.primary]
background = "#282a36"
foreground = "#f8f8f2"
bright_foreground = "#ffffff"
[colors.cursor]
text = "#282a36"
cursor = "#f8f8f2"
[colors.vi_mode_cursor]
text = "CellBackground"
cursor = "CellForeground"
[colors.selection]
text = "CellForeground"
background = "#44475a"
[colors.normal]
black = "#21222c"
red = "#ff5555"
green = "#50fa7b"
yellow = "#f1fa8c"
blue = "#bd93f9"
magenta = "#ff79c6"
cyan = "#8be9fd"
white = "#f8f8f2"
[colors.bright]
black = "#6272a4"
red = "#ff6e6e"
green = "#69ff94"
yellow = "#ffffa5"
blue = "#d6acff"
magenta = "#ff92df"
cyan = "#a4ffff"
white = "#ffffff"
[colors.search.matches]
foreground = "#44475a"
background = "#50fa7b"
[colors.search.focused_match]
foreground = "#44475a"
background = "#ffb86c"
[colors.footer_bar]
background = "#282a36"
foreground = "#f8f8f2"
[colors.hints.start]
foreground = "#282a36"
background = "#f1fa8c"
[colors.hints.end]
foreground = "#f1fa8c"
background = "#282a36"

View File

@ -1 +0,0 @@
/Users/yorune/Library/Application Support/iTerm2

View File

@ -256,6 +256,14 @@
{
"from": { "consumer_key_code": "eject" },
"to": [{ "consumer_key_code": "al_terminal_lock_or_screensaver" }]
},
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
},
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
@ -395,10 +403,6 @@
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
},
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "right_command" }]

View File

@ -14,7 +14,7 @@ keep-open=yes
# Always save the current playback position on exit
save-position-on-quit=yes
ontop=yes
# ontop=yes
# Geometry settings
geometry=50%:50%

View File

@ -642,6 +642,9 @@ autocmd BufRead,BufNewFile *.yaml,*.yml let g:indentLine_char = '⦙'
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
autocmd BufWritePre *.yaml,*.yml silent! undojoin | Neoformat prettier
" JSON
autocmd BufWritePre *.json silent! undojoin | Neoformat prettier
" GoLang
autocmd BufRead *.go set noexpandtab
autocmd BufWritePre *.go lua go_org_imports()

View File

@ -1,5 +1,12 @@
default-stream "1080p60,1080p,720p60,720p"
default-stream best
hls-live-edge 2
hls-segment-stream-data
player-no-close
player=mpv
retry-max 100
retry-open 10
retry-streams 10
stream-segment-threads=4
twitch-disable-ads
twitch-low-latency
default-stream best
player-no-close

2
.gitignore vendored
View File

@ -278,3 +278,5 @@ golang
Cisco Packet Tracer 8.0.0
.local/bin/kubectl
.rustup
.local/tss-sdk
.local/bin/tss

View File

@ -199,6 +199,7 @@ function install_terragrunt() {
timestamp "The current version of the TSS-SDK is the same as the newest version"
return 0
else
brew install wget
wget https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64 -O $TERRAGRUNT
chmod +x "$TERRAGRUNT"
fi
@ -299,6 +300,8 @@ function install_fzf() {
function install_zsh_addons() {
if [ ! -d $ZSHFOLDER/aws ]; then
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
-o "$ZSHFOLDER"/aws/aws.plugin.zsh &&
timestamp "Downloaded the newest version of aws plugin for zsh"
@ -307,7 +310,6 @@ function install_zsh_addons() {
-o "$ZSHFOLDER"/azure-cli/az.completion &&
timestamp "Downloaded the newest version of az plugin for zsh"
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
cd $ZSHFOLDER || err "Folder $ZSHFOLDER has been NOT found"
git clone https://github.com/popstas/zsh-command-time.git &&
timestamp "Cloning the zsh-command-time"
@ -611,7 +613,7 @@ function main() {
command_start install_prettier
command_start install_google_cloud_sdk
command_start install_bgpreader
command_start install_fonts_terminess
command_start install_font_terminess
command_start install_zsh_addons
command_start install_brew_programs
}

View File

@ -6,7 +6,7 @@ export QT_IM_MODULE=ibus
KERNEL=$(uname -sr)
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
[[ $KERNEL =~ "Darwin" ]] && open -a firefox -u "$2"
[[ $KERNEL =~ "Darwin" ]] && open -a Firefox\ Nightly "$@"
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
# Firefox

16
.local/bin/ffmpeg-resize-sub Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
FILE_FFMPEG="$1"
ffmpeg -i "$FILE_FFMPEG" \
-vf "scale=1920:1080" \
-c:v h264_videotoolbox \
-b:v 3000k \
-preset medium \
-movflags \
+faststart \
-c:a aac \
-b:a 192k \
-ac 2 \
-map 0:v \
-map 0:a \
-map 0:s \
-c:s copy resized.mkv

View File

@ -1,15 +1,21 @@
#!/bin/bash
FOLDER_AUDIOBOOK="/Volumes/Music/Jellyfin/Playlist-Audiobook"
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
# Check if folder exists
[ ! -d $FOLDER_AUDIOBOOK ] && exit 1
[ ! -d $FOLDER_DUB ] && exit 1
[ ! -d $FOLDER_FAV ] && exit 1
[ ! -d $FOLDER_PIANO ] && exit 1
# Remove old files
rm -rfv $FOLDER_AUDIOBOOK/errors.txt
rm -rfv $FOLDER_DUB/errors.txt
rm -rfv $FOLDER_FAV/errors.txt
rm -rfv $FOLDER_PIANO/errors.txt
# Download new files for DUB
cd $FOLDER_DUB || exit 1
@ -32,16 +38,26 @@ spotdl --user-auth --keep-alive \
--yt-dlp-args no-check-certificates
# Sync to Jellyfin
rsync -h --progress --recursive --ignore-existing \
$FOLDER_AUDIOBOOK/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Audiobook
rsync -h --progress --recursive --ignore-existing \
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
rsync -h --progress --recursive --ignore-existing \
$FOLDER_FAV/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Fav
rsync -h --progress --recursive --ignore-existing \
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
# Generate playlist
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Audiobook; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Piano; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
# Fix permissions
ssh docker-de -t 'chown docker-user: /mnt/HC_Volume_34966154/jellifin -R'

View File

@ -2,3 +2,4 @@
KERNEL=$(uname -sr)
[[ $KERNEL =~ "icrosoft" ]] && $HOME/.local/bin/wsl-notify "$@"
[[ $KERNEL =~ "gentoo" ]] && /usr/bin/notify-send "$@"
[[ $KERNEL =~ "Darwin" ]] && osascript -e "display notification \"$*\""

View File

@ -1 +0,0 @@
/usr/local/bin/yt-dlp

1
.tilde-switch Executable file
View File

@ -0,0 +1 @@
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'

19
.zshrc
View File

@ -4,11 +4,11 @@ CONFIG=$HOME/.config
parse_git_branch() {
command=$(git branch \
2>/dev/null |
2> /dev/null |
sed -n -e 's/^\* \(.*\)/\1/p' |
awk 'NF{print $NF}' |
sed 's/)//g' \
2>/dev/null)
2> /dev/null)
[ -z $command ] && echo -e "$ " || echo -e "$command $ "
}
@ -33,11 +33,11 @@ plugins=(rake ruby vagrant knife knife_ssh kitchen)
ZSH_DISABLE_COMPFIX=true
source $ZSH/oh-my-zsh.sh
[ -d $CONFIG/zsh/zsh-autosuggestions ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>>/dev/null
[ -d $CONFIG/zsh/zsh-syntax-highlighting ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>>/dev/null
[ -d $CONFIG/zsh/zsh-command-time ] && source $CONFIG/zsh/zsh-command-time/command-time.plugin.zsh &>>/dev/null
[ -d $CONFIG/zsh/aws ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>>/dev/null
[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>>/dev/null
[ -d $CONFIG/zsh/zsh-autosuggestions ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
[ -d $CONFIG/zsh/zsh-syntax-highlighting ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
[ -d $CONFIG/zsh/zsh-command-time ] && source $CONFIG/zsh/zsh-command-time/command-time.plugin.zsh &>> /dev/null
[ -d $CONFIG/zsh/aws ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>> /dev/null
[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>> /dev/null
[ -f $HOME/.password ] && source $HOME/.password
[ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
@ -189,7 +189,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
fi
# Setting the right editor
if which nvim >/dev/null 2>&1; then
if which nvim > /dev/null 2>&1; then
export VISUAL='nvim -u $HOME/.vimrc'
export EDITOR='nvim -u $HOME/.vimrc'
else
@ -225,6 +225,9 @@ alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
alias irc="ssh mikrus -t 'screen -r'"
alias neofetch=fastfetch
# Zoxide
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
# GoLang
alias go-mod="go mod edit -go $(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"