diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..f030fb6 --- /dev/null +++ b/alacritty/.config/alacritty/alacritty.toml @@ -0,0 +1,15 @@ +[font.bold] +family = "JetBrainsMono Nerd Font" +style = "Bold" + +[font.bold_italic] +family = "JetBrainsMono Nerd Font" +style = "Bold Italic" + +[font.italic] +family = "JetBrainsMono Nerd Font" +style = "Italic" + +[font.normal] +family = "JetBrainsMono Nerd Font" +style = "Regular" diff --git a/ansible-playbooks/apt-packages.yml b/ansible-playbooks/apt-packages.yml index d549c84..75768f5 100644 --- a/ansible-playbooks/apt-packages.yml +++ b/ansible-playbooks/apt-packages.yml @@ -156,6 +156,9 @@ - zsh - jq - stow + - snapd + - hsetroot + - rofi - name: Add my user to docker group ansible.builtin.user: name: "{{ ansible_user_id }}" diff --git a/ansible-playbooks/cli-packages.yml b/ansible-playbooks/cli-packages.yml index 5eb2cb6..a2616d7 100644 --- a/ansible-playbooks/cli-packages.yml +++ b/ansible-playbooks/cli-packages.yml @@ -3,6 +3,10 @@ - name: cli-packages hosts: localhost tasks: + - name: Instal ZSH autosuggestions + git: + repo: 'https://github.com/zsh-users/zsh-autosuggestions' + dest: ~/.local/bin/zsh-autosuggestions/zsh-autosuggestions.zsh - name: Download AWS zip shell: 'curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "{{ playbook_dir }}/awscliv2.zip"' diff --git a/ansible-playbooks/dotfile-copy.yml b/ansible-playbooks/dotfile-copy.yml index 18bfcca..6c6ec2b 100644 --- a/ansible-playbooks/dotfile-copy.yml +++ b/ansible-playbooks/dotfile-copy.yml @@ -14,5 +14,7 @@ stow zsh stow vim stow nvim + stow i3 + stow alacritty args: chdir: "{{ playbook_dir }}/.." diff --git a/ansible-playbooks/setup.yml b/ansible-playbooks/setup.yml index 7e942f1..e593572 100644 --- a/ansible-playbooks/setup.yml +++ b/ansible-playbooks/setup.yml @@ -9,7 +9,7 @@ import_playbook: dotfile-copy.yml - name: Install vundle - import_playbook: vundle-install.yml + import_playbook: vim-package-managers-install.yml - name: Install gems import_playbook: gem-packages.yml diff --git a/ansible-playbooks/vim-package-mangers-install.yml b/ansible-playbooks/vim-package-mangers-install.yml new file mode 100644 index 0000000..7175e3a --- /dev/null +++ b/ansible-playbooks/vim-package-mangers-install.yml @@ -0,0 +1,15 @@ +--- +- name: vundle-install + hosts: localhost + tasks: + - name: Install vundle plugin manager for Vim + git: + repo: 'https://github.com/VundleVim/Vundle.vim.git' + dest: ~/.vim/bundle/Vundle.vim +- name: vim-plug-install + hosts: localhost + tasks: + - name: Install vim-plug + shell: > + curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim diff --git a/ansible-playbooks/vundle-install.yml b/ansible-playbooks/vundle-install.yml deleted file mode 100644 index 2209aab..0000000 --- a/ansible-playbooks/vundle-install.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: vundle-install - hosts: localhost - tasks: - - name: Install vundle plugin manager for Vim - git: - repo: 'https://github.com/VundleVim/Vundle.vim.git' - dest: ~/.vim/bundle/Vundle.vim \ No newline at end of file diff --git a/i3/.config/i3/config b/i3/.config/i3/config index ca8053e..4234028 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -3,26 +3,25 @@ set $super Mod4 set $alt Mod1 # set font -font pango: Ubuntu Nerd Font 8 +font pango: InconsolataGo Nerd Font Regular 12 # Use Mouse+$super to drag floating windows to their wanted position floating_modifier $super #autostart -exec --no-startup-id autorandr --change work -exec --no-startup-id hsetroot -fill ~/.wallpaper.png exec --no-startup-id xsettingsd & -#exec --no-startup-id picom -b - +exec --no-startup-id xrandr --output DVI-I-2-2 --mode 1920x1080 --above DisplayPort-2 --output DVI-I-1-1 --mode 1920x1080 --right-of DVI-I-2-2 --output DisplayPort-2 --off +exec --no-startup-id /usr/libexec/gsd-xsettings +exec --no-startup-id nitrogen --restore # start a terminal -bindsym $super+Return exec kitty +bindsym $super+Return exec alacritty # start dmenu (a program launcher) bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'" -bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8' +bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'InconsolataGo Nerd Font Regular 12' # common apps keybinds -bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f' +bindsym --release Print exec gnome-screenshot -i bindsym $super+l exec i3lock -i ~/.wallpaper.png bindsym $super+Shift+w exec firefox bindsym $super+Shift+f exec thunar;workspace 3;focus @@ -143,5 +142,5 @@ client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f client.background #2f343f # Gaps -gaps inner 5px +gaps inner 7px gaps outer 5px diff --git a/i3/.config/i3status/config b/i3/.config/i3status/config index 95994e1..665060e 100644 --- a/i3/.config/i3status/config +++ b/i3/.config/i3status/config @@ -11,8 +11,6 @@ general { order += "load" order += "cpu_temperature 0" order += "disk /" -order += "disk /home" -order += "wireless wlp2s0" order += "volume master" order += "time" @@ -21,23 +19,15 @@ load { } cpu_temperature 0 { - format = "  %degrees °C " + format = " CPU %degrees °C " path = "/sys/class/thermal/thermal_zone0/temp" } disk "/" { - format = "  %free Free " -} - -disk "/home" { - format = "  %free Free " + format = " Disk %free Free " } -wireless wlp2s0 { - format_up = " %essid " - format_down = " Disconnected " -} volume master { format = " %volume " diff --git a/nvim/.config/nvim/coc-settings.json b/nvim/.config/nvim/coc-settings.json new file mode 100644 index 0000000..95ba565 --- /dev/null +++ b/nvim/.config/nvim/coc-settings.json @@ -0,0 +1,10 @@ + { + "languageserver": { + "go": { + "command": "gopls", + "rootPatterns": ["go.mod"], + "trace.server": "verbose", + "filetypes": ["go"] + } + } + } diff --git a/zsh/.zshrc b/zsh/.zshrc index be66131..a9b0eb1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -98,3 +98,9 @@ source ~/.local/bin/zsh-autosuggestions/zsh-autosuggestions.zsh export VIRTUAL_ENV_DISABLE_PROMPT= export BUILDX_EXPERIMENTAL=1 + +# FZF +# Set up fzf key bindings and fuzzy completion +source <(fzf --zsh) + +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh