Dotfiles config update (2021-11-14)

This commit is contained in:
q3aql 2021-11-14 12:21:29 +01:00
parent 946d96d0a7
commit b9c05abc3a
6 changed files with 121 additions and 5 deletions

BIN
.alacritty-install.sh.swp Normal file

Binary file not shown.

View File

@ -6,7 +6,7 @@
# Backend to use: "xrender" or "glx". # Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver. # GLX backend is typically much faster but depends on a sane driver.
backend = "xrender"; backend = "glx";
################################# #################################
# #

View File

@ -44,7 +44,10 @@ exec --no-startup-id ~/.config/i3/startxrandr.sh &
exec --no-startup-id "sleep 15 && picom &" exec --no-startup-id "sleep 15 && picom &"
# Configure wallpaper # Configure wallpaper
exec --no-startup-id nitrogen --set-centered ~/wallpapers/abstract.png exec --no-startup-id "sleep 3 && nitrogen --set-centered ~/wallpapers/abstract.png"
# Configure xscreensaver
exec --no-startup-id "sleep 5 && xscreensaver &"
# Use pactl to adjust volume in PulseAudio. # Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status set $refresh_i3status killall -SIGUSR1 i3status
@ -168,8 +171,8 @@ bindsym $mod+a focus parent
#bindsym $mod+d focus child #bindsym $mod+d focus child
# i3-gaps config # i3-gaps config
#gaps inner 10 #gaps inner 6
#gaps outer 10 #gaps outer 2
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.

53
alacritty-install.sh Executable file
View File

@ -0,0 +1,53 @@
#!/bin/bash
###################################################
# Script to build and install alacritty on Debian #
# Author: q3aql (q3aql@duck.com #
# Last update: 14-11-2021 #
# ################################################
# Variables
URL_Repo="https://github.com/alacritty/alacritty"
dir_build="alacritty"
# Check if you are root
mkdir -p /etc/root &> /dev/null
administrador=$?
if [ ${administrador} -eq 0 ] ; then
rm -rf /etc/root
else
echo ""
echo "* alacritty install"
echo ""
echo "* Administrator permissions are required"
echo ""
exit
fi
# Install dependencies
apt update
apt upgrade -y
apt install make gcc autoconf cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 cargo -y
#Build and install i3-gaps
cd /tmp
git clone ${URL_Repo} ${dir_build}
cd ${dir_build}
cargo build --release
cd target/release/
strip --strip-all alacritty
cp -rfv alacritty /usr/bin/
chmod +x /usr/bin/alacritty
# Show message to restart
echo ""
echo "* alacritty process finished!"
echo ""
echo "* Exec 'alacritty' for load app"
echo ""
# Clean files
rm -rf /tmp/${dir_build}

60
i3-gaps-install.sh Executable file
View File

@ -0,0 +1,60 @@
#!/bin/bash
#################################################
# Script to build and install i3-gaps on Debian #
# Author: q3aql (q3aql@duck.com #
# Last update: 14-11-2021 #
# ###############################################
# Variables
URL_Repo="https://www.github.com/Airblader/i3"
dir_build="i3-gaps"
# Check if you are root
mkdir -p /etc/root &> /dev/null
administrador=$?
if [ ${administrador} -eq 0 ] ; then
rm -rf /etc/root
else
echo ""
echo "* i3-gaps install"
echo ""
echo "* Administrator permissions are required"
echo ""
exit
fi
# Install dependencies
apt update
apt upgrade -y
apt install dh-autoreconf libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev libxcb-shape0 libxcb-shape0-dev -y
apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev \
libxcb-util0-dev libxcb-icccm4-dev libyajl-dev \
libstartup-notification0-dev libxcb-randr0-dev \
libev-dev libxcb-cursor-dev libxcb-xinerama0-dev \
libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev \
autoconf libxcb-xrm-dev -y
apt install cmake make gcc meson ninja-build git -y
#Build and install i3-gaps
cd /tmp
git clone ${URL_Repo} ${dir_build}
cd ${dir_build}
mkdir -p build && cd build
meson ..
ninja
ninja install
cp -rfv /usr/local/bin/i3* /usr/bin/
# Show message to restart
echo ""
echo "* i3-gaps process finished!"
echo ""
echo "* Restart to load i3-gaps"
echo ""
# Clean files
rm -rf /tmp/${dir_build}

View File

@ -30,4 +30,4 @@ sudo apt-get install git nodejs node-base python3 npm
OTHER: OTHER:
sudo apt-get install make cmake gcc cargo neofetch screenfetch lm-sensors xfce4-screenshooter sudo apt-get install make cmake gcc cargo neofetch screenfetch lm-sensors xfce4-screenshooter xscreensaver