mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Add desktop environment configs and provisioning scripts for debian
- Add qutebrowser configs - Add xfce4-panel config - Add provision_debian script - Add upgrade_debian script - Refactor sync script to separate terminal and desktop env configs
This commit is contained in:
parent
116620843a
commit
b76aac107e
12 changed files with 516 additions and 11 deletions
37
sync
37
sync
|
|
@ -10,12 +10,16 @@ function main
|
|||
|
||||
setup_tmp_space $cwd
|
||||
|
||||
sync_files
|
||||
sync_terminal_env
|
||||
|
||||
sync_desktop_env
|
||||
|
||||
set_kitty_font_size $uname
|
||||
|
||||
install_fisher_packages
|
||||
|
||||
install_nvim_plugins
|
||||
|
||||
set_color normal
|
||||
|
||||
set_git_user
|
||||
|
|
@ -35,26 +39,37 @@ function setup_tmp_space -a cwd
|
|||
end
|
||||
end
|
||||
|
||||
function sync_files
|
||||
function sync_terminal_env
|
||||
if ! test -e ~/.config; mkdir ~/.config; end
|
||||
|
||||
rsync -aP ./.config/fish ~/.config/
|
||||
rsync -aP ./.config/kitty ~/.config/
|
||||
rsync -aP ./.config/nvim ~/.config/
|
||||
rsync -aP ./.config/bspwm ~/.config/
|
||||
rsync -aP ./.config/sxhkd ~/.config/
|
||||
rsync -aP ./.config/picom ~/.config/
|
||||
rsync -aP ./.gitconfig ~/
|
||||
rsync -aP ./.tmux-line.conf ~/
|
||||
rsync -aP ./.tmux.conf ~/
|
||||
rsync -aP ./.vim ~/
|
||||
rsync -aP ./.vimrc ~/
|
||||
rsync -aP ./.ideavimrc ~/
|
||||
rsync -aP ./.yabairc ~/
|
||||
rsync -aP ./.skhdrc ~/
|
||||
rsync -aP ./.taskrc ~/
|
||||
end
|
||||
|
||||
function sync_desktop_env
|
||||
set prompt 'Would you like to sync the desktop environment?'
|
||||
read -p "set_color red; printf '\n$prompt (Y/n) '; set_color normal" sync_desktop_env
|
||||
|
||||
if test -z "$sync_desktop_env"; or test "$sync_desktop_env" = 'y'; or test "$sync_desktop_env" = 'Y'
|
||||
rsync -aP ./.config/kitty ~/.config/
|
||||
rsync -aP ./.config/bspwm ~/.config/
|
||||
rsync -aP ./.config/sxhkd ~/.config/
|
||||
rsync -aP ./.config/picom ~/.config/
|
||||
rsync -aP ./.config/xfce4 ~/.config/
|
||||
rsync -aP ./.config/qutebrowser ~/.config/
|
||||
rsync -aP ./.config/keepassxc ~/.config/
|
||||
rsync -aP ./.ideavimrc ~/
|
||||
rsync -aP ./.yabairc ~/
|
||||
rsync -aP ./.skhdrc ~/
|
||||
end
|
||||
end
|
||||
|
||||
function set_kitty_font_size -a uname
|
||||
if test "$uname" = 'Darwin'
|
||||
sed -i '' -e 's/font_size 11\.0/font_size 13\.0/' ~/.config/kitty/kitty.conf
|
||||
|
|
@ -71,9 +86,9 @@ end
|
|||
|
||||
function set_git_user
|
||||
set prompt 'Would you like to set your git user name and email?'
|
||||
read -p "set_color red; printf '\n$prompt (Y/n) '; set_color normal" set_git_user
|
||||
read -p "set_color red; printf '\n$prompt (y/N) '; set_color normal" set_git_user
|
||||
|
||||
if test -z "$set_git_user"; or test "$set_git_user" = 'y'; or test "$set_git_user" = 'Y'
|
||||
if test "$set_git_user" = 'y'; or test "$set_git_user" = 'Y'
|
||||
read -P 'name: ' name
|
||||
read -P 'email: ' email
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue