parent
542cee4859
commit
374ed17b40
@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
system=$(cat /etc/os-release | sed -n 3p)
|
|
||||||
|
|
||||||
if [[ $system == *"arch"* ]]
|
|
||||||
then
|
|
||||||
ip=$(ip -json route get 8.8.8.8 | jq -r '.[].prefsrc')
|
|
||||||
elif [[ $system == *"debian"* ]]
|
|
||||||
then
|
|
||||||
ip=$(hostname -I | awk '{print $1}')
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $ip
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
ip=$(ip -json route get 8.8.8.8 | jq -r '.[].prefsrc')
|
||||||
|
echo $ip
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ip=$(hostname -I | awk '{print $1}')
|
||||||
|
echo $ip
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit bcd6d0d981fd192f21a2f5142f421f4aa1de1648
|
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
install_fish()
|
||||||
|
{
|
||||||
|
graphics_install_prompt "Fish Will be installed"
|
||||||
|
install_prog "fish"
|
||||||
|
|
||||||
|
|
||||||
|
graphics_comment "Copying Fish Config files"
|
||||||
|
if [[ -f "$USER_DOTFILE_DIR/fish/config.fish" ]]
|
||||||
|
then
|
||||||
|
graphics_comment "config.fish is found a a backup will be made as fish.config.bak"
|
||||||
|
mv $USER_DOTFILE_DIR/fish/config.fish $USER_DOTFILE_DIR/fish/fish.config.bak
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$DOTFILE_DIR/fish/config.fish $USER_DOTFILE_DIR/fish/fish.config"
|
||||||
|
cp $DOTFILE_DIR/fish/config.fish $USER_DOTFILE_DIR/fish/fish.config
|
||||||
|
|
||||||
|
graphics_install_prompt "Fish Is installed"
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source common.sh
|
install_sddm()
|
||||||
sudo $installCMD sddm
|
{
|
||||||
systemctl enable sddm
|
graphics_install_prompt "SDDM Will be installed"
|
||||||
|
install_prog "sddm"
|
||||||
|
graphics_install_prompt "SDDM Is installed"
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,78 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source common.sh
|
XNOMAD_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
sudo $installCMD xmonad xmonad-contrib dmenu xmobar picom
|
xmonad_install_list_debian=(xmonad xmonad-contrib xmobar)
|
||||||
cp -r $main_dir/dotfiles/xmonad /home/$USER/.config
|
xmonad_install_list_arch=(xmonad xmonad-contrib xmobar)
|
||||||
cp -r $main_dir/dotfiles/xmobar /home/$USER/.config
|
|
||||||
|
install_xmonad()
|
||||||
|
{
|
||||||
|
graphics_install_prompt "Xnomad Will be installed"
|
||||||
|
|
||||||
|
cd $XNOMAD_SCRIPT_DIR
|
||||||
|
|
||||||
|
case $OS in
|
||||||
|
debian)
|
||||||
|
install_from_list "${xmonad_install_list_debian[@]}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
arch)
|
||||||
|
install_from_list "${xmonad_install_list_arch[@]}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
rasberry)
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Invalid os is selectred"
|
||||||
|
exit_abord
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ -d "$USER_DOTFILE_DIR/xmobar" ]]
|
||||||
|
then
|
||||||
|
graphics_comment "Xmobar config directory exists a backup will be made"
|
||||||
|
mv $USER_DOTFILE_DIR/xmobar $USER_DOTFILE_DIR/xmobar_back
|
||||||
|
mkdir -p $USER_DOTFILE_DIR/xmobar
|
||||||
|
else
|
||||||
|
mkdir -p $USER_DOTFILE_DIR/xmobar
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -d "$USER_DOTFILE_DIR/xmobar" ]]
|
||||||
|
then
|
||||||
|
graphics_comment "Xmonad config directory exists a backup will be made"
|
||||||
|
mv $USER_DOTFILE_DIR/xmonad $USER_DOTFILE_DIR/xmonad_back
|
||||||
|
mkdir -p $USER_DOTFILE_DIR/xmonad
|
||||||
|
else
|
||||||
|
mkdir -p $USER_DOTFILE_DIR/xmonad
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -d "/home/$USER/.xmonad" ]]
|
||||||
|
then
|
||||||
|
graphics_comment "Xmonad defualt config at /home/$USER/.xmonad is found and will be deleted"
|
||||||
|
sudo rm -r /home/$USER/.xmonad/
|
||||||
|
fi
|
||||||
|
|
||||||
|
graphics_comment "You are installing for a : $PLATFORM"
|
||||||
|
|
||||||
|
graphics_comment "Copying Xmonad Config files"
|
||||||
|
cp $DOTFILE_DIR/xmonad/* $USER_DOTFILE_DIR/xmonad/
|
||||||
|
|
||||||
|
graphics_comment "Copying Xmobar Config files"
|
||||||
|
echo "$DOTFILE_DIR/xmobar/xmobarrc_$PLATFORM.hs $USER_DOTFILE_DIR/xmobar/xmobarrc.hs"
|
||||||
|
cp $DOTFILE_DIR/xmobar/xmobarrc_$PLATFORM.hs $USER_DOTFILE_DIR/xmobar/xmobarrc.hs
|
||||||
|
|
||||||
|
echo "$DOTFILE_DIR/xmobar/ip_$OS.sh $USER_DOTFILE_DIR/xmobar/ip.sh"
|
||||||
|
cp $DOTFILE_DIR/xmobar/ip_$OS.sh $USER_DOTFILE_DIR/xmobar/ip.sh
|
||||||
|
|
||||||
|
echo "$DOTFILE_DIR/xmobar/get_kernel.sh $USER_DOTFILE_DIR/xmobar/"
|
||||||
|
cp $DOTFILE_DIR/xmobar/get_kernel.sh $USER_DOTFILE_DIR/xmobar/
|
||||||
|
|
||||||
|
echo "$DOTFILE_DIR/xmobar/battery.sh $USER_DOTFILE_DIR/xmobar/"
|
||||||
|
cp $DOTFILE_DIR/xmobar/battery.sh $USER_DOTFILE_DIR/xmobar/
|
||||||
|
|
||||||
|
xmonad --recompile
|
||||||
|
|
||||||
|
graphics_install_prompt "Xnomad installation complete"
|
||||||
|
cd $MAIN_DIR
|
||||||
|
}
|
||||||
|
Loading…
Reference in new issue