Updates to linux desktop configs and provisioning

This commit is contained in:
mitchell 2020-11-15 00:23:44 -05:00
parent 81d5491278
commit 2b4295d8b8
4 changed files with 33 additions and 21 deletions

View File

@ -1,12 +1,17 @@
#! /bin/sh
#!/bin/sh
setxkbmap -option altwin:swap_alt_win
setxkbmap -option ctrl:swapcaps
sxhkd &
wmname LG3D
polybar m-bar &
xfce4-screensaver &
picom -b
wmname LG3D
killall -q polybar
polybar m-bar &
xfce4-screensaver &
~/.fehbg &
bspc monitor -d I II III IV V VI VII

View File

@ -213,9 +213,9 @@ function install_pkgs -S
sudo $cmd --sync --refresh --sysupgrade --noconfirm
sudo $cmd --sync --noconfirm $arch_pkgs $argv
case debian
sudo apt-get update >/dev/null 2>&1
sudo apt-get upgrade --yes
sudo apt-get install --yes $debian_pkgs $argv
sudo apt-get --quiet --yes update
sudo apt-get --quiet --yes upgrade
sudo apt-get --quiet --yes install $debian_pkgs $argv
end
end

31
sync
View File

@ -25,14 +25,14 @@ function main
log 'Syncing desktop environment configurations'
set_color grey
sync_desktop_env
sync_desktop_env $uname
set_kitty_font_size $uname
end
if test -n "$_flag_g"
set_color normal
log 'Set git user'
set_git_user
log 'Sync git config'
sync_git_config
set_color grey
end
@ -56,7 +56,6 @@ function sync_terminal_env
rsync -aP ./.config/fish ~/.config/
rsync -aP ./.config/nvim ~/.config/
rsync -aP ./.gitconfig ~/
rsync -aP ./.tmux-line.conf ~/
rsync -aP ./.tmux.conf ~/
rsync -aP ./.vim ~/
@ -64,16 +63,22 @@ function sync_terminal_env
rsync -aP ./.taskrc ~/
end
function sync_desktop_env
function sync_desktop_env -a uname
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/polybar ~/.config/
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
function set_kitty_font_size -a uname
@ -90,7 +95,9 @@ function install_nvim_plugins
command -q nvim; and nvim +PlugUpgrade +PlugUpdate +qa
end
function set_git_user
function sync_git_config
rsync -aP ./.gitconfig ~/
echo 'Please set your git user:'
read -P 'name: ' name
read -P 'email: ' email

View File

@ -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
log 'Upgrading debian to unstable'
sudo apt-get update >/dev/null 2>&1
sudo apt-get dist-upgrade --yes
sudo apt-get --quiet --yes update
sudo apt-get --quiet --yes dist-upgrade
log 'Rebooting'
sudo reboot