From b9c05abc3a1da6933df9a2dc1f1f5eb2344eefcc Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 14 Nov 2021 12:21:29 +0100 Subject: [PATCH] Dotfiles config update (2021-11-14) --- .alacritty-install.sh.swp | Bin 0 -> 12288 bytes .config/compton/compton.conf | 2 +- .config/i3/config | 9 ++++-- alacritty-install.sh | 53 +++++++++++++++++++++++++++++++ i3-gaps-install.sh | 60 +++++++++++++++++++++++++++++++++++ i3-tiling.txt | 2 +- 6 files changed, 121 insertions(+), 5 deletions(-) create mode 100644 .alacritty-install.sh.swp create mode 100755 alacritty-install.sh create mode 100755 i3-gaps-install.sh diff --git a/.alacritty-install.sh.swp b/.alacritty-install.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..623019df0c1aa32e090157f7839714ec7c5c62a6 GIT binary patch literal 12288 zcmeI2&yU+g6vw9^AyMcL@#DblZBlJfisNJhs9Ll@`Jt*(Ij~jB0nut~PvRlA$2%S` z3Dtr?;sg@qhM-8?IQNd&WBEJi5fDi9$bs+JiPK#b?Jg|`&{+CtJmWXxneV)LNt74# zE}eUWPIp%ruH%e7`SUey9z6cg_lFtV81Rk6w(oI8VzcDg9!7ZlK{cS?jkw{y%8h?k z8b4BIC=*fmJmI01#!Nk#6^18Cw}|&1(^)tLoC5n$pfp48^bs~#>G!O4yR}4*KX!2+ z9i53&z$xGqa0)mDoB~b(r+`zyDe!+$z~qP6hgi%5vjsgjD-Z1|XH{1?1)Ks-0jGdd zz$xGqa0)mDoB~b(r+`zyDexaufJcm#_^)3)g306m|M~C#+s7FD18jp&!CRmWem~0C zZ{QZV0lo%bfsa7|-UQEpr@#~7F!=Qd?7FWkcc%OBgF^wPt09 z)&-IxwIQP@Q9L3!@J2i@<_7b!Gk-w2R-q^gjF-tG7SYn&q=i>qh}CwU)Np9ZMcbLt&yaf#!?r=dY}bTy5<%K^H3(YrkSuBA#L8b$X~>D0b)`^gM9yeRbGn zWUITHc4)B2w!c0RA)Rb;V^7jh>DmE!o-cN^_LdGchW~W?<5Wd-YO>huX2ixdnwEtT zD~y)#9Iq-pB=0U}Vs{;$I}*m%0v=unpM|KanS*%Vtoi=Chdm&S@!T{%lk%~kQ5X_0 zjS5vZq_Aqr$0N^H<%kj)47Ctunv3T>q&8O#Dl_%t{=8`t2Hs>SC!**zP2(U`X{xfS zA)lI9Wdo|$>P@S8l=(>WNKjKnF0{aTJU8>{NaP}mL>5YcnGYo+5))}`F^dQDyAGX+ zQhT(G<_12I3!TcMkSZ&PYk?EJQA#bM)?NE9_HcHZ?lcogA<%1nvV;kJt(0MMNN?kG z^5(sf(p%(-4eHT5^a7b!WNgRNwG%Hb;(f!CR(&5)Brbz4q+jHaFYau#yTrBR0g}w|8t<8 literal 0 HcmV?d00001 diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf index 5c9ff2f..decb4a3 100644 --- a/.config/compton/compton.conf +++ b/.config/compton/compton.conf @@ -6,7 +6,7 @@ # Backend to use: "xrender" or "glx". # GLX backend is typically much faster but depends on a sane driver. -backend = "xrender"; +backend = "glx"; ################################# # diff --git a/.config/i3/config b/.config/i3/config index 262f178..073df03 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -44,7 +44,10 @@ exec --no-startup-id ~/.config/i3/startxrandr.sh & exec --no-startup-id "sleep 15 && picom &" # 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. set $refresh_i3status killall -SIGUSR1 i3status @@ -168,8 +171,8 @@ bindsym $mod+a focus parent #bindsym $mod+d focus child # i3-gaps config -#gaps inner 10 -#gaps outer 10 +#gaps inner 6 +#gaps outer 2 # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. diff --git a/alacritty-install.sh b/alacritty-install.sh new file mode 100755 index 0000000..9c10183 --- /dev/null +++ b/alacritty-install.sh @@ -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} + + + diff --git a/i3-gaps-install.sh b/i3-gaps-install.sh new file mode 100755 index 0000000..c7b4410 --- /dev/null +++ b/i3-gaps-install.sh @@ -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} + + + diff --git a/i3-tiling.txt b/i3-tiling.txt index b04e56f..114a1d9 100644 --- a/i3-tiling.txt +++ b/i3-tiling.txt @@ -30,4 +30,4 @@ sudo apt-get install git nodejs node-base python3 npm 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