Skip to content

Commit

Permalink
Added Logitech mouse configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Yoni Bettan <[email protected]>
  • Loading branch information
ybettan committed Dec 1, 2023
1 parent cdfcf72 commit 832f779
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
24 changes: 21 additions & 3 deletions scripts/configure.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
#!/bin/bash

mkdir -p /tmp/bugwarrior
function set_cronjobs {

cronjob="*/5 * * * * /home/ybettan/MyLinuxConfig/scripts/bugwarrior-pull.sh"
(sudo crontab -u $(whoami) -l; echo "$cronjob" ) | sudo crontab -u $(whoami) -
mkdir -p /tmp/bugwarrior
cronjob="*/5 * * * * /home/ybettan/MyLinuxConfig/scripts/bugwarrior-pull.sh"
(sudo crontab -u $(whoami) -l; echo "$cronjob" ) | sudo crontab -u $(whoami) -
}


function set_logitech_mouse {

git clone https://github.com/PixlOne/logiops.git /tmp/logiops
mkdir /tmp/logiops/build
cd /tmp/logiops/build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
sudo systemctl enable --now logid
cd -
}

set_cronjobs
set_logitech_mouse
12 changes: 12 additions & 0 deletions scripts/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ packages+=(brave-browser)
packages+=(google-chrome-stable)
packages+=(insync)
packages+=(slack)
packages+=(cmake libevdev-devel glib2-devel systemd-devel libconfig-devel gcc-c++) # needed for building 'logiops'
packages+=(vim-plug)
[[ ${OS} == "Darwin" ]] && packages+=(coreutils) # linux terminal commands

Expand Down Expand Up @@ -110,6 +111,17 @@ if [[ ${OS} == "Linux" ]]; then
-o /tmp/slack-desktop-4.31.155-amd64.deb
sudo apt-get -y install /tmp/slack-desktop-4.31.155-amd64.deb || failedPackages+=($p)
fi
elif [[ $p == libevdev-devel ]] && [[ $distribution == ubuntu ]]; then
sudo apt-get -y install libevdev-dev || failedPackages+=($p)
elif [[ $p == glib2-devel ]] && [[ $distribution == ubuntu ]]; then
sudo apt-get -y install libglib2.0-dev || failedPackages+=($p)
elif [[ $p == systemd-devel ]] && [[ $distribution == ubuntu ]]; then
sudo apt-get -y install libudev-dev || failedPackages+=($p)
elif [[ $p == libconfig-devel ]] && [[ $distribution == ubuntu ]]; then
sudo apt-get -y install libconfig++-dev || failedPackages+=($p)
elif [[ $p == gcc-c++ ]] && [[ $distribution == ubuntu ]]; then
sudo apt-get -y install build-essential || failedPackages+=($p)
sudo apt-get -y install pkg-config || failedPackages+=($p)
elif [[ $p == vim-plug ]]; then
# curl is a dependency and already installed
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
Expand Down
3 changes: 3 additions & 0 deletions scripts/link_dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ links+=("gitconfig")
links+=("ssh.config")
links+=("taskrc")
links+=("bugwarriorrc")
links+=("logid.cfg")
[[ $os == "Darwin" ]] && links+=("alacritty.yml")

for l in ${links[*]}; do
Expand All @@ -25,6 +26,8 @@ for l in ${links[*]}; do
mkdir ~/.ssh
fi
ln -s -f $(pwd)/dotfiles/$l ~/.ssh/config && echo "linked dotfile .$l" || failedLinks+=($l)
elif [[ $l == "logid.cfg" ]]; then
sudo ln -s -f $(pwd)/dotfiles/logid.cfg /etc/logid.cfg
else
ln -s -f $(pwd)/dotfiles/$l ~/.$l && echo "linked dotfile .$l" || failedLinks+=($l)
fi
Expand Down

0 comments on commit 832f779

Please sign in to comment.