From c12d02597e440461413e3ad2fa18bef8609aeda4 Mon Sep 17 00:00:00 2001 From: q3aql Date: Thu, 25 Nov 2021 20:51:39 +0100 Subject: [PATCH] Dotfiles config update (2021-11-25) --- .config/spectrwm/spectrwm.conf | 2 ++ spectrwm-install.sh | 51 ++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 spectrwm-install.sh diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index 9491326..4cd6888 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -334,6 +334,8 @@ quirk[Pavucontrol:pavucontrol] = FLOAT quirk[Lxappearance:lxappearance] = FLOAT quirk[vlc:vlc] = FLOAT quirk[mpv:gl] = FLOAT +quirk[Engrampa:engrampa] = FLOAT +quirk[Xarchiver:xarchiver] = FLOAT quirk[Ristretto:ristretto] = FLOAT quirk[Gimp:gimp] = FLOAT + ANYWHERE quirk[Gimp-2.10:gimp-2.10] = FLOAT + ANYWHERE diff --git a/spectrwm-install.sh b/spectrwm-install.sh new file mode 100755 index 0000000..b81bf7c --- /dev/null +++ b/spectrwm-install.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +###################################################################### +# Script to build and install last version spectrwm on Ubuntu/Debian # +# Author: q3aql (q3aql@duck.com) # +# Last update: 24-11-2021 # +# #################################################################### + +# Variables +URL_Repo="https://github.com/conformal/spectrwm" +dir_build="spectrwm" + +# Check if you are root +mkdir -p /etc/root &> /dev/null +administrador=$? +if [ ${administrador} -eq 0 ] ; then + rm -rf /etc/root +else + echo "" + echo "* spectrwm install" + echo "" + echo "* Administrator permissions are required" + echo "" + exit +fi + +# Install dependencies +apt update +apt upgrade -y +sudo apt install autopoint debhelper dh-autoreconf dh-strip-nondeterminism dwz gettext \ +gettext-base intltool-debian libarchive-zip-perl libdebhelper-perl make cmake gcc \ +libfile-stripnondeterminism-perl libice-dev libsm-dev libsub-override-perl libtool \ +libx11-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev \ +libxcb-util-dev libxcb-util0-dev libxcb-xinput-dev libxcb-xtest0-dev libxcursor-dev \ +libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev libxt-dev \ +libxtst-dev po-debconf x11proto-input-dev x11proto-randr-dev x11proto-record-dev \ +x11proto-xext-dev xtrans-dev git spectrwm -y + +# Build and install spectrwm +cd /tmp/ +git clone ${URL_Repo} ${dir_build} +cd ${dir_build}/linux +make +make install +cp -rfv /usr/local/bin/spectrwm /usr/bin/ +chmod +x /usr/bin/spectrwm + +# Show message to restart +echo "" +echo "* spectrwm process finished!" +echo ""