Compare commits

..

247 Commits

Author SHA1 Message Date
y0rune 011fd50c66 Added into rsync --progress 2022-03-05 17:24:02 +01:00
y0rune 16459ec0b2 Removed --color=always in grep 2022-03-05 17:23:54 +01:00
Marcin Woźniak 5e265c9873 Changed the gpull 2022-02-22 14:38:44 +01:00
y0rune 8371a075d7 Updated the zshrc 2022-02-22 11:18:32 +01:00
y0rune 62d9ca3d93 Enabled Dracula theme 2022-02-01 00:13:44 +01:00
y0rune d773a06a59 Changed the latex 2022-01-31 20:40:27 +01:00
y0rune 0e9be8b10d Disabled the dracula plugin 2022-01-18 21:46:00 +01:00
y0rune ad5ab8884c Added java into vim 2022-01-18 21:45:53 +01:00
y0rune 98cf604d9c Removed the diagnostic icons 2022-01-18 21:43:24 +01:00
y0rune e8364c3ae1 Addded icons for diagnostic 2022-01-09 01:57:28 +01:00
y0rune 4acd37269e Added coc-ansible (ansible-lint) 2022-01-09 01:57:13 +01:00
y0rune 7345373b74 Added the ublock config 2022-01-06 01:53:27 +01:00
y0rune 2b82978528 Changed tab management of tabs from 7,8 to 9,0 2022-01-06 01:06:59 +01:00
y0rune 753c086fe9 Addded debugger into vim 2022-01-06 01:06:35 +01:00
y0rune bac477da31 Added vim-go 2022-01-06 01:06:20 +01:00
y0rune 494e11fc8b Changed >> (tab) to | in the vimrc 2022-01-06 01:05:16 +01:00
y0rune 61f8312889 Remove the duplicate for shiftwidth 2022-01-06 01:04:21 +01:00
y0rune 5afba15a39 Removed the noexpandtab 2022-01-06 01:04:04 +01:00
y0rune ee6ea50006 Added section for Mac in .zshrc 2022-01-06 01:02:25 +01:00
y0rune f121c005ca Added new things into gitignore 2022-01-06 01:02:06 +01:00
y0rune c37a86d6c9 Retab: Remove tab to spaces 2022-01-02 01:37:32 +01:00
y0rune 4102d46fda By default tab in go lang files 2022-01-02 01:37:16 +01:00
y0rune 8c35bab05f Renamed Preetier to Bash section 2022-01-02 01:36:59 +01:00
y0rune c54d73577e Added by default spaces 2022-01-02 01:36:40 +01:00
y0rune 2236e1ed28 Removed duplicates 2022-01-02 01:36:31 +01:00
y0rune 23c0c5d776 Retab from tab to spaces 2022-01-02 01:36:22 +01:00
y0rune f5f75a7f69 Added the Go 2022-01-02 01:27:34 +01:00
y0rune 8684f64544 Default in code the tabs 2022-01-02 01:27:27 +01:00
y0rune 3051133257 Added warn,err,info in the insert mode in vim 2022-01-02 01:27:04 +01:00
Marcin Woźniak 4452cb5ad1 Added the Prettier into bash script 2022-01-01 02:31:26 +01:00
y0rune f26647a2ef Added dotfiles 2021-12-30 20:02:59 +01:00
y0rune c873c5e567 Changed from hidden TERM to screen-256color 2021-12-19 00:59:17 +01:00
y0rune 1a37650655 Hidden the TERM env 2021-12-19 00:55:34 +01:00
y0rune e7555a86a1 Added new .gitignore 2021-12-19 00:55:22 +01:00
y0rune 425d3bd7a1 Changed the theme to dracula in emacs 2021-12-19 00:54:16 +01:00
Marcin Woźniak 671093d80c Changed default-terminal in tmux due to not working dracula in nvim 2021-12-12 22:18:52 +01:00
Marcin Woźniak e35def944a Resolved confict 2021-12-12 22:05:59 +01:00
y0rune 34cedc26e2 Merge branch 'master' of git.yorune.pl:y0rune/myhome
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2021-12-12 22:04:39 +01:00
y0rune 15f37be93f Enabled dracula 2021-12-12 22:02:16 +01:00
y0rune dfdae927c3 Added irc into zshrc 2021-12-12 10:18:52 +01:00
y0rune 2e216cbd3b Changes is nvim 2021-12-12 10:17:39 +01:00
Marcin Woźniak 591c60ff05 Changes replace with leader + s 2021-12-10 12:00:40 +01:00
y0rune 40a1728698 Added git-branch-delete
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2021-12-02 13:10:31 +01:00
y0rune 546df12178 Added commentary new key 2021-11-24 15:52:24 +01:00
y0rune 21c539737c Changed mpv for MacOS 2021-11-24 15:52:00 +01:00
y0rune 8452fd3ebb Added to gitignore golang and .config/ytmdl 2021-11-24 15:51:43 +01:00
y0rune 4dd9006d04 Changed localisation of streamlink config 2021-11-24 15:51:20 +01:00
y0rune e6c89e513d Set ESC as default 2021-11-23 14:52:57 +01:00
y0rune d5d629b862 Tabs to spaces 2021-11-20 15:48:19 +01:00
y0rune 22c9fced82 Mapped esc as ` 2021-11-20 15:47:00 +01:00
y0rune 971da2e20b Remove blinks tmux 2021-11-20 15:46:32 +01:00
y0rune 6dd90bc254 Turned off the blinking cursor 2021-11-20 14:58:15 +01:00
y0rune 991c8bef99 Remove incsearch 2021-11-20 14:57:56 +01:00
y0rune 659659d8fc Added coc-diag 2021-11-20 14:57:44 +01:00
y0rune d1b6e2c802 Removed the arrow keys due to I will learn the vim mapping :D 2021-11-18 13:00:30 +01:00
Marcin Woźniak 955afa53ec Added the diff cursor 2021-11-18 12:47:45 +01:00
Marcin Woźniak 0338073f9d Added the git branch in the statusline 2021-11-16 16:53:03 +01:00
y0rune 0ec5de785c Added .config/ytmdl into .gitignore 2021-11-14 01:25:18 +01:00
y0rune 590ee10a1f Removed the solorgraph in the coc-settigns 2021-11-14 01:24:33 +01:00
y0rune 38ea030de2 Added config for iterm2 2021-11-14 01:24:18 +01:00
y0rune c89f035b51 Added new .gitignore 2021-11-14 01:24:08 +01:00
y0rune bba7f33736 Disabled the mouse in the karabiner 2021-11-14 01:22:43 +01:00
y0rune fed0cd6118 Removed the unbind ENTER key 2021-11-14 01:22:25 +01:00
y0rune a761f804fe Added the line-length to 80 like in the PEP-0008 2021-11-14 01:21:58 +01:00
y0rune 5484c79615 Removed textwidth in the urls file 2021-11-14 01:04:03 +01:00
y0rune bd7d2ac549 Changed map from S into s 2021-11-14 01:03:49 +01:00
y0rune fd429573de Changed theme to default 2021-11-14 01:03:33 +01:00
y0rune 0967ec1a8e Added sudo/doas in the script Logs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-11-09 06:54:34 +01:00
y0rune 86c45b6bfd Changed browser into firefox on MAC 2021-11-09 06:45:56 +01:00
y0rune 0b87cad339 Added counsel into use-package 2021-11-02 21:10:51 +01:00
y0rune edadbf8a7c Updated Karabinier 2021-11-02 21:10:36 +01:00
y0rune 506cf49507 Updated 2021-11-02 13:34:08 +01:00
y0rune 02baf6d072 Update emacs init
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2021-11-02 13:18:51 +01:00
y0rune 8bc72ea0da Added speed cocaction 2021-11-01 10:42:47 +01:00
y0rune bfa8b645e2 Added speed write 2021-11-01 10:42:41 +01:00
y0rune ee2fb888d0 Added better moving in the code 2021-11-01 10:42:34 +01:00
y0rune 782d4307d9 Changed the better tabs management 2021-11-01 10:42:26 +01:00
y0rune e9fc021cd1 Added command+hjkl as arrows 2021-11-01 10:41:51 +01:00
y0rune 74a6e2adfc Sort all vimrc 2021-11-01 00:20:50 +01:00
y0rune 31da5bd7f5 Updated nvim 2021-10-31 23:57:39 +01:00
y0rune 7d0c4f16ff Removed duplication in the vimrc 2021-10-31 23:57:13 +01:00
y0rune c9dd000aa2 Added karabiner, qBittorent into gitignore 2021-10-31 22:27:12 +01:00
y0rune a8db26b2cb Added tab in vnoremap 2021-10-31 22:26:14 +01:00
y0rune f9d408de7a Updated nvim 2021-10-30 23:48:37 +02:00
y0rune 673df7b109 Changed settings yaml 2021-10-30 23:28:29 +02:00
y0rune 4d62c751b7 Added cocRefresh 2021-10-30 23:18:43 +02:00
y0rune 4bfcc5a85f Added yamls 2021-10-30 23:18:29 +02:00
y0rune 6fea18e925 Added config of karabiner 2021-10-30 22:47:51 +02:00
y0rune d9d20cf909 Disable markdown-notes 2021-10-30 22:46:25 +02:00
y0rune 071671375a Added how to disable indentLine and add it into python file 2021-10-30 22:46:16 +02:00
y0rune b561b066d3 Added indentLine 2021-10-30 22:45:48 +02:00
y0rune b79479de82 Remove Telescope 2021-10-30 10:09:56 +02:00
y0rune a775be7fa0 Remove auto installing vim-plug for vim 2021-10-30 10:03:22 +02:00
y0rune 0b070e88de Remove autoseleting first completion 2021-10-30 10:02:59 +02:00
y0rune be61285b8a Added shortcut into Commentary 2021-10-30 10:02:29 +02:00
y0rune c863683a9a Remove keyshortcut <leader> 2021-10-30 10:02:14 +02:00
y0rune 9b55925e6c Disable Telescope and enable fzf 2021-10-30 10:02:01 +02:00
y0rune 2831e6d360 Removed coc refresh 2021-10-26 13:31:26 +02:00
y0rune bedb5d0769 Hidden the fzf [TO REMOVE] 2021-10-24 15:48:54 +02:00
y0rune 97d15fb9d4 Added telescope 2021-10-24 15:48:31 +02:00
y0rune 6ad3ba0679 Added goto code navigation 2021-10-24 15:48:14 +02:00
y0rune f3fc624863 Force space and dot to start complition 2021-10-24 15:47:54 +02:00
y0rune fca2c6d3e5 Added tab like in vscode 2021-10-24 15:47:37 +02:00
y0rune c402f061de Changed yt-downloader to yt-dlp 2021-10-24 15:13:28 +02:00
y0rune 99256574ae Added new .gitignore 2021-10-24 09:14:05 +02:00
y0rune 27465ef297 Execlude .debris from rsync (MEGA) 2021-10-24 09:13:55 +02:00
y0rune ef0402e22e Added Elements into backup 2021-10-24 09:13:34 +02:00
y0rune d2b874ba46 Added in python not adding new line after 80 chars 2021-10-24 08:33:51 +02:00
y0rune 07bee7f172 Added begin and end of line keyshort in vim 2021-10-24 08:33:14 +02:00
y0rune 7de4b66b4e Added replace keyshort in vim 2021-10-24 08:32:57 +02:00
y0rune bfbe7c3467 Added cache mpv 2021-10-23 22:11:08 +02:00
y0rune 6557b663de Added alias cl as Collage 2021-10-23 22:10:39 +02:00
y0rune 324d73a23a Changed youtube-dl to yt-dlp 2021-10-23 22:10:13 +02:00
y0rune f0bb95cafd Added vim keys into newsboat 2021-10-23 22:09:49 +02:00
y0rune bac8c87f4a Disabled the python2 in neovim 2021-10-17 21:06:19 +02:00
y0rune 7b0640a3f9 Update script for backupSynologyMac 2021-10-17 21:05:56 +02:00
y0rune ef45de5031 Added the new statusbar in tmux 2021-10-17 21:05:37 +02:00
y0rune 400e17dce9 Added jupyter via Docker 2021-10-17 21:05:09 +02:00
y0rune 119ae5fc3d Added /dev/null into output in tester-ubuntu 2021-10-17 21:04:53 +02:00
y0rune ceb24b0216 Added gfg to script not in the zshrc 2021-10-17 14:32:13 +02:00
y0rune e0c7cad5cf Added python in the coc-settings fixed problem in MacOS 2021-10-17 14:31:43 +02:00
y0rune a8eeb7f7f6 Added new files into .gitignore 2021-10-06 10:42:50 +02:00
y0rune 085d100f8c Added master and main checkout if it exists 2021-10-06 10:42:23 +02:00
y0rune 1e3fb006db Added testers 2021-10-06 10:42:09 +02:00
Marcin Woźniak 5aef81dac4 Merge branch 'master' of git.yorune.pl:y0rune/myhome 2021-10-05 10:09:14 +02:00
y0rune c4dac1f8e7 Update
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-10-05 10:08:49 +02:00
y0rune 0ec7fcef2f Added ebuildtester-run
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2021-10-05 10:07:55 +02:00
y0rune 90e44d2278 Added .config/backup.log in the .gitignore 2021-10-01 20:08:04 +02:00
y0rune dbf3ee54bf Added for vim installation the plug.vim 2021-10-01 20:07:18 +02:00
y0rune 07ee50dbdc Added for nvim installation the plug.vim 2021-10-01 20:00:15 +02:00
Marcin Woźniak f8383f13a3 Merge branch 'master' of git.yorune.pl:y0rune/myhome 2021-10-01 16:20:00 +02:00
Marcin Woźniak c3f9e4bb83 Added markdown-notes 2021-10-01 16:19:42 +02:00
y0rune 76f02447fc Changed size from 16 to 18 2021-09-30 15:07:02 +02:00
y0rune 0453fcb73c Added new backups in Mac
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-09-30 12:48:51 +02:00
y0rune 60b7c9efd8 Added lsblk in MaC 2021-09-29 20:17:39 +02:00
y0rune 3a14cd8b4d Added golang 2021-09-29 20:17:26 +02:00
y0rune b0d7717c4e Added alias for mpv for Darwin 2021-09-25 20:47:43 +02:00
y0rune 6580df172e Added Darwin into browser-x 2021-09-25 20:47:43 +02:00
y0rune f02162aabd Changed /home/yorune -> $HOME 2021-09-25 20:47:43 +02:00
y0rune 1d1405c77d Changed -h to -Gh due to mac os 2021-09-25 20:47:42 +02:00
Marcin Woźniak 37cac642b9 Changed in the vimrc 2021-09-22 14:44:51 +02:00
y0rune a1a0f4bfd3 Merge branch 'master' of https://git.yorune.pl/y0rune/myhome
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2021-09-15 08:49:56 +02:00
y0rune 5ea0f32b0e Removed emacs dot stuff 2021-09-12 19:51:55 +02:00
y0rune c9aeba9a7e Renamed chatty -> chatty-run 2021-09-12 19:48:55 +02:00
y0rune ccf148fd0d Added files from home 2021-09-12 19:46:49 +02:00
y0rune 6149f5a8ed Added into gitignore Mac stuff 2021-09-12 19:46:25 +02:00
y0rune 8a87a8f066 Added into gitignore dot emacs stuff 2021-09-12 19:45:52 +02:00
y0rune 94027229c6 Added into gitignore ansible cups docker dot files 2021-09-12 19:45:27 +02:00
y0rune 29123e7a45 Added into gitignore All MacOs stuff 2021-09-12 19:44:22 +02:00
y0rune 8aaa2713cf Added into gitignore zsh stuff 2021-09-12 19:43:53 +02:00
y0rune f295c73db0 Removed one by one installation and added one line with installation coc extentions 2021-09-12 19:41:57 +02:00
y0rune 97796ba578 Added update-brew
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-09-09 19:06:50 +02:00
y0rune a5fa865798 Added new vimrc due to mac
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-09-07 10:58:06 +02:00
y0rune 2a279f8788 Added new zshrc due to macos
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-09-02 17:01:20 +02:00
y0rune 0761a915fb Added ansible into nvim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-08-13 16:54:13 +02:00
Marcin Woźniak c0569e111f Merge branch 'master' of https://git.yorune.pl/y0rune/myhome 2021-08-13 08:26:44 +02:00
y0rune b6cd05b56e Added the ipconfig 2021-08-09 22:27:09 +02:00
y0rune df112737a3 Enable hidden files in NerdTree 2021-08-08 23:21:06 +02:00
y0rune ae6b57ae29 Added new default fzf command 2021-08-08 23:20:45 +02:00
y0rune 966bbab098 Added default settings in the streamlink 2021-08-08 17:45:52 +02:00
y0rune e03cd7e4c8 Removed new line in the sb-mem 2021-08-08 17:45:24 +02:00
y0rune 8c912d9493 Added .keras and .config/menus into .gitignore 2021-08-08 17:45:11 +02:00
y0rune ff6e18c2f9 Changed version of python 3.8 -> 3.9 2021-08-08 17:44:19 +02:00
y0rune ef5f98f217 Removed white signs and added new localization dwm etc into MEGA 2021-08-08 17:43:57 +02:00
y0rune b607bafe8f Added more permission copy and sleep in the Update-kernel 2021-08-08 17:43:27 +02:00
y0rune 52b351f9c6 Added and removed urls 2021-08-08 17:42:55 +02:00
y0rune 8dffdba4d4 Added tmux-display-fix when session was in the desktop after in the ssh and it cause problem 2021-08-08 17:42:37 +02:00
y0rune 48cc449550 Checked feh alias 2021-08-08 17:41:57 +02:00
y0rune c53a9d12e3 Disabled quasselclient in the startup 2021-08-08 17:41:44 +02:00
y0rune a6b84f57e7 Resolve issue with space key with emacs in the alacritty 2021-08-08 17:41:21 +02:00
y0rune 8131decdc3 Checked docker ps -> docker ps -all 2021-08-08 17:40:46 +02:00
y0rune 9c90e80aaa Checked next-page like in the firefox vim vimex 2021-08-08 17:40:14 +02:00
Marcin Woźniak 4dd9287fe9 Merge branch 'master' of https://git.yorune.pl/y0rune/myhome 2021-08-08 15:27:13 +02:00
y0rune 9fb8ef9d3c Removed guicursor from init.vim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-07-25 15:28:17 +02:00
Marcin Woźniak 73629b2eef Merge branch 'master' of https://git.yorune.pl/y0rune/myhome 2021-07-19 07:59:51 +02:00
y0rune 746f5a7e9a Added new plugin, and change shortcut
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-07-19 07:59:42 +02:00
Marcin Woźniak 0464cc1daf Added multiple cursosrs 2021-07-19 07:57:39 +02:00
y0rune 36f937c3d8 Added new theme
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-07-06 07:31:19 +02:00
y0rune 290e77189a Added vim shotcut for tmux
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-07-02 15:48:55 +02:00
y0rune 722a13262f Added alias to lazygit 2021-06-19 16:47:30 +02:00
y0rune d97ba74dbe Added regex into function 2021-06-19 16:44:37 +02:00
y0rune c5310feda6 SHELLCHECKER: Added "" into values 2021-06-19 16:44:20 +02:00
y0rune 66b3021937 Remove unused values 2021-06-19 16:43:58 +02:00
y0rune 383a5c77ef Changed read -p to read -rp 2021-06-19 16:43:46 +02:00
y0rune d42669b417 Better view of script 2021-06-19 16:43:21 +02:00
y0rune bc54ec59a3 Added grub check 2021-06-19 16:42:59 +02:00
y0rune b47bff4766 Change localisation of folder 2021-06-19 16:42:28 +02:00
y0rune 07b1850973 SHELLCHECKER: Added "" into values 2021-06-19 16:42:07 +02:00
y0rune d5710350d4 SHELLCHECKER: Change `` to $() 2021-06-19 16:40:53 +02:00
y0rune c6bfeca636 New wall
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-06-15 10:52:34 +02:00
y0rune 948344af18 Added vim conf
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-06-15 10:52:17 +02:00
y0rune 27d7d5dacf Update neovim config
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-06-08 00:10:40 +02:00
y0rune fc095e5158 Updated vimrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-31 23:10:49 +02:00
y0rune 2aa1745aa4 Added sbin
Signed-off-by: Marcin Wozniak <y0rune@aol.com>
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-31 22:23:51 +02:00
y0rune 0be1bbddab Updated vimrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-29 13:18:45 +02:00
y0rune 6c66cb398e Updated vimrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-29 13:17:46 +02:00
y0rune 7fbcdb6ee4 Updated vimrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-28 15:54:14 +02:00
y0rune c4043612e6 Updated vimrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-28 12:56:24 +02:00
y0rune 5358ae45da Updated vim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-24 10:32:14 +02:00
y0rune 002d90c065 Added alacritty to windows
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 20:26:28 +02:00
y0rune 1a8e4b1f80 Added alacritty to windows
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 10:41:49 +02:00
y0rune a44939a7be Updated .gitignore
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 00:24:15 +02:00
y0rune df65c68993 Updated smex-items
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 00:23:51 +02:00
y0rune 914bc33473 Updated speedtest-cli
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 00:23:34 +02:00
y0rune 4b8de442ab Added debugger into neovim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-19 00:22:23 +02:00
y0rune dd7d617e41 Added debbuger in neovim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-18 11:59:01 +02:00
y0rune 41208264df Fix problem with not exporting folder into PATH 2021-05-01 22:00:42 +02:00
y0rune 26f256c5d2 Adding coc-cpp in gentoo init.vim 2021-05-01 21:52:07 +02:00
y0rune 6edce6ed61 Added fortigate bin if exist 2021-05-01 21:51:35 +02:00
y0rune 4583c497e8 Added quasselclient 2021-05-01 21:51:13 +02:00
y0rune c8d617c41b Added cpp,c debuger
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-01 21:24:22 +02:00
y0rune 552675eb7a Added to logs auto refresh
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-24 00:41:14 +02:00
y0rune a5cfb44c1c Pushed
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-20 21:46:53 +02:00
y0rune 88caa05069 Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-14 13:15:05 +02:00
y0rune 5f536e840f Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-14 12:47:32 +02:00
y0rune 5c3c699b71 Added new shortcuts
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-12 00:16:32 +02:00
y0rune 2f5b8bf090 Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-11 01:33:00 +02:00
y0rune 7cb4180c0f Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-10 18:07:20 +02:00
y0rune ae6dcb1d65 Changed dir into $DIR
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-10 18:01:16 +02:00
y0rune f245676926 Changed dir into $DIR
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-10 18:01:05 +02:00
y0rune 4fc5bd0223 Changed dir into $DIR
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-10 18:00:49 +02:00
y0rune dd5208e8ef Added shellcheck
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-10 17:52:07 +02:00
y0rune 317e4ecd81 Added black 2021-04-07 13:33:11 +02:00
y0rune 109db07d4b Added new plugins
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 12:18:53 +02:00
y0rune 6247bbf3d8 Changed .gitingrore
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 11:27:20 +02:00
y0rune d0e6497cf8 Changed theme in vim and emacs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 11:12:20 +02:00
y0rune 7a1b00202a Added spell
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 11:08:04 +02:00
y0rune 0e68efd9aa Added coc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 09:46:28 +02:00
y0rune 42dff7b8cd Added coc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 09:45:35 +02:00
y0rune 057a776164 Added coc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 09:45:07 +02:00
y0rune 69c5868c40 vim-piryyer
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-06 09:26:04 +02:00
y0rune 24c495770c Changed theme in vim and emacs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-05 23:50:32 +02:00
y0rune 5ef28a2edd Changed theme in vim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-05 22:48:00 +02:00
y0rune 704664e3bd Changed theme in vim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-05 00:29:43 +02:00
y0rune 3736b60b05 Changed theme in emacs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-05 00:27:53 +02:00
y0rune a1d3309d45 Configured nvim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-05 00:20:37 +02:00
y0rune b24eea81be Added vimc; npx-run
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-04 18:48:59 +02:00
y0rune b4aa71e377 Changed theme to dracula
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-04 17:39:25 +02:00
y0rune ffb7e19938 Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-04 17:36:50 +02:00
y0rune b4e8857524 Added nvim
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-04 17:35:42 +02:00
y0rune 73de478515 Added zshrc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-01 12:37:33 +02:00
y0rune 59283b394d update -> Update
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-25 11:49:02 +01:00
y0rune 460f6d9251 Changed to firefox, turn off notify in volume, added cpumhz
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-24 00:54:14 +01:00
y0rune 2a7620a621 Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-23 14:03:22 +01:00
y0rune b82dc58f26 Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01:00
y0rune c1c92fc336 first commit 2021-03-22 21:25:52 +01:00
y0rune 6ae58df8cb first commit 2021-03-22 21:24:19 +01:00
70 changed files with 1238 additions and 4649 deletions
+59
View File
@@ -0,0 +1,59 @@
font:
bold:
family: Terminus (TTF)
style: Bold
bold_italic:
family: Terminus (TTF)
style: Bold Italic
italic:
family: Terminus (TTF)
style: Italic
normal:
family: Terminus (TTF)
style: Medium
size: 18
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"
bar:
foreground: "#d0d0d0"
background: "#262626"
# Default colors
primary:
background: "0x000000"
foreground: "0xffffff"
# Normal colors
normal:
black: "0x000000"
red: "0xcd0000"
green: "0x00cd00"
yellow: "0xcdcd00"
blue: "0x0000ee"
magenta: "0xcd00cd"
cyan: "0x00cdcd"
white: "0xe5e5e5"
# Bright colors:
bright:
black: "0x7f7f7f"
red: "0xff0000"
green: "0x00ff00"
yellow: "0xffff00"
blue: "0x5c5cff"
magenta: "0xff00ff"
cyan: "0x00ffff"
white: "0xffffff"
@@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIconName</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.apple.ScriptEditor.id.Copy-Firefox-Link--Jira</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Copy Firefox Link (Jira)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>This script needs to control other applications to run.</string>
<key>NSAppleMusicUsageDescription</key>
<string>This script needs access to your music to run.</string>
<key>NSCalendarsUsageDescription</key>
<string>This script needs access to your calendars to run.</string>
<key>NSCameraUsageDescription</key>
<string>This script needs access to your camera to run.</string>
<key>NSContactsUsageDescription</key>
<string>This script needs access to your contacts to run.</string>
<key>NSHomeKitUsageDescription</key>
<string>This script needs access to your HomeKit Home to run.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This script needs access to your microphone to run.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This script needs access to your photos to run.</string>
<key>NSRemindersUsageDescription</key>
<string>This script needs access to your reminders to run.</string>
<key>NSSiriUsageDescription</key>
<string>This script needs access to Siri to run.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>This script needs access to administer this system to run.</string>
<key>OSAAppletShowStartupScreen</key>
<false/>
<key>WindowState</key>
<dict>
<key>bundleDividerCollapsed</key>
<true/>
<key>bundlePositionOfDivider</key>
<real>0.0</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>2</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>394</real>
<key>savedFrame</key>
<string>952 453 700 682 0 0 2560 1409 </string>
<key>selectedTab</key>
<string>result</string>
</dict>
</dict>
</plist>
@@ -1 +0,0 @@
APPLaplt
Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 B

@@ -1,5 +0,0 @@
{\rtf1\ansi\ansicpg1252\cocoartf2865
\cocoatextscaling0\cocoaplatform0{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
}
@@ -1,192 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Resources/Assets.car</key>
<data>
OdbufcoyP2ZXC+wmwYcwMi/2x24=
</data>
<key>Resources/Scripts/main.scpt</key>
<data>
c++jyUmQRxdpGX36L8PJaNpf6uM=
</data>
<key>Resources/applet.icns</key>
<data>
sINd6lbiqHD5dL8c6u79cFvVXhw=
</data>
<key>Resources/applet.rsrc</key>
<data>
DlWDU4NYiJFhmwpseexPiRYHzFI=
</data>
<key>Resources/description.rtfd/TXT.rtf</key>
<data>
C1nXIy6FYUr4wNNlSEP/8NzzT/E=
</data>
</dict>
<key>files2</key>
<dict>
<key>Resources/Assets.car</key>
<dict>
<key>hash</key>
<data>
OdbufcoyP2ZXC+wmwYcwMi/2x24=
</data>
<key>hash2</key>
<data>
cVUhSsEaVhMGFs9io544X4XEevDHVtRiVGUTdZ4ZHX4=
</data>
</dict>
<key>Resources/Scripts/main.scpt</key>
<dict>
<key>hash</key>
<data>
c++jyUmQRxdpGX36L8PJaNpf6uM=
</data>
<key>hash2</key>
<data>
o+Lp+bYlQlPNZa8JmZ6wdvY55TCtjUxce100Dttj5vY=
</data>
</dict>
<key>Resources/applet.icns</key>
<dict>
<key>hash</key>
<data>
sINd6lbiqHD5dL8c6u79cFvVXhw=
</data>
<key>hash2</key>
<data>
J7weZ6vlnv9r32tS5HFcyuPXl2StdDnfepLxAixlryk=
</data>
</dict>
<key>Resources/applet.rsrc</key>
<dict>
<key>hash</key>
<data>
DlWDU4NYiJFhmwpseexPiRYHzFI=
</data>
<key>hash2</key>
<data>
/UdIZRcpe3tND6vnHQP/IG8Vvt3+ZFQS5SQ+h1kescY=
</data>
</dict>
<key>Resources/description.rtfd/TXT.rtf</key>
<dict>
<key>hash</key>
<data>
C1nXIy6FYUr4wNNlSEP/8NzzT/E=
</data>
<key>hash2</key>
<data>
Y3Q9y0mIEZh55w+oHoEyN1W1UzIxrILMub7rktKsd1I=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
-11
View File
@@ -1,11 +0,0 @@
#!/bin/bash
DIR=$(dirname "$0")
for app in "$DIR"/*.app; do
echo "Installing $(basename "$app")..."
cp -rv "$app" "$HOME"/Applications/
xattr -dr com.apple.quarantine "/Applications/$(basename "$app")"
done
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"
-28
View File
@@ -1,28 +0,0 @@
bash
coreutils
dockutil
duti
fastfetch
ffmpeg
git
gnu-sed
htop
imagemagick
ipcalc
iperf3
mtr
neovim
parallel
pinentry-mac
ranger
ripgrep
rsync
taplo
telnet
texinfo
tmux
tree
watch
wget
zoxide
zsh
-31
View File
@@ -1,31 +0,0 @@
alacritty
chatterino
dbeaver-community
discord
displaylink
docker
firefox
font-hack-nerd-font
gimp
karabiner-elements
keepassxc
megasync
microsoft-teams
mongodb-compass
mpv
obsidian
platypus
postman
qbittorrent
rustdesk
scroll-reverser
signal
spotify
telegram
the-unarchiver
transfer
twingate
visual-studio-code
vlc
winbox
wireshark
-2
View File
@@ -1,2 +0,0 @@
example
displaylink
+47 -97
View File
File diff suppressed because one or more lines are too long
-110
View File
@@ -1,110 +0,0 @@
# 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" },
]
[window]
opacity = 0.95
[font]
size = 20
# [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"
# Comic code
[font.normal]
family = "Comic Code Ligatures"
style = "Regular"
# [font.bold]
# family = "Teminess Nerd Font"
# style = "Bold"
[font.bold_italic]
family = "Comic Code"
style = "Bold Italic"
[font.italic]
family = "Comic Code"
style = "Italic"
[font.offset]
x = 0
y = -6
[font.glyph_offset]
x = 0
y = -2
# [mouse.hints]
# modifiers = "Command"
# [mouse.hints.launcher]
# program = "open"
[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
View File
@@ -1,76 +0,0 @@
# 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"
+1
View File
@@ -0,0 +1 @@
/Users/yorune/Library/Application Support/iTerm2
@@ -1 +0,0 @@
{"title":"Mouse keys ambidextrous - yorune","rules":[{"description":"Mouse keys Ambidextrous","manipulators":[{"from":{"key_code":"k","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":-64}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":64}}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":64}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":-64}}],"type":"basic"},{"from":{"key_code":"u","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"o","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":-1018}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":1018}}],"type":"basic"},{"from":{"key_code":"k","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":-1018}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":1018}}],"type":"basic"},{"from":{"key_code":"q","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"e","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"}]}]}
+379 -303
View File
@@ -1,19 +1,20 @@
{
"global": { "show_in_menu_bar": false },
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Maps F5 to ⌘⇧M in MS Teams or ⌘⇧A to ZOOM. F5 has an MIC symbol on recent MacOS keyboards.",
"manipulators": [
{
"from": { "key_code": "f5" },
"to": [{ "shell_command": "if [ $(ps aux | grep -v grep | grep -ci \"Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app\") -gt 0 ]; then osascript -e 'activate application id \"com.microsoft.teams\"' -e 'tell application \"System Events\" to keystroke \"m\" using {command down, shift down}'; fi & if [ $(ps aux | grep -v grep | grep -ci \"zoom.us.app/Contents/Frameworks/cpthost.app/Contents/MacOS/CptHost\") -gt 0 ]; then osascript -e 'activate application id \"us.zoom.xos\"' -e 'tell application \"System Events\" to keystroke \"a\" using {command down, shift down}'; fi" }],
"type": "basic"
}
]
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"description": "Change right_command+hjkl to arrow keys",
"manipulators": [
@@ -21,44 +22,76 @@
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [{ "key_code": "left_arrow" }],
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [{ "key_code": "down_arrow" }],
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [{ "key_code": "up_arrow" }],
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["any"]
"mandatory": [
"right_command"
],
"optional": [
"any"
]
}
},
"to": [{ "key_code": "right_arrow" }],
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
@@ -67,382 +100,425 @@
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [
{
"from": { "key_code": "f1" },
"to": [{ "consumer_key_code": "mute" }]
"from": {
"key_code": "f1"
},
"to": [
{
"consumer_key_code": "mute"
}
]
},
{
"from": { "key_code": "f2" },
"to": [{ "consumer_key_code": "volume_decrement" }]
"from": {
"key_code": "f2"
},
"to": [
{
"consumer_key_code": "volume_decrement"
}
]
},
{
"from": { "key_code": "f3" },
"to": [{ "consumer_key_code": "volume_increment" }]
"from": {
"key_code": "f3"
},
"to": [
{
"consumer_key_code": "volume_increment"
}
]
},
{
"from": { "key_code": "f10" },
"to": [{ "consumer_key_code": "play_or_pause" }]
"from": {
"key_code": "f10"
},
"to": [
{
"consumer_key_code": "play_or_pause"
}
]
},
{
"from": { "key_code": "f11" },
"to": [{ "consumer_key_code": "display_brightness_decrement" }]
"from": {
"key_code": "f11"
},
"to": [
{
"consumer_key_code": "display_brightness_decrement"
}
]
},
{
"from": { "key_code": "f12" },
"to": [{ "consumer_key_code": "display_brightness_increment" }]
"from": {
"key_code": "f12"
},
"to": [
{
"consumer_key_code": "display_brightness_increment"
}
]
}
],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 591,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
"from": {
"key_code": "caps_lock"
},
"to": [
{
"from": { "key_code": "down_arrow" },
"to": [{ "pointing_button": "button32" }]
},
{
"from": { "key_code": "escape" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
},
{
"from": { "key_code": "left_arrow" },
"to": [{ "pointing_button": "button32" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "right_command" }]
},
{
"from": { "key_code": "right_arrow" },
"to": [{ "pointing_button": "button32" }]
},
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
},
{
"from": { "key_code": "up_arrow" },
"to": [{ "pointing_button": "button32" }]
"key_code": "escape"
}
]
},
{
"from": {
"key_code": "down_arrow"
},
"to": [
{
"pointing_button": "button32"
}
]
},
{
"from": {
"key_code": "left_arrow"
},
"to": [
{
"pointing_button": "button32"
}
]
},
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
]
},
{
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "right_command"
}
]
},
{
"from": {
"key_code": "right_arrow"
},
"to": [
{
"pointing_button": "button32"
}
]
},
{
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_option"
}
]
},
{
"from": {
"key_code": "up_arrow"
},
"to": [
{
"pointing_button": "button32"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 631,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": { "key_code": "non_us_backslash" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
"from": {
"key_code": "right_command"
},
"to": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
"key_code": "right_option"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 591,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": true,
"simple_modifications": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 6194,
"vendor_id": 4152
},
"ignore": true,
"manipulate_caps_lock_led": false
"manipulate_caps_lock_led": false,
"simple_modifications": []
},
{
"fn_function_keys": [
{
"from": { "key_code": "f1" },
"to": [{ "key_code": "f1" }]
}
],
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 615,
"vendor_id": 76
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_option"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 6194,
"vendor_id": 4152
},
"simple_modifications": [
{
"from": { "pointing_button": "button5" },
"to": [{ "apple_vendor_keyboard_key_code": "launchpad" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 30264,
"vendor_id": 3141
},
"simple_modifications": [
{
"from": { "key_code": "escape" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
{
"identifiers": { "is_keyboard": true },
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
},
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 34056,
"vendor_id": 3141
},
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 615,
"vendor_id": 1452
},
"simple_modifications": [
{
"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" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 668,
"vendor_id": 76
},
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
},
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
{
"fn_function_keys": [
{
"from": { "key_code": "f1" },
"to": [{ "key_code": "f1" }]
},
{
"from": { "key_code": "f2" },
"to": [{ "key_code": "f2" }]
},
{
"from": { "key_code": "f3" },
"to": [{ "key_code": "f3" }]
},
{
"from": { "key_code": "f4" },
"to": [{ "key_code": "f4" }]
},
{
"from": { "key_code": "f5" },
"to": [{ "key_code": "f5" }]
},
{
"from": { "key_code": "f6" },
"to": [{ "key_code": "f13" }]
},
{
"from": { "key_code": "f7" },
"to": [{ "key_code": "f7" }]
},
{
"from": { "key_code": "f8" },
"to": [{ "key_code": "f8" }]
},
{
"from": { "key_code": "f9" },
"to": [{ "key_code": "f9" }]
},
{
"from": { "key_code": "f10" },
"to": [{ "consumer_key_code": "play_or_pause" }]
},
{
"from": { "key_code": "f11" },
"to": [{ "consumer_key_code": "mute" }]
},
{
"from": { "key_code": "f12" },
"to": [{ "consumer_key_code": "volume_increment" }]
}
],
"identifiers": {
"is_keyboard": true,
"product_id": 45929,
"vendor_id": 1133
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
"from": {
"pointing_button": "button5"
},
"to": [
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "right_command" }]
}
]
},
{
"fn_function_keys": [
{
"from": { "key_code": "f1" },
"to": [{ "key_code": "f1" }]
},
{
"from": { "key_code": "f2" },
"to": [{ "key_code": "f2" }]
},
{
"from": { "key_code": "f11" },
"to": [{ "key_code": "f11" }]
}
],
"identifiers": {
"is_keyboard": true,
"product_id": 785,
"vendor_id": 13364
},
"simple_modifications": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
},
{
"from": { "key_code": "right_control" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 666,
"vendor_id": 76
},
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 666,
"vendor_id": 1452
},
"simple_modifications": [
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
"apple_vendor_keyboard_key_code": "launchpad"
}
]
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 34304,
"vendor_id": 1452
},
"ignore": true
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": []
}
],
"fn_function_keys": [
{
"from": { "key_code": "f4" },
"to": [{ "apple_vendor_keyboard_key_code": "mission_control" }]
"from": {
"key_code": "f1"
},
"to": [
{
"consumer_key_code": "display_brightness_decrement"
}
]
},
{
"from": { "key_code": "f5" },
"to": [{ "key_code": "f5" }]
"from": {
"key_code": "f2"
},
"to": [
{
"consumer_key_code": "display_brightness_increment"
}
]
},
{
"from": {
"key_code": "f3"
},
"to": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"consumer_key_code": "dictation"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "f6"
}
]
},
{
"from": {
"key_code": "f7"
},
"to": [
{
"consumer_key_code": "rewind"
}
]
},
{
"from": {
"key_code": "f8"
},
"to": [
{
"consumer_key_code": "play_or_pause"
}
]
},
{
"from": {
"key_code": "f9"
},
"to": [
{
"consumer_key_code": "fast_forward"
}
]
},
{
"from": {
"key_code": "f10"
},
"to": [
{
"consumer_key_code": "mute"
}
]
},
{
"from": {
"key_code": "f11"
},
"to": [
{
"consumer_key_code": "volume_decrement"
}
]
},
{
"from": {
"key_code": "f12"
},
"to": [
{
"consumer_key_code": "volume_increment"
}
]
}
],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [
{
"from": { "consumer_key_code": "eject" },
"to": [{ "consumer_key_code": "al_terminal_lock_or_screensaver" }]
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "escape"
}
]
},
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "right_command"
}
]
}
],
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "iso"
"indicate_sticky_modifier_keys_state": true,
"mouse_key_xy_scale": 100
}
}
]
@@ -1,206 +0,0 @@
{
"title": "Mouse keys ambidextrous - yorune",
"rules": [
{
"description": "Mouse keys Ambidextrous",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["fn"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": -64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["fn"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": 64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["fn"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"horizontal_wheel": 64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["fn"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"horizontal_wheel": -64
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": -1018
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": 1018
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"y": -1018
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"mouse_key": {
"x": 1018
}
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": ["left_control", "left_shift"],
"optional": ["any"]
}
},
"to": [
{
"pointing_button": "button2"
}
],
"type": "basic"
}
]
}
]
}
-417
View File
@@ -1,417 +0,0 @@
{
"name": "Keychron V1",
"vendorProductId": 875823889,
"macros": [
"",
"{KC_LGUI,KC_LCTL,KC_Q}",
"{KC_RGUI,KC_L}",
"Have a nice day",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"it-infra-stream@wundermanthompson.com",
"marcin.wozniak@wundermanthompson.com",
"Have a nice day!\n\n---\nMarcin\n"
],
"layers": [
[
"KC_GRV",
"KC_F1",
"KC_F2",
"KC_F3",
"KC_F4",
"KC_F5",
"KC_F6",
"KC_F7",
"KC_F8",
"KC_F9",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_DEL",
"KC_NO",
"KC_MUTE",
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",
"KC_4",
"KC_5",
"KC_6",
"KC_7",
"KC_8",
"KC_9",
"KC_0",
"KC_MINS",
"KC_EQL",
"KC_BSPC",
"KC_NO",
"KC_PGUP",
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
"KC_R",
"KC_T",
"KC_Y",
"KC_U",
"KC_I",
"KC_O",
"KC_P",
"KC_LBRC",
"KC_RBRC",
"KC_BSLS",
"KC_NO",
"KC_PGDN",
"KC_ESC",
"KC_A",
"KC_S",
"KC_D",
"KC_F",
"KC_G",
"KC_H",
"KC_J",
"KC_K",
"KC_L",
"KC_SCLN",
"KC_QUOT",
"KC_NO",
"KC_ENT",
"KC_NO",
"KC_HOME",
"KC_LSFT",
"KC_NO",
"KC_Z",
"KC_X",
"KC_C",
"KC_V",
"KC_B",
"KC_N",
"KC_M",
"KC_COMM",
"KC_DOT",
"KC_SLSH",
"KC_NO",
"KC_RSFT",
"KC_UP",
"KC_NO",
"KC_LCTL",
"USER02",
"USER05",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_SPC",
"KC_VOLD",
"KC_VOLU",
"KC_NO",
"USER03",
"MO(1)",
"USER05",
"KC_LEFT",
"KC_DOWN",
"KC_RGHT"
],
[
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"BL_DEC",
"BL_INC",
"KC_MPRV",
"KC_MPLY",
"KC_MNXT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_PSCR",
"KC_NO",
"RGB_TOG",
"KC_TRNS",
"KC_TRNS",
"MACRO01",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"MACRO13",
"MACRO14",
"MACRO15",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_BTN1",
"KC_MS_UP",
"KC_MS_BTN2",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_LEFT",
"KC_MS_DOWN",
"KC_MS_RIGHT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_NO",
"KC_END",
"KC_TRNS",
"KC_NO",
"KC_MS_WH_UP",
"KC_MS_WH_DOWN",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_TRNS",
"RGB_VAD",
"RGB_VAI",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS"
],
[
"KC_GRV",
"KC_F1",
"KC_F2",
"KC_F3",
"KC_F4",
"KC_F5",
"KC_F6",
"KC_F7",
"KC_F8",
"KC_F9",
"KC_F10",
"KC_F11",
"KC_F12",
"KC_DEL",
"KC_NO",
"KC_MUTE",
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",
"KC_4",
"KC_5",
"KC_6",
"KC_7",
"KC_8",
"KC_9",
"KC_0",
"KC_MINS",
"KC_EQL",
"KC_BSPC",
"KC_NO",
"KC_PGUP",
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
"KC_R",
"KC_T",
"KC_Y",
"KC_U",
"KC_I",
"KC_O",
"KC_P",
"KC_LBRC",
"KC_RBRC",
"KC_BSLS",
"KC_NO",
"KC_PGDN",
"KC_ESC",
"KC_A",
"KC_S",
"KC_D",
"KC_F",
"KC_G",
"KC_H",
"KC_J",
"KC_K",
"KC_L",
"KC_SCLN",
"KC_QUOT",
"KC_NO",
"KC_ENT",
"KC_NO",
"KC_HOME",
"KC_LSFT",
"KC_NO",
"KC_Z",
"KC_X",
"KC_C",
"KC_V",
"KC_B",
"KC_N",
"KC_M",
"KC_COMM",
"KC_DOT",
"KC_SLSH",
"KC_NO",
"KC_RSFT",
"KC_UP",
"KC_NO",
"KC_LCTL",
"KC_LGUI",
"KC_LALT",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_SPC",
"KC_VOLD",
"KC_VOLU",
"KC_NO",
"KC_RALT",
"MO(3)",
"KC_RCTL",
"KC_LEFT",
"KC_DOWN",
"KC_RGHT"
],
[
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"BL_DEC",
"BL_INC",
"KC_MPRV",
"KC_MPLY",
"KC_MNXT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_PSCR",
"KC_NO",
"RGB_TOG",
"KC_TRNS",
"KC_TRNS",
"MACRO02",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"MACRO13",
"MACRO14",
"MACRO15",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_BTN1",
"KC_MS_UP",
"KC_MS_BTN2",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_MS_LEFT",
"KC_MS_DOWN",
"KC_MS_RIGHT",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_NO",
"KC_END",
"KC_TRNS",
"KC_NO",
"KC_MS_WH_UP",
"KC_MS_WH_DOWN",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_NO",
"KC_NO",
"KC_NO",
"KC_TRNS",
"RGB_VAD",
"RGB_VAI",
"KC_NO",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS",
"KC_TRNS"
]
],
"encoders": []
}
-248
View File
@@ -1,248 +0,0 @@
{
"name": "Keychron V1",
"vendorId": "0x3434",
"productId": "0x0311",
"lighting": {
"extends": "qmk_rgblight",
"underglowEffects": [
["None", 0],
["SOLID_COLOR", 1],
["BREATHING", 1],
["CYCLE_ALL", 1],
["CYCLE_LEFT_RIGHT", 1],
["CYCLE_UP_DOWN", 1],
["RAINBOW_MOVING_CHEVRON", 1],
["CYCLE_OUT_IN", 1],
["CYCLE_OUT_IN_DUAL", 1],
["CYCLE_PINWHEEL", 1],
["CYCKE_SPIRAL", 1],
["DUAL_BEACON", 1],
["RAINBOW_BEACON", 1],
["RAINDROPS", 1]
]
},
"matrix": {"rows": 6, "cols": 16},
"customKeycodes": [
{"name": "Mission Control", "title": "Mission Control in macOS", "shortName": "Mission Control"},
{"name": "Launch Pad", "title": "Launch Pad in macOS", "shortName": "Launch Pad"},
{"name": "Left Option", "title": "Left Option in macOS", "shortName": "Left Option"},
{"name": "Right Option", "title": "Right Option in macOS", "shortName": "Right Option"},
{"name": "Left Cmd", "title": "Left Command in macOS", "shortName": "Left Command"},
{"name": "Right Cmd", "title": "Right Command in macOS", "shortName": "Right Command"},
{"name": "Task View", "title": "Task View in windows", "shortName": "Task View"},
{"name": "File Explorer", "title": "File Explorer in windows", "shortName": "File Explorer"}
],
"layouts": {
"keymap": [
[
{
"c": "#777777"
},
"0,0\nESC",
{
"x": 0.25,
"c": "#cccccc"
},
"0,1",
"0,2",
"0,3",
"0,4",
{
"x": 0.25
},
"0,5",
"0,6",
"0,7",
"0,8",
{
"x": 0.25
},
"0,9",
"0,10",
"0,11",
"0,12",
{
"x": 0.25,
"c": "#aaaaaa"
},
"0,13",
{
"x": 0.25,
"w": 0.75
},
"0,15",
{
"h": 0.5
},
"5,7",
{
"x": -1,
"y": 0.5,
"h": 0.5
},
"5,8"
],
[
{
"y": -0.25
},
"1,0",
{
"c": "#cccccc"
},
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
"1,11",
"1,12",
{
"c": "#aaaaaa",
"w": 2
},
"1,13",
{
"x": 0.25
},
"1,15"
],
[
{
"w": 1.5
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
"2,10",
"2,11",
"2,12",
{
"w": 1.5
},
"2,13",
{
"x": 0.25,
"c": "#aaaaaa"
},
"2,15"
],
[
{
"w": 1.75
},
"3,0",
{
"c": "#cccccc"
},
"3,1",
"3,2",
"3,3",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
"3,9",
"3,10",
"3,11",
{
"c": "#777777",
"w": 2.25
},
"3,13",
{
"x": 0.25,
"c": "#aaaaaa"
},
"3,15"
],
[
{
"w": 2.25
},
"4,0",
{
"c": "#cccccc"
},
"4,2",
"4,3",
"4,4",
"4,5",
"4,6",
"4,7",
"4,8",
"4,9",
"4,10",
"4,11",
{
"c": "#aaaaaa",
"w": 1.75
},
"4,13"
],
[
{
"y": -0.75,
"x": 14.25,
"c": "#777777"
},
"4,14"
],
[
{
"y": -0.25,
"c": "#aaaaaa",
"w": 1.25
},
"5,0",
{
"w": 1.25
},
"5,1",
{
"w": 1.25
},
"5,2",
{
"c": "#cccccc",
"a": 7,
"w": 6.25
},
"5,6",
{
"c": "#aaaaaa",
"a": 4
},
"5,10",
"5,11",
"5,12"
],
[
{
"y": -0.75,
"x": 13.25,
"c": "#777777"
},
"5,13",
"5,14",
"5,15"
]
]
}
}
-16
View File
@@ -1,16 +0,0 @@
refresher:
refreshInterval: 60
gui:
useHunkModeInStagingView: false
mainPanelSplitMode: "horizontal"
theme:
selectedLineBgColor:
- "#413660"
git:
autoFetch: true
paging:
colorArg: always
commit:
signOff: true
pull:
mode: "rebase"
+4 -14
View File
@@ -1,25 +1,11 @@
# Restrict readahead and backbuffer to 40MiB from default of 400MiB
cache=yes
demuxer-max-bytes=2147483647
demuxer-max-back-bytes=2147483647
# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream
force-seekable=yes
# Always open a video window even with no video
force-window=yes
# Don't exit when the end of playlist is reached
keep-open=yes
# Always save the current playback position on exit
save-position-on-quit=yes
# ontop=yes
# Geometry settings
geometry=50%:50%
autofit=50%
# Create 'high-quality' profile
[high-quality]
# Describe this profile
@@ -28,3 +14,7 @@ profile-desc="High quality rendering"
profile=opengl-hq
# Disable debanding for better performance
deband=no
# restrict readahead and backbuffer to 40MiB from default of 400MiB
cache=yes
demuxer-max-bytes=41943040
demuxer-max-back-bytes=41943040
+2 -2
View File
@@ -29,9 +29,9 @@ bind-key h quit
bind-key ESC quit
highlight all "====.*====" yellow
color listnormal default default
color listnormal cyan default
color listfocus black yellow standout bold
color listnormal_unread cyan default
color listnormal_unread blue default
color listfocus_unread yellow default bold
color info red black bold
color article white default bold
+78 -406
View File
@@ -12,7 +12,7 @@ endif
""""""""""""""""""""""""""""""""
" Default settings nvim
""""""""""""""""""""""""""""""""
let g:python3_host_prog = expand('/opt/homebrew/bin/python3.13')
let g:python3_host_prog = expand('/usr/bin/python3')
let g:loaded_python_provider = 0
let g:python_host_prog = ''
set autoindent
@@ -23,13 +23,12 @@ set tabstop=4
set nocompatible
set noshowmode
set noerrorbells
set wrap
set nowrap
set hidden
set cmdheight=1
set encoding=utf-8
set undofile
set scrolloff=8
set termguicolors
set t_BE=
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
filetype plugin indent on
@@ -56,6 +55,7 @@ let g:indentLine_char_list = ['│', '│', '│', '│']
runtime! macros/matchit.vim
" visual feedback
set laststatus=2
set showmode
set showcmd
@@ -84,7 +84,9 @@ call plug#begin('~/.config/nvim/plugged')
" Markdown
Plug 'tpope/vim-markdown'
" Live-preview
" Nerd Tree
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'nmante/vim-latex-live-preview'
" Goyo plugin for writing mutt mail
@@ -101,6 +103,9 @@ call plug#begin('~/.config/nvim/plugged')
" CSS
Plug 'ap/vim-css-color'
" coc
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Copilot
Plug 'github/copilot.vim'
@@ -111,9 +116,6 @@ call plug#begin('~/.config/nvim/plugged')
Plug 'pearofducks/ansible-vim', { 'do': './UltiSnips/generate.sh' }
Plug 'Yggdroot/indentLine'
" Terraform
Plug 'hashivim/vim-terraform'
" GoLang
Plug 'fatih/vim-go'
@@ -129,229 +131,18 @@ call plug#begin('~/.config/nvim/plugged')
" Git tool
Plug 'tpope/vim-fugitive'
" Prettier
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' }
" Preetier
Plug 'prettier/vim-prettier'
" Debug
Plug 'puremourning/vimspector'
Plug 'mfussenegger/nvim-dap'
" LSP
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/cmp-cmdline'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'L3MON4D3/LuaSnip'
Plug 'sbdchd/neoformat'
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
Plug 'hrsh7th/vim-vsnip-integ'
" Telescope
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
" Tree
Plug 'nvim-tree/nvim-web-devicons'
Plug 'nvim-tree/nvim-tree.lua'
" SHFMT
Plug 'z0mbix/vim-shfmt', { 'for': 'sh' }
" Mikrotik
Plug 'zainin/vim-mikrotik'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/nvim-treesitter-context'
" Autopair
Plug 'windwp/nvim-autopairs'
" AI
Plug 'folke/snacks.nvim'
Plug 'coder/claudecode.nvim'
call plug#end()
" LUA
lua<<EOF
vim.filetype.add({
-- Ansible
pattern = {
[".*playbooks/.*%.ya?ml"] = "yaml.ansible",
[".*tasks/.*%.ya?ml"] = "yaml.ansible",
[".*handlers/.*%.ya?ml"] = "yaml.ansible",
[".*roles/.*/.*%.ya?ml"] = "yaml.ansible",
},
-- Docker Compose + GitLab CI (merged into one filename table)
filename = {
["docker-compose.yml"] = "yaml.docker-compose",
["docker-compose.yaml"] = "yaml.docker-compose",
[".gitlab-ci.yml"] = "yaml.gitlab",
[".gitlab-ci.yaml"] = "yaml.gitlab",
},
})
" Coc
let g:coc_global_extensions = ['coc-java', '@yaegassy/coc-ansible', 'coc-solargraph', 'coc-go', 'coc-yaml', 'coc-pyright', 'coc-json' , 'coc-markdownlint' , 'coc-sh', 'coc-prettier', 'coc-diagnostic', 'coc-perl']
-- capabilities for nvim-cmp
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Prefer LspAttach instead of per-server on_attach
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local bufnr = args.buf
vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>K', vim.lsp.buf.hover, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'ge', vim.diagnostic.setqflist, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, { buffer = bufnr, silent = true })
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, { buffer = bufnr, silent = true })
vim.keymap.set('n', 'gr', vim.lsp.buf.references, { buffer = bufnr, silent = true })
end,
})
local border = 'rounded'
vim.lsp.config('*', {
capabilities = capabilities,
})
vim.diagnostic.config({
float = { border = border },
})
vim.lsp.handlers["textDocument/hover"] = function(err, result, ctx, config)
config = config or {}
config.border = border
return vim.lsp.handlers.hover(err, result, ctx, config)
end
vim.lsp.handlers["textDocument/signatureHelp"] = function(err, result, ctx, config)
config = config or {}
config.border = border
return vim.lsp.handlers.signature_help(err, result, ctx, config)
end
-- Server-specific overrides
vim.lsp.config('yamlls', {
settings = {
json = {
schemas = {
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"]= "conf/**/*catalog*",
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml",
}
},
yaml = { keyOrdering = false },
},
})
vim.lsp.config('gopls', {
cmd = {"gopls", "serve"},
filetypes = { "go", "gomod", "gowork", "gotmpl" },
settings = {
gopls = {
analyses = { unusedparams = true },
staticcheck = true,
linksInHover = false,
codelenses = {
generate = true,
gc_details = true,
regenerate_cgo = true,
tidy = true,
upgrade_depdendency = true,
vendor = true,
},
completeUnimported = true,
usePlaceholders = true,
},
},
})
vim.lsp.config('ruff', {})
-- Enable servers (remove 'solargraph' if not using Ruby)
vim.lsp.enable({
'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph',
'terraformls', 'tflint', 'marksman', 'rust_analyzer', 'ruff',
})
-- nvim-cmp setup with Tab support
local cmp = require('cmp')
cmp.setup({
mapping = cmp.mapping.preset.insert({
['<C-Space>'] = cmp.mapping.complete(),
-- Tab: indent on empty/whitespace-only lines, trigger completion elsewhere
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif vim.fn["copilot#GetDisplayedSuggestion"]().text ~= "" then
vim.fn.feedkeys(vim.fn["copilot#Accept"](""), "n")
elseif vim.api.nvim_get_current_line():match("^%s*$") then
fallback()
else
cmp.complete()
end
end, { 'i', 's' }),
-- Shift-Tab: go to previous completion item or fallback
['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end, { 'i', 's' }),
-- Enter to confirm selection
['<CR>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'buffer' },
{ name = 'path' },
}),
})
vim.keymap.set("t", "<C-w>h", "<C-\\><C-n><C-w>h", { desc = "Move to left window" })
vim.keymap.set("t", "<C-w>l", "<C-\\><C-n><C-w>l", { desc = "Move to right window" })
vim.keymap.set("t", "<C-w>p", "<C-\\><C-n><C-w>p", { desc = "Focus previous window" })
require("claudecode").setup()
EOF
" Added popout window to see diagnostic
set updatetime=250
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
" Copilot
let g:copilot_no_tab_map = v:true
" Neoformat
let g:neoformat_try_formatprg = 1
let g:neoformat_basic_format_trim = 1
let g:neoformat_only_msg_on_error = 1
" autocmd BufWritePre * silent! undojoin | Neoformat
let g:neoformat_python_ruff = {
\ 'exe': 'ruff',
\ 'stdin': 1,
\ 'args': ['format', '--line-length=80', '-q', '-'],
\ }
let g:neoformat_enabled_python = ['ruff']
" Terraform
let g:terraform_fmt_on_save=1
let g:terraform_align=1
inoremap <silent><expr> <Nul> coc#refresh()
function! s:check_back_space() abort
let col = col('.') - 1
@@ -359,7 +150,7 @@ function! s:check_back_space() abort
endfunction
" Enable show hidden in NerdTree
let g:NERDTreeShowHidden=1
let NERDTreeShowHidden=1
" latex
let g:tex_flavor = "latex"
@@ -371,13 +162,13 @@ let g:vimspector_install_gadgets = [ 'debugpy', 'vscode-go', 'CodeLLDB', 'vscode
""""""""""""""""""""""""""""""""
" Theme
""""""""""""""""""""""""""""""""
" colorscheme gruvbox
" colorscheme default
"colorscheme gruvbox
"colorscheme default
colorscheme dracula
let g:gruvbox_invert_selection='0'
let g:gruvbox_contrast_dark = 'hard'
set background=dark
" hi Normal ctermbg=NONE
"hi Normal ctermbg=NONE
hi Pmenu ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#64666d gui=NONE
hi PmenuSel ctermfg=NONE ctermbg=246 cterm=NONE guifg=NONE guibg=#204a87 gui=NONE
hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE
@@ -386,14 +177,11 @@ hi DiffAdd cterm=BOLD ctermfg=NONE ctermbg=22
hi DiffDelete cterm=BOLD ctermfg=NONE ctermbg=52
hi DiffChange cterm=BOLD ctermfg=NONE ctermbg=23
hi DiffText cterm=BOLD ctermfg=NONE ctermbg=23
set t_ZH="\e[3m"
set t_ZR="\e[23m"
highlight Comment cterm=italic gui=italic
highlight htmlArg gui=italic cterm=italic
" column
" columne
set textwidth=80
set colorcolumn=80
" highlight ColorColumn ctermbg=235
highlight ColorColumn ctermbg=236
""""""""""""""""""""""""""""""""
@@ -408,23 +196,18 @@ function! StatuslineGit()
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
endfunction
set laststatus=3
lua <<EOF
vim.o.statusline = table.concat({
"%#IncSearch#",
"%{&filetype!=#''?' ['.&filetype..'] ':' '}",
"%{&modified?'[+] ':''}",
"%#CursorLineNr#",
" %F",
"%=",
"%#CursorLineNr#",
"%{StatuslineGit()}",
"%#Search#",
" %l/%L",
" [%c]",
})
EOF
set statusline=
set statusline+=%#IncSearch#
set statusline+=\ %y
set statusline+=\ %m
set statusline+=\ %r
set statusline+=%#CursorLineNr#
set statusline+=\ %F
set statusline+=%= "Right side settings
set statusline+=%{StatuslineGit()}
set statusline+=%#Search#
set statusline+=\ %l/%L
set statusline+=\ [%c]
" Disable godoc keys
let g:go_doc_keywordprg_enabled = 0
@@ -434,11 +217,19 @@ set completeopt-=preview
" Keyboard shortcuts
""""""""""""""""""""""""""""""""
let mapleader = "\<Space>"
nmap <leader>a :CocAction<CR>
nmap <leader>d :CocDiagnostics<CR>
nmap <leader>2 :w!<cr>
" Adding print message
autocmd FileType python nmap <leader>f i print("--------DEBUG--------")<CR>print()<CR>print("--------END DEBUG--------")<UP><LEFT>
autocmd FileType sh nmap <leader>f i echo -e "--------DEBUG--------"<CR>echo -e ""<CR>echo -e "--------END DEBUG--------"<UP><LEFT>
" Go to definition
nmap <leader>gd <Plug>(coc-definition)
nmap <leader>gy <Plug>(coc-type-definition)
nmap <leader>gi <Plug>(coc-implementation)
nmap <leader>gr <Plug>(coc-references)
nmap <leader>rr <Plug>(coc-rename)
nmap <silent> <leader>gp <Plug>(coc-diagnostic-prev)
nmap <silent> <leader>gn <Plug>(coc-diagnostic-next)
nnoremap <leader>cr :CocRestart
" Adding commentary
xmap <leader>c <Plug>Commentary
@@ -451,28 +242,20 @@ nmap <C-_> <Plug>Commentary
omap <C-_> <Plug>Commentary
nmap <C-_> <Plug>CommentaryLine
" Better tab (visual mode only - insert mode Tab is handled by nvim-cmp above)
" Better tab
vnoremap <Tab> >
vnoremap <S-Tab> <
" Better word
nmap yw vey
" Select all text
nmap <C-a> gg<S-v>G
" Telescope
nmap <Leader>e <cmd>Telescope buffers<cr>
nmap <Leader>w <cmd>Telescope find_files<cr>
nmap <Leader>q <cmd>Telescope live_grep<cr>
nmap <Leader>g <cmd>Telescope git_branches<cr>
nmap <Leader>a <cmd>Telescope diagnostics<cr>
" FZF
nmap <Leader>e :Buffers<CR>
nmap <Leader>q :Rg<CR>
nmap <Leader>w :Files<CR>
" Resize window
nnoremap Ó :vertical resize -5<CR>
nnoremap Ô :res -5<CR>
nnoremap ū :res +5<CR>
nnoremap Ł :vertical resize +5<CR>
nnoremap <C-L> :vertical resize +5<CR>
nnoremap <C-H> :vertical resize -5<CR>
nnoremap <C-J> :res +5<CR>
nnoremap <C-K> :res -5<CR>
" Split window
nnoremap _ :vsp <CR>
@@ -484,7 +267,13 @@ nnoremap <Leader><F5> :edit! <CR>
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" Moving line up or down using alt
" Tab in the coc to help select right autocomplete
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
"" Moving line up or down using alt
nnoremap <A-Up> :m-2<CR>
nnoremap <A-Down> :m+<CR>
inoremap <A-Up> <Esc>:m-2<CR>
@@ -508,36 +297,17 @@ vnoremap <A-k> :m '<-2<CR>gv=gv
nnoremap <Leader>s :%s//g<Left><Left>
vnoremap <Leader>s :s//g<Left><Left>
" Better adding into beginning and ending line
" Better adding into begging and ending line
vnoremap F <C-v>$A
vnoremap f <C-v>0I
" Better management of tabs
nnoremap <C-t> :tabnew<CR>
nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR>
inoremap <F7> <Esc>:tabprevious<CR>i
inoremap <F8> <Esc>:tabnext<CR>i
nnoremap <Leader>k :tabprevious<CR>
nnoremap <Leader>j :tabnext<CR>
inoremap <C-t> <Esc>:tabnew<CR>
nnoremap <Leader>9 :tabprevious<CR>
nnoremap <Leader>0 :tabnext<CR>
" Better moving
nnoremap J }
nnoremap K {
vnoremap J }
vnoremap K {
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
tnoremap <C-h> <C-\><C-n><C-w>h
tnoremap <C-j> <C-\><C-n><C-w>j
tnoremap <C-k> <C-\><C-n><C-w>k
tnoremap <C-l> <C-\><C-n><C-w>l
" Copy into system
noremap <Leader>y "*y
@@ -558,57 +328,31 @@ let g:multi_cursor_quit_key = '<Esc>'
" Others
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
map <C-d> :NvimTreeToggle<CR>
nnoremap <leader>r :NvimTreeRefresh<CR>
nnoremap <leader>n :NvimTreeFindFile<CR>
map <C-d> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :tabnew <CR>
nnoremap <F11> :Goyo <CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
map <F3> :setlocal spell! spelllang=en<CR>
map <F3> :setlocal spell! spelllang=en_gb<CR>
map <F4> :setlocal spell! spelllang=pl<CR>
" Human Errors
:command! W w
:command! Q q
:command! Wq wq
:command! X x
""""""""""""""""""""""""""""""""
" Custom functions
""""""""""""""""""""""""""""""""
lua <<EOF
function go_org_imports(wait_ms)
local params = vim.lsp.util.make_range_params()
params.context = {only = {"source.organizeImports"}}
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, wait_ms)
for cid, res in pairs(result or {}) do
for _, r in pairs(res.result or {}) do
if r.edit then
local enc = (vim.lsp.get_client_by_id(cid) or {}).offset_encoding or "utf-16"
vim.lsp.util.apply_workspace_edit(r.edit, enc)
end
end
end
end
EOF
""""""""""""""""""""""""""""""""
" Files
""""""""""""""""""""""""""""""""
" Bash
if executable('shfmt')
let &l:formatprg='shfmt -i ' . &l:shiftwidth . ' -ln posix -sr -ci -s'
endif
" Ansible
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
autocmd BufWritePre *.yml :Prettier <CR>
let g:coc_filetype_map = {
\ 'yaml.ansible': 'ansible',
\ }
let g:shfmt_extra_args = '-i 4 -ci -sr -s'
let g:shfmt_fmt_on_save = 1
let g:shfmt_opt="-ci"
" Bash
autocmd FileType sh
\ autocmd BufWritePre <buffer> :Prettier <CR>
" Python
autocmd BufRead,BufNewFile *.py set textwidth=0
autocmd BufRead,BufNewFile *.py set fo-=t
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
noremap <Leader>f :silent! undojoin \| Neoformat ruff <CR> :w<CR>
" Newsboat
autocmd BufRead,BufNewFile urls set textwidth=0
@@ -626,48 +370,20 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Yaml
autocmd BufRead,BufNewFile *.yaml,*.yml let g:indentLine_enabled = 1
autocmd BufRead,BufNewFile *.yaml,*.yml let g:indentLine_char = '⦙'
autocmd BufWritePre *.yaml,*.yml silent! undojoin | Neoformat prettier
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
" JSON
autocmd BufWritePre *.json silent! undojoin | Neoformat prettier
" GoLang
" Go
autocmd BufRead *.go set noexpandtab
autocmd BufWritePre *.go lua go_org_imports()
let g:go_def_mapping_enabled = 0
let g:go#fmt#autosave = v:true
autocmd BufWritePre *.go silent! undojoin | Neoformat
autocmd BufWritePre *.gomod silent! undojoin | Neoformat
autocmd BufWritePre *.go :silent call CocAction('runCommand', 'editor.action.organizeImport')
" Conf
au BufNewFile,BufRead *.conf setfiletype conf
" Mikrotik
au BufNewFile,BufRead *.mikrotik setfiletype routeros
" Ebuild
au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
" TOML
autocmd BufWritePre *.toml silent! undojoin | Neoformat taplo
" Terraform
autocmd BufWritePre *.tf lua vim.lsp.buf.format()
autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
" Markdown
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
autocmd BufWritePre *.md silent! undojoin | Neoformat mdformat
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e
" highlight the visual selection after pressing enter.
xnoremap <silent> <cr> "*y:silent! let searchTerm = '\V'.substitute(escape(@*, '\/'), "\n", '\\n', "g") <bar> let @/ = searchTerm <bar> echo '/'.@/ <bar> call histadd("search", searchTerm) <bar> set hls<cr>
""""""""""""""""""""""""""""""""
" FZF
""""""""""""""""""""""""""""""""
@@ -675,47 +391,3 @@ let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
set grepprg=rg\ --vimgrep
" Custom functions "
function! RemoveForti()
:%g/set uuid .*/d
:%g/set comment .*/d
:%s/ \+//g
:%s/edit \(\d\{1,}\)/edit 0/g
:g/^$/d
endfunction
function! RemoveFortiAddresses()
:e!
:%g/set uuid .*/d
:%g/set comment .*/d
:%s/ \+//g
:%s/edit \(\d\{1,}\)/edit 0/g
:%s/next\n/set allow-routing enable\rnext\r/g
:g/^$/d
:%!uniq
:w!
endfunction
function! BlurForti()
:%g/set uuid .*/d
:%g/set description .*/d
:%g/set comment .*/d
:%g/set comments .*/d
:%s/username .*/username "XXXXXXXXXXXXXXXXXXXXXXX"/g
:%s/dn .*/dn "XXXXXXXXXXXXXXXXXXXXXXX"/g
:%s/psksecret ENC .*/psksecret XXXXXXXXXXXXXXXXXXXXXXX/g
:%s/password ENC .*/password XXXXXXXXXXXXXXXXXXXXXXX/g
:%s/passwd ENC .*/passwd XXXXXXXXXXXXXXXXXXXXXXX/g
:%s/group-name .*/group-name "XXXXXXXXXXXXXXXXXXXXXXX"/g
:%s/ssh-rsa .*/ssh-rsa XXXXXXXXXXXXXXXXXXXXXXX/g
:%s/-----BEGIN OPENSSH PRIVATE KEY.*----/-----BEGIN OPENSSH PRIVATE KEY -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
:%s/-----BEGIN CERTIFICATE.*----/-----BEGIN CERTIFICATE -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
:%s/-----BEGIN ENCRYPTED PRIVATE KEY.*----/-----BEGIN ENCRYPTED PRIVATE KEY -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
:%s/"VPN_.*"/"VPN_XXXXX"/g
:%s/\v(\d{1,3}\.){3}\d{1,3}/X.X.X.X/g
endfunction
function! ColoursFortiSSL()
:%s/next\n/set color 23\rset allow-routing enable\rnext\r/g
endfunction
-2
View File
@@ -1,2 +0,0 @@
[global]
break-system-packages = true
+1 -1
View File
@@ -1,4 +1,4 @@
ext jpg = open -a Preview "$@"
ext jpg = feh --scale-down "$@"
#ext doc = openoffice4 "$@"
#ext odt = openoffice4 "$@"
+1 -11
View File
@@ -1,12 +1,2 @@
default-stream "1080p60,1080p,720p60,720p"
default-stream best
hls-live-edge 2
hls-segment-stream-data
player=mpv --cache 2048 --no-resume-playback
player-no-close
player=mpv
retry-max 100
retry-open 10
retry-streams 10
stream-segment-threads=4
twitch-disable-ads
twitch-low-latency
-8
View File
@@ -1,8 +0,0 @@
[user]
name = Marcin Woźniak
email = y0rune@aol.com
signingkey = D34FB8A44F324B8A
[include]
path = ~/.gituser.config
path = ~/.gitconfig.local
-52
View File
@@ -1,52 +0,0 @@
[gpg]
program = gpg
[commit]
gpgsign = true
verbose = true
[pull]
rebase = false
[push]
autoSetupRemote = true
[init]
defaultBranch = main
[alias]
ci = commit --verbose
co = checkout
cp = cherry-pick
df = !git --no-pager diff
br = !git branch | cat
dfh = !git --no-pager diff
diffh = !git --no-pager diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an - %ae>%Creset' --abbrev-commit --branches
prune-tags = !git tag -l | xargs git tag -d && git fetch -t
show = --no-pager show --color --pretty=format:%b
squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} \"$@\");};f"
st = status --ignore-submodules=dirty -s
untrack-file = !git update-index --assume-unchanged
exclude-file = !git update-index --assume-unchanged
c = commit --author='Marcin Woźniak <y0rune@aol.com> -s'
cw = commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com> -s'
retag = "!f() { if [ -z \"$1\" ]; then echo \"No version provided. Skipping git push.\"; else git tag --delete $1 2>/dev/null; git tag -a $1 -m \"Version $1\"; git push --tags -f; git push -f; fi; }; f"
delete-branch = "!$HOME/.local/bin/git-delete-branch"
[url "git@github.com:"]
insteadOf = "https://github.com/"
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
-4
View File
@@ -276,7 +276,3 @@ golang
.packettracer
.dlv
Cisco Packet Tracer 8.0.0
.local/bin/kubectl
.rustup
.local/tss-sdk
.local/bin/tss
-617
View File
@@ -1,617 +0,0 @@
#!/opt/homebrew/opt/bash/bin/bash
# shellcheck disable=2010,2045,2086,2155
# Path to the zsh folder
ZSHFOLDER=$HOME/.config/zsh
CONFIG="$HOME/.config"
OHMYZSH="$HOME/.oh-my-zsh"
mkdir -p $ZSHFOLDER $CONFIG $OHMYZSH
# Colours
RED='\033[0;31m'
GREEN='\033[0;0;32m'
NC='\033[0m'
# Stable version
TERRAFORM_VERSION="1.5.7"
# Python
if which python3 > /dev/null 2>&1; then
python="python3"
pip="pip3"
else
export PYTHONVERSION=$(ls -la /opt/homebrew/opt/ |
grep -iEo 'python@.* ->' |
sed 's/ ->//g' |
sort |
tail -n1 |
sed 's/python@//g')
python="/opt/homebrew/bin/python$PYTHONVERSION"
pip="/opt/homebrew/bin/pip$PYTHONVERSION"
fi
PIPEXT="--user --force --quiet --no-warn-script-location"
PIPEXTPRE="--pre $PIPEXT"
# Gentoo release
GENTOO="/etc/gentoo-release"
# Function for basic install
install=""
if [[ "$(uname)" == "Darwin" ]]; then
install="brew install"
elif [[ -f $GENTOO ]]; then
install="sudo emerge --update"
elif [[ -f /etc/debian_version ]]; then
sudo apt update
install="sudo apt install -y"
elif [[ -f /etc/redhat-release ]]; then
install="sudo dnf install"
fi
function timestamp() {
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
}
function err() {
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
}
function command_start() {
timestamp "Command $* has been started."
if ! "$@"; then
err "---------"
err "Command $* went wrong."
err "---------"
# exit
fi
timestamp "Command $* has been ended."
}
function command_exists() {
if command -v "$1" > /dev/null 2>&1; then
timestamp "Command $1 has been found"
else
err "Command $1 has been NOT found"
# Return false
return 1
fi
}
function update_pip() {
# Update the pip
if [[ "$(uname)" == "Darwin" ]]; then
$python -m pip install --upgrade pip --user --no-warn-script-location
elif [[ -f $GENTOO ]]; then
$install dev-python/pip
fi
}
function install_neovim_module_for_python() {
# Python module in neovim
$pip install pynvim neovim imps $PIPEXTPRE
# Ruby module for neovim
gem install solargraph
# Node module for neovim
npm install @github/copilot-language-server -g --force
npm install tree-sitter-cli -g --force
}
function install_node() {
if command_exists npm; then
timestamp "Node has been found"
else
if [[ "$(uname)" == "Darwin" ]]; then
brew uninstall node --ignore-dependencies
sudo rm -rf /opt/homebrew/lib/node_modules/npm/
$install node
elif [[ -f $GENTOO ]]; then
$install dev-lang/nodejs
fi
fi
}
function install_pyright() {
# Install pyright
sudo npm -s -g i pyright --force
}
function install_mdformat() {
# Install mdformat
$pip install mdformat $PIPEXTPRE
}
function install_ruff() {
# Install ruff
$pip install ruff $PIPEXTPRE
}
function install_bash-language-server() {
# Install bash-language-server
sudo npm -s -g i bash-language-server --force
}
function install_yaml-language-server() {
# Install yaml-language-server
sudo npm -s -g i yaml-language-server --force
}
function install_shfmt() {
# Install shfmt
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
}
function install_lazy() {
# Install shfmt
GO111MODULE=on go install github.com/jesseduffield/lazygit@latest
GO111MODULE=on go install github.com/jesseduffield/lazydocker@latest
}
function install_dlv() {
GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest
}
function install_terraform_stable() {
# Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
if [[ "$(uname)" == "Darwin" ]]; then
$install tflint -q
$install tfenv -q
TFENV_ARCH=amd64 tfenv install "$TERRAFORM_VERSION"
tfenv use "$TERRAFORM_VERSION"
else
GO111MODULE=on go install github.com/hashicorp/terraform@v"$TERRAFORM_VERSION"
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi
}
function install_terraform() {
# Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
if [[ "$(uname)" == "Darwin" ]]; then
$install tflint -q
$install tfenv -q
TFENV_ARCH=amd64 tfenv install latest
mapfile -t TFENV_VER_ARRAY < <(tfenv list | grep -ioE ' [0-9.]+' | sed -e '1,1d')
if [ "${#TFENV_VER_ARRAY[@]}" -gt "2" ]; then
for i in "${TFENV_VER_ARRAY[@]}"; do
tfenv uninstall "$i" && timestamp "Removed - terraform '$i' version"
done
fi
else
GO111MODULE=on go install github.com/hashicorp/terraform@latest
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi
}
function install_terragrunt() {
# Install terragrunt
if [[ "$(uname)" == "Darwin" ]]; then
$install terragrunt -q
else
TERRAGRUNT=$HOME/.local/bin/terragrunt
REMOTE_VERSION=$(curl -s https://api.github.com/repos/gruntwork-io/terragrunt/releases/latest | grep -iEo '"tag_name":.*' | sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
CURRENT_VERSION="0.0.0"
[ -f $TERRAGRUNT ] && CURRENT_VERSION=$($TERRAGRUNT version)
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
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
fi
}
function install_shellcheck() {
# Install shellcheck
if [[ "$(uname)" == "Darwin" ]]; then
$install shellcheck -q
else
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi
}
function install_marksman() {
# Install marksman
if [[ "$(uname)" == "Darwin" ]]; then
$install marksman -q
else
wget https://github.com/artempyanykh/marksman/releases/latest/download/marksman-linux-x64 -O $HOME/.local/bin/marksman
chmod +x $HOME/.local/bin/marksman
fi
}
function install_go() {
# Install the golang
if [[ "$(uname)" == "Darwin" ]]; then
$install golang -q
elif [[ -f $GENTOO ]]; then
$install dev-lang/go
fi
}
function install_gopls() {
# Install gopls
GO111MODULE=on go install golang.org/x/tools/gopls@latest
}
function install_ansible() {
# Install Ansible
$pip install ansible ansible-lint ansible-core $PIPEXTPRE
$pip install ansible-parallel $PIPEXTPRE
}
function install_ansible-language-server() {
# Install ansible-language-server
sudo npm -s -g i @ansible/ansible-language-server --force
sudo npm -s -g i yaml-language-server --force
}
function install_azure_cli() {
# Install azure_cli
$install azure-cli
}
function install_awscli() {
# Install awscli
$install awscli
}
function install_ytdlp() {
# Install yt-dlp
$pip install yt-dlp $PIPEXTPRE
}
function install_spotifydl() {
# Install spotify_dl
$pip install spotdl $PIPEXTPRE
}
function install_fzf() {
# Install fzf
FOLDER="$CONFIG/fzf"
mkdir -p $FOLDER
if [ -d $FOLDER ]; then
cd $CONFIG || err "Folder $CONFIG has been NOT found"
git clone https://github.com/junegunn/fzf.git $FOLDER && timestamp "Cloning the FZF"
cd $FOLDER || err "Folder $FOLDER has been NOT found"
git pull -q && timestamp "Pulled the $FOLDER configuration"
make install
fi
}
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"
curl -s https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion \
-o "$ZSHFOLDER"/azure-cli/az.completion &&
timestamp "Downloaded the newest version of az plugin for zsh"
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"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git &&
timestamp "Cloning the zsh-syntax-highlighting"
git clone https://github.com/zsh-users/zsh-autosuggestions.git &&
timestamp "Cloning the zsh-autosuggestions"
fi
for i in $(ls $ZSHFOLDER); do
FOLDER="$ZSHFOLDER/$i"
if [ -d "$FOLDER/.git" ]; then
cd "$FOLDER" || err "Folder $FOLDER has been NOT found"
git pull -q && timestamp "Pulling the $FOLDER configuration"
fi
done
if [ ! -d $OHMYZSH ]; then
cd $OHMYZSH || err "Folder $OHMYZSH has been NOT found"
git pull -q && timestamp "Pulling the $OHMYZSH configuration"
fi
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"
curl -s https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion && timestamp "Downloaded the newest version of az plugin for zsh"
}
function install_speedtest() {
# Install speedtest-cli
$pip install speedtest-cli $PIPEXTPRE
}
function install_gh_cli() {
# Install gh-cli
if [[ "$(uname)" == "Darwin" ]]; then
$install gh
elif [[ -f $GENTOO ]]; then
$install dev-util/github-cli
fi
}
function install_kubernetes() {
# Install kubectl
LINK=""
CURRENT_VERSION=""
REMOTE_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
KUBECTL_LOCATION="/opt/homebrew/bin/kubectl"
[ -f $KUBECTL_LOCATION ] && CURRENT_VERSION=$($KUBECTL_LOCATION version --client | grep --color=no -iEo 'Client Version: v[0-9\.]+' | grep -ioE --color=no 'v[0-9\.]+')
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
timestamp "The current version of the kubectl is the same as the newest version"
return 0
fi
if [[ "$(uname)" == "Darwin" ]]; then
LINK="http://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
else
LINK="http://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
fi
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -O $KUBECTL_LOCATION
chmod +x $KUBECTL_LOCATION
}
function install_rust() {
# Install rust
if command_exists rustc; then
rustup update
rustup component add rust-analyzer
else
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
fi
}
function install_tss_client() {
# Install tss
TSS_VERSION_STABLE="$1"
CURRENT_VERSION="1.5.7"
if [ -z "$TSS_VERSION_STABLE" ]; then
TSS_VERSION_STABLE=""
timestamp "TSS_VERSION_STABLE variable is empty, the latest version will be installed"
fi
# Example link: https://downloads.ss.thycotic.com/secretserversdk/1.5.7/secretserver-sdk-1.5.7-linux-x64.zip
TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm"
LINK=""
REMOTE_VERSION=""
if [ "$(uname)" == "Darwin" ]; then
if [ -n "$TSS_VERSION_STABLE" ]; then
LINK="https://downloads.ss.thycotic.com/secretserversdk/$TSS_VERSION_STABLE/secretserver-sdk-$TSS_VERSION_STABLE-osx-x64.zip"
REMOTE_VERSION=$TSS_VERSION
else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-osx-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g')
fi
else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-linux-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-linux' | sed 's/-linux//g')
fi
TSSFOLDER="$HOME/.local/tss-sdk"
TSSLINK="$HOME/.local/bin/tss"
[ -f $TSSLINK ] && CURRENT_VERSION=$($TSSLINK version)
timestamp "Current version of the TSS-SDK: $CURRENT_VERSION"
timestamp "Remote version of the TSS-SDK: $REMOTE_VERSION"
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
timestamp "The current version of the TSS-SDK is the same as the newest version"
return 0
else
rm -rfv $TSSFOLDER $TSSLINK
mkdir $TSSFOLDER
timestamp "Downloading the newest version of the TSS-SDK"
timestamp "Link: $LINK"
wget $LINK -P $TSSFOLDER
unzip $TSSFOLDER/secretserver-sdk-*.zip -d $TSSFOLDER
rm -rfv $TSSFOLDER/secretserver-sdk-*.zip
ln -s $TSSFOLDER/tss $TSSLINK
chmod +x $TSSLINK
fi
}
function install_precommit() {
# Install pre-commit
$pip install pre-commit $PIPEXTPRE
}
function install_streamlink() {
# Install streamlink
$pip install streamlink $PIPEXTPRE
}
function install_brew_programs() {
# Install brew programs
INSTALLED_PROGRAMS=$(brew list)
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
timestamp "Installing brew programs"
for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
timestamp "Installing the $i brew program"
brew install $i --force
if $? -ne 0; then
err "Failed to install the $i brew program"
fi
fi
done
timestamp "Installing brew cask programs"
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
timestamp "Installing the $i brew cask program"
brew install $i --cask --force
fi
done
xattr -r -d com.apple.quarantine /Applications/Spotify.app
xattr -r -d com.apple.quarantine /opt/homebrew/bin/mpv /Applications/mpv.app
duti -s io.mpv avi all
duti -s io.mpv mkv all
duti -s io.mpv mp4 all
duti -s io.mpv ts all
xattr -r -d com.apple.quarantine /Applications/chatterino.app
brew cleanup --prune=all
}
function install_prettier() {
$install prettier
$install prettierd
}
function install_google_cloud_sdk() {
# Install google cloud sdk
if [[ "$(uname)" == "Darwin" ]]; then
$install google-cloud-sdk
else
curl -s https://sdk.cloud.google.com | bash
fi
}
function install_lib_wandio() {
local REPO="LibtraceTeam/wandio"
local REMOTE_VERSION=$(curl -s \
https://api.github.com/repos/$REPO/releases/latest |
grep -iEo '"tag_name":.*' |
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
local RELEASE="${REMOTE_VERSION}.tar.gz"
local DEST="/tmp/wandio-$REMOTE_VERSION.tar.gz"
local DEST_FOLDER="/tmp/wandio-$REMOTE_VERSION"
$install autoconf automake libtool
wget https://github.com/$REPO/archive/refs/tags/$RELEASE -O $DEST
tar -xvf $DEST -C /tmp
cd $DEST_FOLDER || err "Folder $DEST_FOLDER has been NOT found"
./bootstrap.sh
./configure
make -j"$(nproc)"
sudo make install && timestamp "Installed the newest version of the $REPO"
rm -rfv $DEST $DEST_FOLDER
}
function install_bgpreader() {
local CURRENT_VERSION="0.0.0"
local REPO="CAIDA/libbgpstream"
local NAME="${REPO##*/}"
local REMOTE_VERSION=$(curl -s \
https://api.github.com/repos/$REPO/releases/latest |
grep -iEo '"tag_name":.*' |
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
local RELEASE="$NAME-${REMOTE_VERSION/v/}.tar.gz"
local DEST="/tmp/$NAME-$REMOTE_VERSION.tar.gz"
local DEST_FOLDER="/tmp/$NAME-$REMOTE_VERSION"
if command_exists bgpreader; then
CURRENT_VERSION="v$(bgpreader -v 2>&1 | grep -ioE '[0-9\.]+')"
fi
if [ "$CURRENT_VERSION" == "$REMOTE_VERSION" ]; then
timestamp "The current version of the BGPREADER is the same as the newest version"
return 0
else
$install autoconf automake libtool
command_start install_lib_wandio
wget https://github.com/$REPO/releases/download/$REMOTE_VERSION/$RELEASE -O $DEST
tar -xvf $DEST -C /tmp
cd /tmp/$NAME-* || err "Folder /tmp/$NAME-* has been NOT found"
./configure --without-kafka
make -j"$(nproc)"
sudo make install && timestamp "Installed the newest version of the $REPO"
rm -rfv /tmp/$NAME-*
fi
}
function install_font_terminess() {
local REPO="ryanoasis/nerd-fonts"
local REMOTE_VERSION=$(curl -s \
https://api.github.com/repos/$REPO/releases/latest |
grep -iEo '"tag_name":.*' |
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
local RELEASE="Terminus.zip"
local DEST="/tmp/Terminess"
if [ ! -f $HOME/Library/Fonts/TerminessNerdFont-Regular.ttf ]; then
mkdir -p $DEST
cd $DEST || err "Folder $DEST has been NOT found"
wget https://github.com/$REPO/releases/download/$REMOTE_VERSION/$RELEASE -O $DEST/$RELEASE
unzip $RELEASE -d $DEST
mv $DEST/*.ttf ~/Library/Fonts
cd $HOME || err "Folder $HOME has been NOT found"
rm -rfv $DEST
fi
}
function main() {
command_start update_pip
command_start install_neovim_module_for_python
command_start install_node
command_start install_go
# command_start install_pyright
command_start install_mdformat
command_start install_ruff
command_start install_lazy
command_start install_dlv
command_start install_bash-language-server
command_start install_yaml-language-server
command_start install_marksman
command_start install_shfmt
command_start install_shellcheck
command_start install_gopls
# command_start install_terraform
command_start install_terraform_stable
command_start install_terragrunt
command_start install_azure_cli
command_start install_ansible
command_start install_ansible-language-server
command_start install_ytdlp
command_start install_spotifydl
command_start install_awscli
command_start install_speedtest
command_start install_gh_cli
command_start install_kubernetes
command_start install_rust
command_start install_tss_client "1.5.9"
command_start install_precommit
command_start install_streamlink
command_start install_fzf
command_start install_prettier
command_start install_google_cloud_sdk
command_start install_bgpreader
command_start install_font_terminess
command_start install_zsh_addons
command_start install_brew_programs
}
main
-6
View File
@@ -1,6 +0,0 @@
#/bin/bash
function main(){
wineapp=$(readlink -f $(whereis wine64))
"$wineapp" "~/Applications/Winbox.exe"
}
main
+27 -4
View File
@@ -1,11 +1,33 @@
#!/bin/bash
MEGA_VOLUME="/Volumes/MEGA"
ELEMENTS="/Volumes/ELEMENTS"
MEGA="$HOME/MEGA"
STARTED="$HOME/.config/backup-started-$(date +%d-%m)"
function main() {
if [[ ! -e "$STARTED" ]]; then
function main(){
if [[ ! -e "$STARTED" ]]
then
echo -e "[LOG] $(date) Started $HOME/Documents/Collage/Semestr2 ->\
$MEGA/Documents/Collage/Semestr2"
rsync --bwlimit=2048 --update --progress -r \
--exclude '*.mp4' --exclude '*.mkv'\
--exclude '.debris' \
"$HOME/Documents/Collage/Semestr2/"\
"$MEGA/Documents/Collage/Semestr2/"
echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
$MEGA/Documents/Collage/"
echo -e "[LOG] $(date) Started $HOME/Documents/Collage/Semestr2 ->\
$ELEMENTS/Collage/Semestr2"
rsync --bwlimit=2048 --update --progress -r \
--exclude '*.mp4' --exclude '*.mkv'\
--exclude '.debris' \
"$HOME/Documents/Collage/Semestr2/"\
"$ELEMENTS/Collage/Semestr2/"
echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
$ELEMENTS/Documents/Collage/"
touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED"
echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"
@@ -16,7 +38,8 @@ function main() {
rsync --bwlimit=2048 --update --progress -r "$HOME/.gnupg/" "$MEGA/gnupg/"
echo -e "[LOG] $(date) Finished $HOME/.gnupg/ -> $MEGA/gnupg"
if [[ -e "$MEGA_VOLUME" ]]; then
if [[ -e "$MEGA_VOLUME" ]]
then
echo -e "[LOG] $(date) Started $MEGA -> $MEGA_VOLUME"
rsync --bwlimit=2048 --update --progress -r --exclude '.DS_Store' \
--exclude '.debris' \
@@ -32,4 +55,4 @@ function main() {
fi
}
main >"$HOME/.config/backup.log"
main > "$HOME/.config/backup.log"
-58
View File
@@ -1,58 +0,0 @@
#!/bin/bash
################################################################################
#
# Marcin Wozniak
# Last edit: 2023-05-05
#
# shellcheck disable=1091
################################################################################
set -u
set -e
# Colours
RED='\033[0;31m'
GREEN='\033[0;0;32m'
NC='\033[0m'
ADDR=$1
LOG_FILE="bgp-$ADDR-$(date -I).log"
function timestamp() {
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
}
function err() {
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
}
function command_start() {
timestamp "Command $* has been started."
if ! "$@"; then
err "Command $* went wrong."
exit 0
fi
timestamp "Command $* has been ended."
}
function bgpcheck() {
timestamp "CHECKING BGP FOR $ADDR at RT.IR9.AMS.NL.retn.net"
curl --silent \
"https://lg.retn.net/cgi/LG.cgi?r=87&p=4&q=b&a=$ADDR" |
sed '/table>/d;/<link/d;/<meta/d;/tr>/d;/td>/d;/query/d;/html/d;/head/d;/title/d;/img/d;/body/d;/center/d;/h2/d;/<p>/d;/<hr /d '
timestamp "---------------------------------------"
timestamp "CHECKING BGP FOR $ADDR at RT.NIA.POZ.PL.retn.net"
curl --silent \
"https://lg.retn.net/cgi/LG.cgi?r=ab&p=4&q=b&a=$ADDR" |
sed '/table>/d;/<link/d;/<meta/d;/tr>/d;/td>/d;/query/d;/html/d;/head/d;/title/d;/img/d;/body/d;/center/d;/h2/d;/<p>/d;/<hr /d'
timestamp "---------------------------------------"
}
function main() {
command_start bgpcheck
}
main | tee "$LOG_FILE"
+1 -1
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\ Nightly "$@"
[[ $KERNEL =~ "Darwin" ]] && open -a firefox -u "$2"
#[[ $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
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
cidr2mask() {
local i mask=""
local full_octets=$(($1 / 8))
local partial_octet=$(($1 % 8))
for ((i = 0; i < 4; i += 1)); do
if [ $i -lt $full_octets ]; then
mask+=255
elif [ $i -eq $full_octets ]; then
mask+=$((256 - 2 ** (8 - partial_octet)))
else
mask+=0
fi
test $i -lt 3 && mask+=.
done
echo $mask
}
cidr2mask "$@"
-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
SERVER="$1"
if [ -z "$SERVER" ]; then
echo "Usage: $0 <server_ip>"
exit 1
fi
echo "Starting..."
echo
# Upload test (client sends data to server)
UPLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 --json | jq '.end.sum_sent.bits_per_second / 1000000')
# Download test (client receives data from server)
DOWNLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 -R --json | jq '.end.sum_received.bits_per_second / 1000000')
# Print summary
echo "SERVER: $SERVER"
echo "UPLOAD: $(printf "%.2f" "$UPLOAD") Mbps"
echo "DOWNLOAD: $(printf "%.2f" "$DOWNLOAD") Mbps"
-16
View File
@@ -1,16 +0,0 @@
#!/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
-42
View File
@@ -1,42 +0,0 @@
################################################################################
#
# Marcin Wozniak
#
# shellcheck disable=1091
################################################################################
# Colours
RED='\033[0;31m'
GREEN='\033[0;0;32m'
NC='\033[0m'
function timestamp() {
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
}
function err() {
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
exit 0
}
function removelogs() {
find "$DIR/logs" -mindepth 1 -mtime +365 -delete
}
function command_start() {
timestamp "Command $* has been started."
if ! "$@"; then
err "Command $* went wrong."
# sendmailerr
fi
timestamp "Command $* has been ended."
}
function command_exists() {
if command -v "$1" > /dev/null 2>&1; then
timestamp "Command $1 has been found"
else
err "Command $1 has been NOT found"
# sendmailerr
fi
}
-44
View File
@@ -1,44 +0,0 @@
#!/bin/bash
################################################################################
#
# Marcin Wozniak
# y0rune@aol.com
#
# That script is for easier getting a Meraki network list
#
# shellcheck disable=1091,2048
################################################################################
set -e
function timestamp() {
echo "[+] $(date +'%F %T') [INFO] $*"
}
function err() {
echo "[-] $(date +'%F %T') [ERROR] $*" >&2
}
function command_start() {
timestamp "Command $* has been started."
if ! $*; then
err "Command $* went wrong."
exit
fi
timestamp "Command $* has been ended."
}
function main() {
[ -z "$MERAKI_API_KEY" ] && err "Meraki Key is not set up. Please set it via export MERAKI_API_KEY=<XXXXX>"
[ -z "$MERAKI_ORG_ID" ] && err "Meraki Organization ID is not set up. Please set it via export MERAKI_ORG_ID=<XXXXX>"
timestamp "Getting a list of the network"
curl --silent \
-H 'Content-Type: application/json' \
-H 'X-Cisco-Meraki-API-Key: '"$MERAKI_API_KEY"'' \
https://api.meraki.com/api/v1/organizations/"$MERAKI_ORG_ID"/networks |
jq -M '.[] | .id + " " + .name'
}
main "$@"
-71
View File
@@ -1,71 +0,0 @@
#!/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"
FOLDER_DUB_SETS="/Volumes/Music/Jellyfin/Playlist-Dub-Sets"
# Check if folder exists
[ ! -d $FOLDER_AUDIOBOOK ] && exit 1
[ ! -d $FOLDER_DUB ] && exit 1
[ ! -d $FOLDER_FAV ] && exit 1
[ ! -d $FOLDER_PIANO ] && exit 1
[ ! -d $FOLDER_DUB_SETS ] && 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
rm -rfv $FOLDER_DUB_SETS/errors.txt
# Download new files for DUB
cd $FOLDER_DUB || exit 1
spotdl --user-auth --keep-alive \
--threads 8 \
--output "{artist}/{album}/{track-number} - {title}.{output-ext}" \
download "https://open.spotify.com/playlist/5Y6hRcNinZaoZGiadaXDEC?si=78d89f9a1a974fdf" \
--print-errors \
--save-errors $FOLDER_DUB/errors.txt \
--yt-dlp-args no-check-certificates
# Download new files for NEW
cd $FOLDER_FAV || exit 1
spotdl --user-auth --keep-alive \
--threads 8 \
--output "{artist}/{album}/{track-number} - {title}.{output-ext}" \
download "https://open.spotify.com/playlist/2P063NZZOPC9gvZrPAHZh9?si=33c34cdd981c4949" \
--print-errors \
--save-errors $FOLDER_FAV/errors.txt \
--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
rsync -h --progress --recursive --ignore-existing \
$FOLDER_DUB_SETS/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub-Sets
# 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"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub-Sets; 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'
+13 -38
View File
@@ -2,51 +2,26 @@
# shellcheck disable=2162
function delete_local_branch() {
function delete_local_branch(){
git branch -D "$1"
}
function delete_remote_branch() {
function delete_remote_branch(){
git push origin --delete "$1"
}
function list_of_the_branches() {
echo
echo "List of branches:"
echo -e "$(git branch)"
echo
}
echo
echo "List of branches:"
echo -e "$(git branch)"
echo
function remove_branch() {
BRANCH="$1"
echo "$BRANCH"
while true; do
read -p "Select branch to remove: " BRANCH
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
case $CHOOSE in
[Bb]*)
delete_local_branch "$BRANCH"
delete_remote_branch "$BRANCH"
unset -f BRANCH
;;
[Ll]*)
delete_local_branch "$BRANCH"
unset -f BRANCH
;;
[Rr]*)
delete_remote_branch "$BRANCH"
unset -f BRANCH
;;
*) echo "Please write good answer" ;;
[Bb]* ) delete_local_branch "$BRANCH" && delete_remote_branch "$BRANCH" ;;
[Ll]* ) delete_local_BRANCH "$BRANCH";;
[Rr]* ) delete_remote_BRANCH "$BRANCH";;
* ) echo "Please write good answer";;
esac
}
BRANCH="$1"
if [ -z "$BRANCH" ]; then
while true; do
list_of_the_branches
read -p "Select branch to remove: " BRANCH
remove_branch "$BRANCH"
done
else
remove_branch "$BRANCH"
fi
done
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
BRANCH=$1
git checkout main
git checkout master
git checkout -b "$BRANCH"
git checkout "$BRANCH"
git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH"
git pull
git reset --hard origin/"$BRANCH"
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" > /dev/null
docker rm "$(docker ps --all | grep -i jupyter| awk '{print $1}')" > /dev/null
docker pull jupyter/scipy-notebook:latest
docker run \
--rm \
-p 8888:8888 \
-e JUPYTER_ENABLE_LAB=yes \
-v "$HOME/Documents/Collage/Semestr2/MG":/home/jovyan/ \
jupyter/scipy-notebook
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
docker rm "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
docker pull jupyter/scipy-notebook:latest
docker run \
--rm \
-p 8888:8888 \
-e JUPYTER_ENABLE_LAB=yes \
-v "$HOME/MEGA/Documents/Collage/":/home/jovyan/ \
jupyter/scipy-notebook
-20
View File
@@ -1,20 +0,0 @@
#!/bin/bash
mask2cidr() {
local mask=$1
# In RFC 4632 netmasks there's no "255." after a non-255 byte in the mask
local left_stripped_mask=${mask##*255.}
local len_mask=${#mask}
local len_left_stripped_mask=${#left_stripped_mask}
local conversion_table=0^^^128^192^224^240^248^252^254^
local number_of_bits_stripped=$(((len_mask - len_left_stripped_mask) * 2))
local signifacant_octet=${left_stripped_mask%%.*}
local right_stripped_conversion_table=${conversion_table%%$signifacant_octet*}
local len_right_stripped_conversion_table=${#right_stripped_conversion_table}
local number_of_bits_from_conversion_table=$((len_right_stripped_conversion_table / 4))
echo $((number_of_bits_stripped + number_of_bits_from_conversion_table))
}
mask2cidr "$@"
-30
View File
@@ -1,30 +0,0 @@
#!/bin/bash
~/.local/bin/sidebar-restore-macos
open -gj "afp://10.0.0.14/Downloads"
sleep 10
open -gj "afp://10.0.0.14/Anime"
sleep 2
open -gj "afp://10.0.0.14/Music"
sleep 2
open -gj "afp://10.0.0.14/Video"
sleep 2
open -gj "afp://10.0.0.14/Series"
sleep 2
open -gj "afp://10.0.0.14/Photos"
sleep 2
open -gj "afp://10.0.0.14/Backups"
sleep 2
open -gj "afp://10.0.0.14/Recordings"
sleep 2
open -gj "afp://10.0.0.14/Work"
sleep 2
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/
/usr/local/bin/mysides add Synology file:///Volumes/Backups/
/usr/local/bin/mysides add Synology file:///Volumes/Downloads/
/usr/local/bin/mysides add Synology file:///Volumes/Music/
/usr/local/bin/mysides add Synology file:///Volumes/Video/
/usr/local/bin/mysides add Synology file:///Volumes/Series/
/usr/local/bin/mysides add Synology file:///Volumes/Photos/
/usr/local/bin/mysides add Synology file:///Volumes/Anime/
/usr/local/bin/mysides add Synology file:///Volumes/Work
-1
View File
@@ -2,4 +2,3 @@
KERNEL=$(uname -sr)
[[ $KERNEL =~ "icrosoft" ]] && $HOME/.local/bin/wsl-notify "$@"
[[ $KERNEL =~ "gentoo" ]] && /usr/bin/notify-send "$@"
[[ $KERNEL =~ "Darwin" ]] && osascript -e "display notification \"$*\""
-48
View File
@@ -1,48 +0,0 @@
#!/bin/bash
################################################################################
#
# Marcin Wozniak
# Last edit: 2023-05-05
#
# shellcheck disable=1091
################################################################################
set -u
set -e
# Colours
RED='\033[0;31m'
GREEN='\033[0;0;32m'
NC='\033[0m'
ADDR=$1
LOG_FILE="pinger-$ADDR-$(date -I).log"
function timestamp() {
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
}
function err() {
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
}
function command_start() {
timestamp "Command $* has been started."
if ! "$@"; then
err "Command $* went wrong."
# sendmailerr
exit 0
fi
timestamp "Command $* has been ended."
}
function pinger() {
ping "$ADDR" | while read pong; do timestamp "$pong"; done
}
function main() {
command_start pinger
}
main | tee "$LOG_FILE"
-62
View File
@@ -1,62 +0,0 @@
#!/bin/bash
source "$HOME"/.local/bin/functions
# Base function for creating a python venv
python_env_base() {
[ -z "$PYTHONVERSION" ] && err "Python version is not set"
command_exists virtualenv
timestamp "Creating Python environment with version $PYTHONVERSION"
rm -rf .venv .env && timestamp "Old Python environment has been removed"
virtualenv -p "$PYTHONVERSION" .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install pre-commit --break --force
}
# Default python env with requirements.txt
python_env() {
python_env_base
if [ -f requirements.txt ]; then
.venv/bin/pip install -r requirements.txt --break --force
timestamp "Installing Python packages from requirements.txt"
fi
}
# Ansible python env
python_env_ansible() {
python_env_base
timestamp "Installing Ansible packages"
.venv/bin/pip install \
ansible \
ansible-core \
ansible-lint \
ansible-parallel \
passlib \
python-tss-sdk \
--break --force
export ANSIBLE_COLLECTIONS_PATH=".venv/collections"
export ANSIBLE_ROLES_PATH=".venv/roles"
timestamp "Installing Ansible Galaxy collections to .venv/collections"
.venv/bin/ansible-galaxy collection install community.general -p .venv/collections --upgrade
timestamp "Installing Ansible Galaxy roles from requirements.yml files to .venv/roles"
find . -maxdepth 3 -name "requirements.yml" -path "*/roles/*" -not -path "./.venv/*" -print0 | while IFS= read -r -d '' req; do
timestamp "Found requirements: $req"
.venv/bin/ansible-galaxy install --force -r "$req" -p .venv/roles
done
}
case "$1" in
ansible)
python_env_ansible
;;
*)
python_env
;;
esac
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
/usr/local/bin/mysides remove all
/usr/local/bin/mysides add Home file://"$HOME"/
/usr/local/bin/mysides add Git file://"$HOME"/git/
/usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
/usr/local/bin/mysides add Aplications file:///Applications/
/usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
/usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
/usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/
+464 -653
View File
File diff suppressed because it is too large Load Diff
+2 -10
View File
@@ -2,13 +2,5 @@ chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
# chmod 400 ~/.ssh/id_rsa
# chmod 400 ~/.ssh/id_rsa.pub
# chmod 400 ~/.ssh/*/id_rsa
# chmod 400 ~/.ssh/*/id_rsa.pub
chmod 600 ~/.ssh/*/id_rsa
chmod 600 ~/.ssh/*/id_rsa.pub
chmod 600 ~/.ssh/authorized_keys
chmod 600 ~/.ssh/known_hosts
chmod 600 ~/.ssh/config
chmod 400 ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa.pub
+9 -24
View File
@@ -1,32 +1,17 @@
#!/bin/bash
set -x
# Resolving problem with systemd in mac
# # Stop running Docker
# test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
# # Install jq and moreutils so we can merge into the existing json file
# brew install jq moreutils
# # Add the needed cgroup config to docker settings.json
# echo '{"deprecatedCgroupv1": true}' |
# jq -s '.[0] * .[1]' ~/Library/Group\ Containers/group.com.docker/settings.json - |
# sponge ~/Library/Group\ Containers/group.com.docker/settings.json
# # Restart docker desktop
# open --background -a Docker
docker stop "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" >/dev/null
docker rm "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" >/dev/null
docker pull jrei/systemd-ubuntu:22.04
docker stop "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" > /dev/null
docker rm "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" > /dev/null
docker pull jrei/systemd-ubuntu:latest
docker run \
-d \
--name systemd-ubuntu \
-v "$HOME/git/dev":/opt \
-v $HOME/git/dev:/opt \
--tmpfs /tmp \
--tmpfs /run \
--tmpfs /run/lock \
--privileged \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
jrei/systemd-ubuntu:22.04
# container="$(docker ps --all | grep -i ubuntu | awk '{print $1}')"
# sleep 15 && docker exec -it "$container" /bin/bash
# docker stop "$container" >/dev/null
# docker rm "$container" >/dev/null
jrei/systemd-ubuntu
container="$(docker ps --all | grep -i ubuntu | awk '{print $1}')"
sleep 15 && docker exec -it "$container" /bin/bash
docker stop "$container" > /dev/null
docker rm "$container" > /dev/null
+1
View File
@@ -0,0 +1 @@
/usr/local/bin/yt-dlp
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
yt-dlp --extract-audio --audio-format mp3 --embed-metadata --embed-thumbnail --add-metadata $1
yt-dlp --extract-audio --audio-format mp3 $1
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
yt-dlp "$@" -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
yt-dlp $1
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
yt-dlp --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss $1 -to $2" "${@:3}"
-1
View File
@@ -1 +0,0 @@
4
View File
-77
View File
@@ -1,77 +0,0 @@
# focus window
alt - h : yabai -m window --focus west
alt - l : yabai -m window --focus east
alt - k : yabai -m window --focus north
alt - j : yabai -m window --focus south
# swap managed window
shift + alt - h : yabai -m window --swap west
shift + alt - l : yabai -m window --swap east
shift + alt - k : yabai -m window --swap north
shift + alt - j : yabai -m window --swap south
# move managed window
# shift + cmd - h : yabai -m window --warp east
# Search
alt - d : open -a Alfred\ 4
# Close app
alt - q : yabai -m window --close
# balance size of windows
shift + alt - space : yabai -m space --balance
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
shift + cmd - n : yabai -m space --create && \
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
yabai -m window --space "${index}" && \
yabai -m space --focus "${index}"
shift + alt - 1 : yabai -m window --space 1
shift + alt - 2 : yabai -m window --space 2
shift + alt - 3 : yabai -m window --space 3
shift + alt - 4 : yabai -m window --space 4
shift + alt - 5 : yabai -m window --space 5
shift + alt - 6 : yabai -m window --space 6
shift + alt - 7 : yabai -m window --space 7
shift + alt - 8 : yabai -m window --space 8
shift + alt - 9 : yabai -m window --space 9
# focus monitor
ctrl + alt - z : yabai -m display --focus prev
# ctrl + alt - 3 : yabai -m display --focus 3
# send window to monitor and follow focus
# ctrl + cmd - c : yabai -m window --display next; yabai -m display --focus next
# ctrl + cmd - 1 : yabai -m window --display 1; yabai -m display --focus 1
# move floating window
# shift + ctrl - a : yabai -m window --move rel:-20:0
# shift + ctrl - s : yabai -m window --move rel:0:20
# increase window size
# shift + alt - a : yabai -m window --resize left:-20:0
# shift + alt - w : yabai -m window --resize top:0:-20
# decrease window size
# shift + cmd - s : yabai -m window --resize bottom:0:-20
# shift + cmd - w : yabai -m window --resize top:0:20
# set insertion point in focused container
# ctrl + alt - h : yabai -m window --insert west
# toggle window zoom
alt - f : yabai -m window --toggle zoom-fullscreen
# toggle window split type
# alt - e : yabai -m window --toggle split
# float / unfloat window and center on screen
alt - space : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# toggle sticky(+float), topmost, picture-in-picture
# alt - p : yabai -m window --toggle sticky;\
# yabai -m window --toggle topmost;\
# yabai -m window --toggle pip
-1
View File
@@ -1 +0,0 @@
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
+30 -39
View File
@@ -1,38 +1,15 @@
# Default shell configuration
set -g prefix C-a
set-option -g default-shell /bin/zsh
set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Keybindings
unbind C-b # Unbind a default keys conbination
unbind q # Unbind a q key
set -g prefix C-a # Set a default keys conbination
bind-key C-a send-prefix # Set a default keys conbination
bind q confirm kill-window # Set a kill-window keybind
bind Q confirm kill-pane # Set a kill-pane keybind
bind - split-window -v # Split window vertical
bind _ split-window -h # Split window horizontal
bind > swap-pane -D # Swap current pane with the next one
bind < swap-pane -U # Swap current pane with the previous one
bind C-w select-pane -l # Go to last panel
bind h select-pane -L # Go to left panel
bind j select-pane -D # Go to down panel
bind k select-pane -U # Go to up panel
bind l select-pane -R # Go to right panel
bind -r H resize-pane -L 2 # Resize panel left
bind -r J resize-pane -D 2 # Resize panel down
bind -r K resize-pane -U 2 # Resize panel up
bind -r L resize-pane -R 2 # Resize panel right
bind -r C-h previous-window # Select previous window
bind -r C-l next-window # Select next window
bind Tab last-window # Move to last active window
bind C-c new-session # Keybind for a new session
bind C-f command-prompt -p find-session 'switch-client -t %%'
bind-key -n C-f copy-mode \; send-key ?
# Copying a output from panel the terminal to file ~/tmux.history
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
unbind C-b
bind-key C-a send-prefix
unbind q
bind q confirm kill-window
bind Q confirm kill-pane
set -g status on
bind-key -n C-f copy-mode \; send-key ?
set -g history-limit 20000
set-option -sg escape-time 0
set -g base-index 1 # start windows numbering at 1
@@ -46,14 +23,26 @@ set -g status-interval 10 # redraw status line every 10 seconds
set -g monitor-activity on
set -g visual-activity off
set -g visual-bell off
bind C-c new-session
bind C-f command-prompt -p find-session 'switch-client -t %%'
bind - split-window -v
bind _ split-window -h
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 3
bind -r L resize-pane -R 2
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
# Coloring of the panel
set -g pane-border-style fg=default
set -g pane-active-border-style "bg=default fg=color244"
# Status bar
## Source of example configuration
## https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
# Source of example configuration
# https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
set-option -g status on
set-option -g status-interval 1
set-option -g status-position bottom
@@ -63,3 +52,5 @@ set-option -g status-left-style default
set-option -g status-right-length 140
set-option -g status-right-style default
set-option -g status-right "%a %H:%M:%S %Y-%m-%d"
set -g pane-border-style fg=default
set -g pane-active-border-style "bg=default fg=color244"
-98
View File
@@ -83,104 +83,6 @@ nnoremap <F8> :tabnext<CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
""""""""""""""""""""""""""""""""
" Keyboard shortcuts
""""""""""""""""""""""""""""""""
let mapleader = "\<Space>"
nmap <leader>2 :w!<cr>
" Better tab
vnoremap <Tab> >
vnoremap <S-Tab> <
" Better word
nmap yw vey
" Select all text
nmap <C-a> gg<S-v>G
" Resize window
nnoremap <C-L> :vertical resize +5<CR>
nnoremap <C-H> :vertical resize -5<CR>
nnoremap <C-J> :res -5<CR>
nnoremap <C-K> :res +5<CR>
" Split window
nnoremap _ :vsp <CR>
nnoremap - :split <CR>
" Reload file
nnoremap <F5> :edit <CR>
nnoremap <Leader><F5> :edit! <CR>
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" Moving line up or down using alt
nnoremap <A-Up> :m-2<CR>
nnoremap <A-Down> :m+<CR>
inoremap <A-Up> <Esc>:m-2<CR>
inoremap <A-Down> <Esc>:m+<CR>
vnoremap <A-Down> :m '>+1<CR>gv=gv
vnoremap <A-Up> :m '<-2<CR>gv=gv
nnoremap Ż :m-2<CR>
nnoremap ∆ :m+<CR>
vnoremap ∆ :m '>+1<CR>gv=gv
vnoremap Ż :m '<-2<CR>gv=gv
nnoremap <A-k> :m-2<CR>
nnoremap <A-j> :m+<CR>
inoremap <A-k> <Esc>:m-2<CR>
inoremap <A-j> <Esc>:m+<CR>
vnoremap <A-j> :m '>+1<CR>gv=gv
vnoremap <A-k> :m '<-2<CR>gv=gv
" Better replace
nnoremap <Leader>s :%s//g<Left><Left>
vnoremap <Leader>s :s//g<Left><Left>
" Better adding into begging and ending line
vnoremap F <C-v>$A
vnoremap f <C-v>0I
" Better management of tabs
nnoremap <C-t> :tabnew<CR>
nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR>
inoremap <F7> <Esc>:tabprevious<CR>i
inoremap <F8> <Esc>:tabnext<CR>i
nnoremap <Leader>k :tabprevious<CR>
nnoremap <Leader>j :tabnext<CR>
inoremap <C-t> <Esc>:tabnew<CR>
" Better moving
nnoremap J }
nnoremap K {
vnoremap J }
vnoremap K {
" Copy into system
noremap <Leader>y "*y
noremap <Leader>p "*p
" Code
map <Leader><Tab> Vgaip= <CR>
" Others
nnoremap <F11> :Goyo <CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
map <F3> :setlocal spell! spelllang=en_gb<CR>
map <F4> :setlocal spell! spelllang=pl<CR>
" Human Errors
:command! W w
:command! Q q
:command! Wq wq
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e
-73
View File
@@ -1,73 +0,0 @@
#!/usr/bin/env sh
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m config external_bar all:20:20
# Without Ubersicht
#yabai -m config external_bar all:0:0
# global settings
yabai -m config mouse_follows_focus on
yabai -m config focus_follows_mouse on
yabai -m config window_placement second_child
yabai -m config window_topmost off
yabai -m config window_shadow on
yabai -m config window_border off
yabai -m config window_border_placement exterior
yabai -m config window_border_width 1.0
yabai -m config window_border_radius 1.0
yabai -m config active_window_border_color 0xff008bff
yabai -m config normal_window_border_color 0x01000000
yabai -m config insert_window_border_color 0xB2EBDBB2
yabai -m config window_opacity off
yabai -m config split_ratio 0.50
yabai -m config auto_balance on
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
# general space settings
yabai -m config layout bsp
yabai -m config top_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config right_padding 10
yabai -m config window_gap 10
yabai -m config window_topmost on
yabai -m config window_shadow float
# From DWM
yabai -m rule --add app="^System Preferences$" manage=off border=off
yabai -m rule --add app="^Alfred$" manage=off border=off
yabai -m rule --add app="choose" manage=off
yabai -m rule --add app="Calendar" manage=off
yabai -m rule --add app="JDownloader 2*" manage=off
yabai -m rule --add app="Terminal" space=^1 display=1
yabai -m rule --add app="iTerm2" space=^1 display=1
yabai -m rule --add app="Firefox" space=^2
yabai -m rule --add app="Opera" space=^2
yabai -m rule --add app="Safari" space=^2
yabai -m rule --add app="Mail" space=^3
# Communication
yabai -m rule --add app="Slack" space=^4
yabai -m rule --add app="Signal" space=^4
yabai -m rule --add app="Discord" space=^4
yabai -m rule --add app="WhatsApp" space=^4
yabai -m rule --add app="Microsoft Teams" space=^4
yabai -m rule --add app="Microsoft Outlook" space=^4
yabai -m rule --add app="Messages" space=^4
# Tools
yabai -m rule --add app="Music" space=^5
yabai -m rule --add app="QuickTime Player" space=^5
yabai -m rule --add app="VLC" space=^5
yabai -m rule --add app="Spotify" space=^5
# Floating
yabai -m rule --add app="DisplayLinkUserAgent" space=^7
+83 -177
View File
@@ -3,13 +3,8 @@
CONFIG=$HOME/.config
parse_git_branch() {
command=$(git branch \
2> /dev/null |
sed -n -e 's/^\* \(.*\)/\1/p' |
awk 'NF{print $NF}' |
sed 's/)//g' \
2> /dev/null)
[ -z $command ] && echo -e "$ " || echo -e "$command $ "
command=$(git symbolic-ref --short HEAD 2> /dev/null)
[ -z $command ] && echo -e "$ " || echo -e "$(git symbolic-ref --short HEAD 2> /dev/null) $ "
}
gbranch() {
@@ -22,35 +17,29 @@ gbranch() {
[[ "$(uname)" == "Darwin" ]] && export ZSH="$HOME/.oh-my-zsh"
HISTFILE=$HOME/.history_zsh
HISTSIZE=10000000
HISTSIZE=10000
SAVEHIST=10000000
autoload -U colors && colors
autoload bashcompinit && bashcompinit
setopt PROMPT_SUBST
PS1='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(parse_git_branch)%{$reset_color%}'
plugins=(rake ruby vagrant knife knife_ssh kitchen)
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/aws ] && { mkdir -p $CONFIG/zsh/aws ; cd $CONFIG/zsh ; git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ; git clone https://github.com/zsh-users/zsh-autosuggestions.git ; curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o $CONFIG/zsh/aws/aws.plugin.zsh }
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>> /dev/null
[ -f $HOME/.password ] && source $HOME/.password
[ ! -d $CONFIG/fzf ] && git clone https://github.com/junegunn/fzf.git $HOME/.config/fzf
[ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
FPATH=/usr/local/share/zsh/site-functions:$FPATH
# Configuration of command-time
# If command execution time above min. time, plugins will not output time.
ZSH_COMMAND_TIME_MIN_SECONDS=10
ZSH_COMMAND_TIME_MSG="Execution time: %s sec"
ZSH_COMMAND_TIME_EXCLUDE=(ranger git nvim fzf vim mcedit v ssh lg lazygit tmux)
export GPG_TTY=$(tty)
export TERM=xterm-256color
# export TERM=xterm-256color
export TERM=screen-256color
export SHELL=/bin/bash
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
@@ -60,175 +49,92 @@ export CCACHE_DIR="/usr/ccache"
export LC_ALL="en_US.UTF-8"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export BROWSER=$HOME/.local/bin/browser-x
export BROWSER=/home/yorune/.local/bin/browser-x
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
export EIX_LIMIT_COMPACT=0
export TERMINAL="st"
export QT_SCALE_FACTOR=1.5
# Declerating the PATHs
unset PATH
export PATH=/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/usr/sbin:$PATH
export PATH=/sbin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/golang/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/node_modules/.bin:$PATH
export PATH=$CONFIG/fzf/bin:$PATH
export GOPATH=$HOME/golang
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
export PATH=$PATH:$HOME/.cargo/bin
[ -d $HOME/git/fortigate/bin ] && export PATH=$HOME/git/fortigate/bin:$PATH
# History
export HISTTIMEFORMAT="%F %T "
# Work
alias ssh-work="ssh -i ~/.ssh/work/id_rsa"
alias rsyncwork="rsync -h --progress -e 'ssh -i ~/.ssh/work/id_rsa'"
alias git-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" git'
alias git-commit-work="git commit --author='Marcin Woźniak <marcin.wozniak@vml.com>'"
# Alias and Export Gentoo
alias svm="sudo $EDITOR /etc/portage/make.conf"
alias svr="sudo $EDITOR /etc/portage/repos.conf"
alias svp="sudo $EDITOR /etc/portage/package.use"
alias sva="sudo $EDITOR /etc/portage/package.accept_keywords"
export VISUAL='nvim'
export EDITOR='nvim'
alias vimc="nvim $HOME/.vimrc"
alias svm="sudo nvim /etc/portage/make.conf"
alias svr="sudo nvim /etc/portage/repos.conf"
alias svp="sudo nvim /etc/portage/package.use"
alias sva="sudo nvim /etc/portage/package.accept_keywords"
alias emerge="sudo emerge"
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
alias code="vscodium-bin"
alias pl="setxkbmap pl"
alias feh="feh --edit --scale-down"
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
alias mylaptop-components="inxi -Fxz"
alias update_time="sudo ntpdate -b -u vega.cbk.poznan.pl"
alias dt='LC_TIME=C /bin/date "+%Y%m%d%H%M%S"'
# Alias and Export for Mac
if [[ "$(uname)" == "Darwin" ]]; then
# Resolve problem with GOPATH
# https://stackoverflow.com/questions/66284870/go-get-not-downloading-to-src-folder
export GO111MODULE=on
# Other export
export OPENSSLVER=$(ls "/opt/homebrew/Cellar/openssl@3/" |
sort |
grep -iE '[0-9]+\.[0-9]+\.' |
tail -n1)
export PATH="/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/include"
export PKG_CONFIG_PATH="/opt/homebrew/openssl@3/$OPENSSLVER/lib/pkgconfig"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PYTHONVERSION=$(ls -la /opt/homebrew/opt/ |
grep -iEo 'python@.* ->' |
sed 's/ ->//g' |
sort |
tail -n1 |
sed 's/python@//g')
export PATH=$PATH:$HOME/Library/Python/$PYTHONVERSION/bin
export PATH=$PATH:/usr/local/opt/python@$PYTHONVERSION/Frameworks/Python.framework/Versions/$PYTHONVERSION/bin
export PATH="$(brew --prefix python@$PYTHONVERSION)/bin:$PATH"
alias python3='/opt/homebrew/bin/python$PYTHONVERSION'
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
alias python='/opt/homebrew/bin/python$PYTHONVERSION'
alias pip='/opt/homebrew/bin/pip$PYTHONVERSION'
alias sed='gsed'
alias zcat='gzcat'
alias date='gdate'
alias lsblk="diskutil list"
alias Update="$HOME/.local/bin/Update-pkg; brew update; brew upgrade; brew upgrade --greedy; sudo softwareupdate -i -a -R"
alias ls="ls -Gh"
alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'"
alias code="open -a 'Visual Studio Code'"
alias xclip="sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | pbcopy"
alias mtr="sudo /opt/homebrew/opt/mtr/sbin/mtr"
alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1"
alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0"
alias restart-network-share="sudo pkill -i netauthsysagent"
alias streamlink="streamlink --config $HOME/.config/streamlink/config"
alias powershell="pwsh"
# Terraform
export TFENV_ARCH=amd64
export TFENVVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/ |
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort |
head -n1)
export TFVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/*/versions |
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort |
head -n1)
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
# Unset browser
unset BROWSER
# Docker as linux/amd64
export DOCKER_DEFAULT_PLATFORM=linux/amd64
fi
# Setting the right editor
if which nvim > /dev/null 2>&1; then
export VISUAL='nvim -u $HOME/.vimrc'
export EDITOR='nvim -u $HOME/.vimrc'
else
export VISUAL='vim -u $HOME/.vimrc-def'
export EDITOR='vim -u $HOME/.vimrc-def'
fi
# Vim
alias vimc="$EDITOR $HOME/.vimrc"
alias v="$EDITOR -p"
alias vim="$EDITOR -p"
# Commands
alias traceroute="mtr"
alias rsync="rsync -h --progress"
alias lg="lazygit"
alias ldocker="lazydocker"
alias ls="ls -h --color=auto"
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
alias grep="grep"
alias egrep="egrep"
[[ "$(uname)" == "Darwin" ]] && alias ls="ls -Gh" || alias ls="ls -h --color=auto"
alias ll='ls -lha'
alias r="ranger"
alias cp='cp -v'
alias mv='mv -v'
alias myip="curl ipinfo.io/ip"
alias logi="journalctl -f"
alias pl="setxkbmap pl"
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
alias mylaptop-components="inxi -Fxz"
alias r="ranger"
alias v="nvim"
alias feh="feh --edit --scale-down"
alias changefont="figlet"
alias gmaster="git checkout master"
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
alias gcommitw="git commit --author='Marcin Wozniak <marcin.wozniak@wundermanthompson.com>'"
alias gdel="git push origin --delete"
alias gadd="git add"
alias gpush="git push"
alias gpull="git pull; git submodule foreach git pull origin master; git submodule foreach git pull origin main"
alias gstatus="git status -s"
alias gst="git status -s"
alias gdiff="git diff"
alias gnew="git checkout -b"
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
alias cal="cal -3"
alias code="vscodium-bin"
alias vpn="sudo /root/.local/bin/protonvpn c -f"
alias vpnch="sudo /root/.local/bin/protonvpn c --cc CH"
alias vpnd="sudo /root/.local/bin/protonvpn d"
alias tv="~/MEGA/tv/tv.sh"
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
alias vim="nvim -p"
alias denpl="trans en:pl"
alias dplen="trans pl:en"
alias myip="curl ipinfo.io/ip"
alias changefont="figlet"
# Others
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
alias notes="nvim $HOME/git/notes/index.md"
alias mgr="cd $HOME/Documents/Mega-Documents/Magisterka-Marcin/Semestr1/"
[[ "$(uname)" == "Darwin" ]] && alias mpv="mpv --no-resume-playback" || alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
alias lg="lazygit"
alias update-brew="brew upgrade --cask"
alias cl="cd $HOME/Documents/Collage/Semestr2"
alias irc="ssh mikrus -t 'screen -r'"
alias neofetch=fastfetch
alias rsync="rsync --progress"
# Zoxide
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
# Cleaning-up
export PATH=$HOME/.local/bin:$PATH
export PATH=/sbin:$PATH
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
export HISTTIMEFORMAT="%F %T "
# 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"
# Export for Mac
if [[ "$(uname)" == "Darwin" ]]; then
export PATH="/usr/local/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
# Resolve problem with - zsh: no matches found
alias lsblk="diskutil list"
alias Update="brew update; brew upgrade"
# Resolve problem with GOPATH
# https://stackoverflow.com/questions/66284870/go-get-not-downloading-to-src-folder
export GO111MODULE=off
fi
# Resolve problem with
# zsh: no matches found
setopt +o nomatch
# Error with icu
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
# Security changes made in High Sierra that are breaking lots of Python things that use fork()
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
# Error with Delinea - Linux
[ -f "/etc/ssl/certs/ca-certificates.crt" ] && export REQUESTS_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt'
@@ -1,16 +0,0 @@
refresher:
refreshInterval: 60
gui:
useHunkModeInStagingView: false
mainPanelSplitMode: "horizontal"
theme:
selectedLineBgColor:
- "#413660"
git:
autoFetch: true
pagers:
- colorArg: always
commit:
signOff: true
pull:
mode: "rebase"