Commit 55597dcb authored by Guilherme Semente's avatar Guilherme Semente 🌱

Group user variables

parent 2128138f
......@@ -6,10 +6,6 @@
# See bspwm(1) and <https://github.com/baskerville/bspwm> for more information.
#
_BSPWM_BORDER_COLOR="${BSPWM_BORDER_COLOR:-#888888}"
_BSPWM_FOCUSED_COLOR="${BSPWM_FOCUSED_COLOR:-#FFFFFF}"
_BSPWM_PRESEL_COLOR="${BSPWM_BORDER_COLOR:-$_BSPWM_FOCUSED_COLOR}"
bspc config split_ratio 0.52
bspc config focus_follows_pointer false
bspc config pointer_follows_focus true
......@@ -22,14 +18,13 @@ bspc config border_width 6
bspc config remove_disabled_monitors true
bspc config remove_unplugged_monitors true
bspc config merge_overlapping_monitors true
bspc config normal_border_color "$_BSPWM_BORDER_COLOR"
bspc config focused_border_color "$_BSPWM_FOCUSED_COLOR"
bspc config presel_feedback_color "$_BSPWM_PRESEL_COLOR"
bspc config normal_border_color "$BSPWM_BORDER_COLOR"
bspc config focused_border_color "$BSPWM_FOCUSED_COLOR"
bspc config presel_feedback_color "$BSPWM_PRESEL_COLOR"
bspc monitor -d 1 2 3 4
bspc rule -a "*" state=floating
# bspc subscribe handler daemon
#setsid bspwm-subscribe-handler >/dev/null 2>&1 < /dev/null &
bspwm-subscribe-handler &
......@@ -10,13 +10,15 @@ bspc subscribe all | while read -a msg ; do
layout="${msg[3]}"
#xwrite "$layout" &
if [ "$layout" == "monocle" ]; then
hsetroot -solid "#132530"
bspc config focused_border_color "#9DA3AB"
bspc config border_width 6
bspc config focused_border_color "#888888"
hsetroot -solid "#222222"
else
hsetroot -solid "#222950"
bspc config focused_border_color "#59F487"
bspc config border_width 6
bspc config focused_border_color "$BSPWM_FOCUSED_COLOR"
if [ -f "$X_WALLPAPER" ]; then
hsetroot -fill "$X_WALLPAPER"
else
hsetroot -solid "$X_WALLPAPER"
fi
fi
;;
node_focus)
......
#!/bin/bash
# Invoke X clients and the session manager
#
# NOTE This file must have executable permissions
# NOTE: This file must have executable permissions
#
# See Xsession(5) for more information.
#
_X_WALLPAPER="${X_WALLPAPER:-#222222}" # set to file or solid color
# turn off display after 8 minutes of inactivity
xset dpms 480 480 480
......@@ -27,7 +25,7 @@ sctd &
# set wallpaper and cursor
xsetroot -cursor_name left_ptr
if [ -f "$_X_WALLPAPER" ]; then
if [ -f "$X_WALLPAPER" ]; then
hsetroot -fill "$X_WALLPAPER"
else
hsetroot -solid "$X_WALLPAPER"
......
# -*- mode: shell-script -*-
# Locales and global environment variables for the X session
#
# NOTE This file must be POSIX compliant
# NOTE: This file must be POSIX compliant
#
# See Xsession(5) for more information.
#
# shellcheck source=/dev/null
# load local variables
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
# shellcheck source=/dev/null
[ -f "$HOME/etc/xlocalrc" ] && . "$HOME/etc/xlocalrc"
# XXX: use ~/etc/xlocalrc to override the following variables
# set wallpaper to filename or solid color
export X_WALLPAPER="${X_WALLPAPER:-#222222}"
# define bpswm colors
export BSPWM_BORDER_COLOR="${BSPWM_BORDER_COLOR:-#888888}"
export BSPWM_FOCUSED_COLOR="${BSPWM_FOCUSED_COLOR:-#FFFFFF}"
export BSPWM_PRESEL_COLOR="${BSPWM_PRESEL_COLOR:-$BSPWM_FOCUSED_COLOR}"
# Executed by the command interpreter for login shells
#
# NOTE This file must be POSIX compliant
# NOTE: This file must be POSIX compliant
#
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists. For Zsh sessions add the following line in your ~/.zprofile, so you
......@@ -31,18 +31,23 @@ PATH="$HOME/.cargo/bin:$PATH"
GOPATH="$HOME/src/go"
PATH="$GOPATH/bin:$PATH"
# cp, ln, ...
VERSION_CONTROL=numbered
# man
MANWIDTH=88
export PATH GOPATH VERSION_CONTROL MANWIDTH
export PIPENV_COLORBLIND PIPENV_NOSPIN PIPENV_SHELL_FANCY PIPENV_VENV_IN_PROJECT
# load local variables
# shellcheck source=/dev/null
[ -f "$HOME/etc/localrc" ] && . "$HOME/etc/localrc"
# XXX: use ~/etc/localrc to override the following variables
# reportbug
export DEBNAME="${DEBNAME:-semente}"
export DEBEMAIL="${DEBEMAIL:-semente@$(hostname -f)}"
# link gpg-agent to the connected terminal (manpage gpg-agent(1))
_set_gpg_tty () {
GPG_TTY=$(tty)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment