Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhonas committed Jun 16, 2024
1 parent d45a69e commit ad28697
Show file tree
Hide file tree
Showing 20 changed files with 5,552 additions and 542 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ansible = "*"
ansible-lint = "*"
flake8 = "*"
molecule-docker = "*"
yamllint = "==1.20.0"
yamllint = "*"

[requires]
python_version = "3.9"
1,191 changes: 657 additions & 534 deletions Pipfile.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions roles/dotfiles/files/Mackup/.bundle/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ BUNDLE_GEM__TEST: "rspec"
BUNDLE_GEM__MIT: "false"
BUNDLE_GEM__COC: "true"
BUNDLE_BUILD__MYSQL2: "--with-opt-dir=/usr/local/opt/openssl"
BUNDLE_GEM__CI: "github"
BUNDLE_GEM__CHANGELOG: "false"
BUNDLE_GEM__LINTER: "rubocop"

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions roles/dotfiles/files/Mackup/.config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ Plug 'jiangmiao/auto-pairs'
Plug 'junegunn/fzf', { 'dir': '~/.vim/fzf', 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-rsi'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-rsi' " readline style insertion
Plug 'tpope/vim-repeat' " extends repeating for surround.vim amongst others
Plug 'tpope/vim-sensible' " https://www.rogin.xyz/blog/sensible-neovim
Plug 'tpope/vim-surround'
Plug 'tpope/vim-rails' " vim rails
Plug 'dylanaraps/wal'
Plug 'godlygeek/tabular'
Plug 'godlygeek/tabular' " easy alignmnent of text
Plug 'freitass/todo.txt-vim'
Plug 'jceb/vim-orgmode'
"Plug 'jceb/vim-orgmode'
Plug 'ervandew/supertab'
Plug 'inkarkat/vim-ReplaceWithRegister'

Expand Down Expand Up @@ -138,6 +139,12 @@ set shiftwidth=2

" set colorcolumn=+1

"""""""""""""""""""""""""""""""
" edit config & reload config "
"""""""""""""""""""""""""""""""
nnoremap <leader>ev :exe 'edit' $MYVIMRC<CR>
nnoremap <leader>sv :source $MYVIMRC<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Moving around, tabs, windows and buffers
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down
5 changes: 5 additions & 0 deletions roles/dotfiles/files/Mackup/.doom.d/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,8 @@
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.

;;disable splash screen and startup message
;;https://linux-tips.com/t/disabling-emacs-splash-screen/211
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
29 changes: 29 additions & 0 deletions roles/dotfiles/files/Mackup/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,32 @@ trustExitCode = true
# insteadOf = https://github.com/
[init]
defaultBranch = main
[maintenance]
repo = /Users/yuhonas/zsh/cd-gitroot
repo = /Users/yuhonas/zsh/fast-syntax-highlighting
repo = /Users/yuhonas/zsh/forgit
repo = /Users/yuhonas/zsh/fzf-tab
repo = /Users/yuhonas/zsh/fzf-z
repo = /Users/yuhonas/zsh/ohmyzsh
repo = /Users/yuhonas/zsh/znap
repo = /Users/yuhonas/zsh/zsh-aliases-exa
repo = /Users/yuhonas/zsh/zsh-ansimotd
repo = /Users/yuhonas/zsh/zsh-autosuggestions
repo = /Users/yuhonas/zsh/zsh-completions
repo = /Users/yuhonas/zsh/zsh-you-should-use
repo = /Users/yuhonas/zsh/fzf-fasd
repo = /Users/yuhonas/zsh/zsh-autocomplete
repo = /Users/yuhonas/zsh/DarrinTisdale/zsh-aliases-exa
repo = /Users/yuhonas/zsh/MichaelAquilina/zsh-you-should-use
repo = /Users/yuhonas/zsh/ohmyzsh/ohmyzsh
repo = /Users/yuhonas/zsh/wfxr/forgit
repo = /Users/yuhonas/zsh/yuhonas/cd-gitroot
repo = /Users/yuhonas/zsh/yuhonas/zsh-ansimotd
repo = /Users/yuhonas/zsh/zdharma-continuum/fast-syntax-highlighting
repo = /Users/yuhonas/zsh/zsh-users/zsh-autosuggestions
repo = /Users/yuhonas/zsh/zsh-users/zsh-completions
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
Binary file not shown.
Binary file not shown.
55 changes: 55 additions & 0 deletions roles/dotfiles/files/Mackup/.local/bin/privatize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/env bash
#
# Move files into a directory without the read flag
#

PRIVATE_DIR="~/Incomplete/testing"


selected_files=$(osascript 2> /dev/null <<EOF
set output to ""
tell application "Finder" to set the_selection to selection
set item_count to count the_selection
repeat with item_index from 1 to count the_selection
if item_index is less than item_count then set the_delimiter to "\n"
if item_index is item_count then set the_delimiter to ""
set output to output & ((item item_index of the_selection as alias)'s POSIX path) & the_delimiter
end repeat
EOF
)

echo $selected_files

# if [[ -n $selected_file ]]; then

# destination=$(osascript -e 'tell application (path to frontmost application as text)
# try
# set myFile to choose file name with prompt "Save file as:"
# POSIX path of myFile
# end try
# end tell')

# fi


# chmod +x $PRIVATE_DIR

# $output=$(mv -v "$file_to_move"))

# display notification "Privatized complete" subtitle "File has been moved"



# if [ -n "$wallpaper_file" ]; then
# if wal -i "$wallpaper_file" -q; then
# accent_color=$(jq --raw-output '.colors.color9' < "$HOME/.cache/wal/colors.json")

# echo "Found color $accent_color"
# osx-colors set "$accent_color"
# fi
# fi

# # # reload kitty if it's running
# if pgrep kitty 1>/dev/null; then
# killall -SIGUSR1 kitty
# fi
8 changes: 7 additions & 1 deletion roles/dotfiles/files/Mackup/.local/bin/select-wallpaper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ if [ -n "$wallpaper_file" ]; then
# do not set the walpaper using wal, it's broken in macos sonora
# see https://github.com/dylanaraps/pywal/issues/715
if wal -n -i "$wallpaper_file" -q; then
accent_color=$(jq --raw-output '.colors.color9' < "$HOME/.cache/wal/colors.json")
accent_color=$(jq --raw-output '.colors.color13' < "$HOME/.cache/wal/colors.json")

# accent_color = "#03a061"

echo "Found color $accent_color"

osx-colors set "$accent_color"

# setting lights
$HOME/.local/bin/set-light-color "$accent_color"
fi
fi

Expand Down
2 changes: 2 additions & 0 deletions roles/dotfiles/files/Mackup/.tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ nodejs 20.10.0
python 3.12.1
ruby 3.3.0
rust 1.75.0
elixir 1.16.2
erlang 26.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true
},
"vim.easymotion": true,
"terminal.integrated.defaultProfile.osx": "zsh",
"rubyLsp.featuresConfiguration": {},
"rubyLsp.enabledFeatures": {
Expand Down Expand Up @@ -107,5 +106,6 @@
"phoenix-heex": "html"
},
"workbench.colorTheme": "Solarized Dark",
"github.copilot.editor.enableAutoCompletions": true
"github.copilot.editor.enableAutoCompletions": true,
"vim.easymotionDimBackground": false
}
2 changes: 2 additions & 0 deletions roles/dotfiles/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- fzf # fuzzy finder
- gawk # for tmux fingers plugin
- git
- glow # markdown viewer
- ispell
- less # the version that comes with macos is old
- lesspipe
Expand All @@ -40,6 +41,7 @@
- tealdeer # a faster implemention of tldr (community driven man pages)
- tmux
- wget
- zellij # tmux replacement
- zsh
update_homebrew: true

Expand Down

0 comments on commit ad28697

Please sign in to comment.