mirror of https://github.com/mitchell/dotfiles.git
Updates to linux desktop configs and provisioning
This commit is contained in:
parent
81d5491278
commit
2b4295d8b8
|
@ -1,12 +1,17 @@
|
||||||
#! /bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
setxkbmap -option altwin:swap_alt_win
|
setxkbmap -option altwin:swap_alt_win
|
||||||
setxkbmap -option ctrl:swapcaps
|
setxkbmap -option ctrl:swapcaps
|
||||||
|
|
||||||
sxhkd &
|
sxhkd &
|
||||||
wmname LG3D
|
|
||||||
polybar m-bar &
|
|
||||||
xfce4-screensaver &
|
|
||||||
picom -b
|
picom -b
|
||||||
|
|
||||||
|
wmname LG3D
|
||||||
|
|
||||||
|
killall -q polybar
|
||||||
|
polybar m-bar &
|
||||||
|
|
||||||
|
xfce4-screensaver &
|
||||||
~/.fehbg &
|
~/.fehbg &
|
||||||
|
|
||||||
bspc monitor -d I II III IV V VI VII
|
bspc monitor -d I II III IV V VI VII
|
||||||
|
|
|
@ -213,9 +213,9 @@ function install_pkgs -S
|
||||||
sudo $cmd --sync --refresh --sysupgrade --noconfirm
|
sudo $cmd --sync --refresh --sysupgrade --noconfirm
|
||||||
sudo $cmd --sync --noconfirm $arch_pkgs $argv
|
sudo $cmd --sync --noconfirm $arch_pkgs $argv
|
||||||
case debian
|
case debian
|
||||||
sudo apt-get update >/dev/null 2>&1
|
sudo apt-get --quiet --yes update
|
||||||
sudo apt-get upgrade --yes
|
sudo apt-get --quiet --yes upgrade
|
||||||
sudo apt-get install --yes $debian_pkgs $argv
|
sudo apt-get --quiet --yes install $debian_pkgs $argv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
31
sync
31
sync
|
@ -25,14 +25,14 @@ function main
|
||||||
log 'Syncing desktop environment configurations'
|
log 'Syncing desktop environment configurations'
|
||||||
set_color grey
|
set_color grey
|
||||||
|
|
||||||
sync_desktop_env
|
sync_desktop_env $uname
|
||||||
set_kitty_font_size $uname
|
set_kitty_font_size $uname
|
||||||
end
|
end
|
||||||
|
|
||||||
if test -n "$_flag_g"
|
if test -n "$_flag_g"
|
||||||
set_color normal
|
set_color normal
|
||||||
log 'Set git user'
|
log 'Sync git config'
|
||||||
set_git_user
|
sync_git_config
|
||||||
set_color grey
|
set_color grey
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ function sync_terminal_env
|
||||||
|
|
||||||
rsync -aP ./.config/fish ~/.config/
|
rsync -aP ./.config/fish ~/.config/
|
||||||
rsync -aP ./.config/nvim ~/.config/
|
rsync -aP ./.config/nvim ~/.config/
|
||||||
rsync -aP ./.gitconfig ~/
|
|
||||||
rsync -aP ./.tmux-line.conf ~/
|
rsync -aP ./.tmux-line.conf ~/
|
||||||
rsync -aP ./.tmux.conf ~/
|
rsync -aP ./.tmux.conf ~/
|
||||||
rsync -aP ./.vim ~/
|
rsync -aP ./.vim ~/
|
||||||
|
@ -64,16 +63,22 @@ function sync_terminal_env
|
||||||
rsync -aP ./.taskrc ~/
|
rsync -aP ./.taskrc ~/
|
||||||
end
|
end
|
||||||
|
|
||||||
function sync_desktop_env
|
function sync_desktop_env -a uname
|
||||||
rsync -aP ./.config/kitty ~/.config/
|
rsync -aP ./.config/kitty ~/.config/
|
||||||
rsync -aP ./.config/bspwm ~/.config/
|
|
||||||
rsync -aP ./.config/sxhkd ~/.config/
|
|
||||||
rsync -aP ./.config/picom ~/.config/
|
|
||||||
rsync -aP ./.config/qutebrowser ~/.config/
|
rsync -aP ./.config/qutebrowser ~/.config/
|
||||||
rsync -aP ./.config/polybar ~/.config/
|
|
||||||
rsync -aP ./.ideavimrc ~/
|
rsync -aP ./.ideavimrc ~/
|
||||||
rsync -aP ./.yabairc ~/
|
|
||||||
rsync -aP ./.skhdrc ~/
|
switch $uname
|
||||||
|
case Darwin
|
||||||
|
rsync -aP ./.yabairc ~/
|
||||||
|
rsync -aP ./.skhdrc ~/
|
||||||
|
|
||||||
|
case Linux
|
||||||
|
rsync -aP ./.config/bspwm ~/.config/
|
||||||
|
rsync -aP ./.config/sxhkd ~/.config/
|
||||||
|
rsync -aP ./.config/picom ~/.config/
|
||||||
|
rsync -aP ./.config/polybar ~/.config/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function set_kitty_font_size -a uname
|
function set_kitty_font_size -a uname
|
||||||
|
@ -90,7 +95,9 @@ function install_nvim_plugins
|
||||||
command -q nvim; and nvim +PlugUpgrade +PlugUpdate +qa
|
command -q nvim; and nvim +PlugUpgrade +PlugUpdate +qa
|
||||||
end
|
end
|
||||||
|
|
||||||
function set_git_user
|
function sync_git_config
|
||||||
|
rsync -aP ./.gitconfig ~/
|
||||||
|
|
||||||
echo 'Please set your git user:'
|
echo 'Please set your git user:'
|
||||||
read -P 'name: ' name
|
read -P 'name: ' name
|
||||||
read -P 'email: ' email
|
read -P 'email: ' email
|
||||||
|
|
|
@ -7,8 +7,8 @@ deb http://ftp.us.debian.org/debian unstable main contrib non-free
|
||||||
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free' | sudo tee /etc/apt/sources.list
|
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free' | sudo tee /etc/apt/sources.list
|
||||||
|
|
||||||
log 'Upgrading debian to unstable'
|
log 'Upgrading debian to unstable'
|
||||||
sudo apt-get update >/dev/null 2>&1
|
sudo apt-get --quiet --yes update
|
||||||
sudo apt-get dist-upgrade --yes
|
sudo apt-get --quiet --yes dist-upgrade
|
||||||
|
|
||||||
log 'Rebooting'
|
log 'Rebooting'
|
||||||
sudo reboot
|
sudo reboot
|
||||||
|
|
Loading…
Reference in New Issue