dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit b9e4e89d61adc0b04e1daa59ffc6fbe0a4ae923d
parent e8194a492212685f37d8bcd579c16c2650028981
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 25 Feb 2021 15:24:01 +0000

new colours and border size. use script to calculate position for interrobang

Diffstat:
M2bwm/config.h | 6+++---
Abin/bin/multi-interrobang | 12++++++++++++
2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/2bwm/config.h b/2bwm/config.h @@ -22,7 +22,7 @@ static const uint8_t offsets[] = {10,10,20,20}; *2)fixedcol 3)unkilcol *4)fixedunkilcol 5)outerbordercol *6)emptycol */ -static const char *colors[] = {"#929eb5","#212021","#8fbed3","#e29e84","#888aa9","#4e495a","#212021"}; +static const char *colors[] = {"#807b64","#131313","#3f3639","#271f1f","#1e1b1c","#2b2b2d","#202020"}; /* if this is set to true the inner border and outer borders colors will be swapped */ static const bool inverted_colors = true; ///---Cursor---/// @@ -35,7 +35,7 @@ static const bool inverted_colors = true; /*0) Outer border size. If you put this negative it will be a square. *1) Full borderwidth 2) Magnet border size *3) Resize border size */ -static const uint8_t borders[] = {4,8,4,4}; +static const uint8_t borders[] = {4,10,6,6}; /* Windows that won't have a border. * It uses substring comparison with what is found in the WM_NAME * attribute of the window. You can test this using `xprop WM_NAME` @@ -43,7 +43,7 @@ static const uint8_t borders[] = {4,8,4,4}; #define LOOK_INTO "WM_NAME" static const char *ignore_names[] = {"bar", "xclock"}; ///--Menus and Programs---/// -static const char *menucmd[] = { "interrobang", NULL }; +static const char *menucmd[] = { "/home/pyratebeard/bin/multi-interrobang", NULL }; static const char *terminal[] = { "urxvtc", NULL }; static const char *lock[] = { "/home/pyratebeard/bin/lock", NULL }; ///--Custom foo---/// diff --git a/bin/bin/multi-interrobang b/bin/bin/multi-interrobang @@ -0,0 +1,12 @@ +#!/bin/sh + +PRIM_GEO=$(xrandr | grep primary | awk '{ print $4 }' | cut -d+ -f1) +X=$(echo ${PRIM_GEO} | cut -dx -f1) +Y=$(echo ${PRIM_GEO} | cut -dx -f2) +HALF_X=$(( ${X} / 4 )) +HALF_Y=$(( ${Y} / 2 )) + +CUR_GEO=$(grep "^set geometry" ~/.interrobangrc | cut -d= -f2 | tr -d ' ') +CUR_SIZE=$(echo ${CUR_GEO} | cut -d+ -f1) + +interrobang -o "set geometry = ${CUR_SIZE}+${HALF_X}+${HALF_Y}"