Add .chezmoitemplates/i3wm_after
Add .chezmoitemplates/i3wm_before Remove dot_config/alacritty/alacritty.yml Remove dot_config/chezmoi/chezmoi.toml Add dot_config/chezmoi/chezmoi.toml.tmpl.literal Update run_once_prepare_arch.sh.tmpl
This commit is contained in:
parent
6d54f7a68b
commit
1b33d87b2c
6 changed files with 62 additions and 60 deletions
5
.chezmoitemplates/i3wm_after
Normal file
5
.chezmoitemplates/i3wm_after
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
case "${aur_packages[@]}" in
|
||||||
|
*"spicetify-cli"*)
|
||||||
|
sudo chmod a+wr /opt/spotify
|
||||||
|
sudo chmod a+wr /opt/spotify/Apps -R ;;
|
||||||
|
esac
|
30
.chezmoitemplates/i3wm_before
Normal file
30
.chezmoitemplates/i3wm_before
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# All requirements for i3
|
||||||
|
# ## i3-gaps => I3 version but with spaces between menu | Equivalent i3
|
||||||
|
# ## picom => Compositor to add effects in window | Use with i3
|
||||||
|
# ## polybar => Use to create simple bar in bottom | Use with i3
|
||||||
|
# ## dunst => Customizable and simple notification manager (to test it, use notify-send) | Use with i3
|
||||||
|
# ## dmenu => Basic custom menu like rofi to launch application with Windows + D | Use with i3
|
||||||
|
# ## i3lock => Custom lock screen
|
||||||
|
# ## gnome-keyring => Use to store sensitive data like password by google chrome and other
|
||||||
|
# ## xss-lock => Use to use external locker as X screen saver | Use to use i3lock for i3
|
||||||
|
# ## dex => Use to generate or use Desktop file .desktop of type Application | Use with i3
|
||||||
|
# ## feh => Use to set wallpaper | Use with i3
|
||||||
|
# ## jq => Json parser for command line use by my custom script for relative workspaces because i3-msg return json format
|
||||||
|
packages+=(picom i3-gaps polybar dunst dmenu i3lock gnome-keyring xss-lock dex feh jq)
|
||||||
|
|
||||||
|
# Utils in complement for i3
|
||||||
|
# ## bluez-tools => Used by some polybar scripts
|
||||||
|
# ## blueberry => Useful interface to manage bluetooth devices
|
||||||
|
# ## pavucontrol => Useful interface to manage audio (<!> Not tried with pipewire)
|
||||||
|
# ## network-manager-applet => Useful applet to manage network (Support Wifi and Wired)
|
||||||
|
# ## playerctl => Use to manage spotify, browsers playlist and many more from keyboard key (Use dbus to communicate)
|
||||||
|
# ## arandr => Basic interface to set current monitor position + resolution
|
||||||
|
packages+=(bluez-tools blueberry pavucontrol network-manager-applet playerctl arandr)
|
||||||
|
|
||||||
|
# For productivity
|
||||||
|
# ## kdeconnect => To sync phone and Desktop | Used by (i3 config)
|
||||||
|
packages+=(kdeconnect)
|
||||||
|
|
||||||
|
# Spotify to listen music :)
|
||||||
|
# ## spicetify-cli => Use to customize spotify (Add vim keyboard style)
|
||||||
|
aur_packages+=(spotify spicetify-cli)
|
|
@ -1,7 +0,0 @@
|
||||||
shell:
|
|
||||||
program: tmux
|
|
||||||
font:
|
|
||||||
normal:
|
|
||||||
family: FiraCode Nerd Font
|
|
||||||
window:
|
|
||||||
opacity: 0.8 # Require `picom -f &` in .xinitrc
|
|
|
@ -1,3 +0,0 @@
|
||||||
[git]
|
|
||||||
autoCommit = true
|
|
||||||
autoPush = true
|
|
8
dot_config/chezmoi/chezmoi.toml.tmpl.literal
Normal file
8
dot_config/chezmoi/chezmoi.toml.tmpl.literal
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{- $wm := (output "bash" "-c" "echo $DESKTOP_SESSION") -}}
|
||||||
|
|
||||||
|
[git]
|
||||||
|
autoCommit = true
|
||||||
|
autoPush = true
|
||||||
|
|
||||||
|
[data]
|
||||||
|
wm = {{ $wm | replace "\n" "" | quote }}
|
|
@ -1,71 +1,40 @@
|
||||||
{{ if eq .chezmoi.osRelease.idLike "arch" }}
|
{{- $wm := (output "bash" "-c" "echo $DESKTOP_SESSION") -}}
|
||||||
|
|
||||||
|
{{- if eq .chezmoi.osRelease.idLike "arch" -}}
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Common packages
|
# Common packages
|
||||||
packages=(curl git)
|
# ## yay => Use to install AUR packages | Used by (Here in below)
|
||||||
|
packages=(curl git yay)
|
||||||
# All requirements for i3
|
# ## falchion-shutdown | My custom AUR packages to avoid shutdown my computer when keyboard is sleeping
|
||||||
# ## i3-gaps => I3 version but with spaces between menu | Equivalent i3
|
# ## nerd-fonts-complete | To install my preferred fonts :)
|
||||||
# ## picom => Compositor to add effects in window | Use with i3
|
aur_packages=(falchion-shutdown nerd-fonts-complete)
|
||||||
# ## polybar => Use to create simple bar in bottom | Use with i3
|
|
||||||
# ## dunst => Customizable and simple notification manager (to test it, use notify-send) | Use with i3
|
|
||||||
# ## dmenu => Basic custom menu like rofi to launch application with Windows + D | Use with i3
|
|
||||||
# ## i3lock => Custom lock screen
|
|
||||||
# ## gnome-keyring => Use to store sensitive data like password by google chrome and other
|
|
||||||
# ## xss-lock => Use to use external locker as X screen saver | Use to use i3lock for i3
|
|
||||||
# ## dex => Use to generate or use Desktop file .desktop of type Application | Use with i3
|
|
||||||
# ## feh => Use to set wallpaper | Use with i3
|
|
||||||
# ## jq => Json parser for command line use by my custom script for relative workspaces because i3-msg return json format
|
|
||||||
packages+=(picom i3-gaps polybar dunst dmenu i3lock gnome-keyring xss-lock dex feh jq)
|
|
||||||
|
|
||||||
# Utils in complement for i3
|
|
||||||
# ## bluez-tools => Used by some polybar scripts
|
|
||||||
# ## blueberry => Useful interface to manage bluetooth devices
|
|
||||||
# ## pavucontrol => Useful interface to manage audio (<!> Not tried with pipewire)
|
|
||||||
# ## network-manager-applet => Useful applet to manage network (Support Wifi and Wired)
|
|
||||||
# ## playerctl => Use to manage spotify, browsers playlist and many more from keyboard key (Use dbus to communicate)
|
|
||||||
# ## arandr => Basic interface to set current monitor position + resolution
|
|
||||||
packages+=(bluez-tools blueberry pavucontrol network-manager-applet playerctl arandr)
|
|
||||||
|
|
||||||
# For terminal
|
# For terminal
|
||||||
# ## tmux => To use multiple shell in same terminal | Used by (alacritty) | <!>
|
|
||||||
# ## alacritty => Terminal emulator coded in Rust | <!>
|
|
||||||
# ## kitty => Terminal emulator like alacritty but it look more powerfull so it can replace alacritty and tmux in future
|
# ## kitty => Terminal emulator like alacritty but it look more powerfull so it can replace alacritty and tmux in future
|
||||||
# ## viu => Terminal image viewer compatible with kitty
|
# ## viu => Terminal image viewer compatible with kitty
|
||||||
packages+=(kitty viu alacritty tmux zsh)
|
packages+=(kitty viu zsh)
|
||||||
|
|
||||||
# For development
|
# For development
|
||||||
# ## Modern replacement of vim with lua support
|
# ## Modern replacement of vim with lua support
|
||||||
# ## rust-analyzer => Use in replacement of RLS | Used by (emacs-ng + neovim + vscode if installed)
|
# ## rust-analyzer => Use in replacement of RLS | Used by (emacs-ng + neovim + vscode if installed)
|
||||||
packages+=(neovim rust-analyzer)
|
packages+=(neovim rust-analyzer)
|
||||||
|
|
||||||
# For productivity
|
{{- if eq $wm "i3" -}}
|
||||||
# ## kdeconnect => To sync phone and Desktop | Used by (i3 config)
|
{{- template "i3wm_before" -}}
|
||||||
packages+=(kdeconnect)
|
{{- else if eq $wm "gnome" -}}
|
||||||
|
sadsada
|
||||||
# Other
|
{{- end -}}
|
||||||
# ## yay => Use to install AUR packages | Used by (Here in below)
|
|
||||||
packages+=(yay)
|
|
||||||
|
|
||||||
# ## falchion-shutdown | My custom AUR packages to avoid shutdown my computer when keyboard is sleeping
|
|
||||||
# ## nerd-fonts-complete | To install my preferred fonts :)
|
|
||||||
aur_packages=(falchion-shutdown nerd-fonts-complete)
|
|
||||||
|
|
||||||
# Spotify to listen music :)
|
|
||||||
# ## spicetify-cli => Use to customize spotify (Add vim keyboard style)
|
|
||||||
aur_packages+=(spotify spicetify-cli)
|
|
||||||
|
|
||||||
sudo pacman -S ${packages[@]} --noconfirm --needed
|
sudo pacman -S ${packages[@]} --noconfirm --needed
|
||||||
yay -S ${aur_packages[@]} --noconfirm --needed
|
yay -S ${aur_packages[@]} --noconfirm --needed
|
||||||
|
|
||||||
case "${aur_packages[@]}" in
|
|
||||||
*"spicetify-cli"*)
|
|
||||||
sudo chmod a+wr /opt/spotify
|
|
||||||
sudo chmod a+wr /opt/spotify/Apps -R ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ ! -d ~/.tmux/plugins/tpm ]; then
|
if [ ! -d ~/.tmux/plugins/tpm ]; then
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{ end }}
|
{{- if eq $wm "i3" -}}
|
||||||
|
{{- template "i3wm_after" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue