-export EDITOR="vim"
-export PATH="/home/max/.local/bin:${PATH}"
-export TMPDIR="/home/max/.local/tmp"
-
-if [ -n "$BASH_VERSION" ]; then
- # include .bashrc if it exists
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
-fi
-
-if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
-fi
-
-export PATH="$HOME/.cargo/bin:$PATH"
-
-if test -z "${XDG_RUNTIME_DIR}"; then
- export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
- if ! test -d "${XDG_RUNTIME_DIR}"; then
- mkdir "${XDG_RUNTIME_DIR}"
- chmod 0700 "${XDG_RUNTIME_DIR}"
- fi
-fi
-
-export QT_QPA_PLATFORM=wayland-egl
-
-if [ -f ~/.config/sway/config.base ]; then
- cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
+if [ -r ~/.profile ]; then
+ . ~/.profile;
fi
-if [ -f ~/.Xresources ]; then
- cat ~/.Xresources > ~/.Xdefaults
- if [ -f ~/.Xresources.$HOSTNAME ]; then
- cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
- fi
-fi
-
-if [ -f ~/.config/termite/config.base ]; then
- cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
- ~/.config/termite/config
-fi
-
-
-if [ $HOSTNAME = "magnesium" ]; then
- export XKB_DEFAULT_LAYOUT=us
- export XKB_DEFAULT_VARIANT=colemak
- export XKB_DEFAULT_OPTIONS=ctrl:nocaps
-fi
-
-if [ $HOSTNAME = "platinum" ]; then
- export XKB_DEFAULT_LAYOUT=gb
- export XKB_DEFAULT_VARIANT=colemak
- export XKB_DEFAULT_OPTIONS=ctrl:nocaps
-fi
+case "$-" in *i*)
+ if [ -r ~/.bashrc ]; then
+ . ~/.bashrc
+ fi
+ ;;
+esac
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
-# If not running interactively, don't do anything
-case $- in
- *i*) ;;
- *) return;;
-esac
-
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
-HISTFILESIZE=2000
+HISTFILESIZE=20000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
-# make less more friendly for non-text input files, see lesspipe(1)
-if [ -x /usr/bin/lesspipe ]; then
- export LESSOPEN="|lesspipe %s"
-elif [ -x /usr/bin/lesspipe.sh ]; then
- export LESSOPEN="|lesspipe %s"
-fi
-
-# set variable identifying the chroot you work in (used in the prompt below)
-if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
-fi
-
-
-# colored GCC warnings and errors
-export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-
-
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
-eval `dircolors ~/.dir_colors`
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
export GPG_TTY=($tty)
gpg-connect-agent updatestartuptty /bye > /dev/null
+
+export EDITOR="vim"
+export TMPDIR="/home/max/.local/tmp"
+eval `dircolors ~/.dir_colors`
--- /dev/null
+export PATH="${HOME}/.local/bin:${HOME}/.cargo/bin:${PATH}"
+
+# Make XDG_RUNTIME_DIR, required for some sessions
+if test -z "${XDG_RUNTIME_DIR}"; then
+ export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
+ if ! test -d "${XDG_RUNTIME_DIR}"; then
+ mkdir "${XDG_RUNTIME_DIR}"
+ chmod 0700 "${XDG_RUNTIME_DIR}"
+ fi
+fi
+
+export QT_QPA_PLATFORM=wayland-egl
+
+if [ -f ~/.config/sway/config.base ]; then
+ cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
+fi
+
+if [ -f ~/.Xresources ]; then
+ cat ~/.Xresources > ~/.Xdefaults
+ if [ -f ~/.Xresources.$HOSTNAME ]; then
+ cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
+ fi
+fi
+
+if [ -f ~/.config/termite/config.base ]; then
+ cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
+ ~/.config/termite/config
+fi
+
+
+if [ $HOSTNAME = "magnesium" ]; then
+ export XKB_DEFAULT_LAYOUT=us
+ export XKB_DEFAULT_VARIANT=colemak
+ export XKB_DEFAULT_OPTIONS=ctrl:nocaps
+fi
+
+if [ $HOSTNAME = "platinum" ]; then
+ export XKB_DEFAULT_LAYOUT=gb
+ export XKB_DEFAULT_VARIANT=colemak
+ export XKB_DEFAULT_OPTIONS=ctrl:nocaps
+fi
+
+# make less more friendly for non-text input files, see lesspipe(1)
+if [ -x /usr/bin/lesspipe ]; then
+ export LESSOPEN="|lesspipe %s"
+elif [ -x /usr/bin/lesspipe.sh ]; then
+ export LESSOPEN="|lesspipe %s"
+fi
+
+# colored GCC warnings and errors
+export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+
output HDMI-A-2 {
position 0 0
- background ~/Pictures/background1.png fit
+ background ~/Pictures/background_1080_1.png fit
}
output HDMI-A-3 {
position 1920 0
- background ~/Pictures/background2.png fit
+ background ~/Pictures/background_1080_2.png fit
}
font pango:Liberation Mono 8
+
+exec xhost +si:localuser:spotify
+exec no_glock +si:localuser:spotify
# modes
setw -g clock-mode-colour colour5
-setw -g mode-attr bold
-setw -g mode-fg colour7
-setw -g mode-bg colour8
+setw -g mode-style bold,fg=colour7,bg=colour8
# panes
-set -g pane-border-bg colour8
-set -g pane-border-fg colour0
-set -g pane-active-border-bg colour0
-set -g pane-active-border-fg colour7
+set -g pane-border-style bg=colour8,fg=colour0
+set -g pane-active-border-style bg=colour0,fg=colour7
# statusbar
set -g status-position bottom
set -g status-justify left
-set -g status-bg colour0
-set -g status-fg colour137
-set -g status-attr dim
+set -g status-style bg=colour0,fg=colour137,dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
-setw -g window-status-current-fg colour3
-setw -g window-status-current-bg colour8
-setw -g window-status-current-attr bold
+setw -g window-status-current-style fg=colour3,bg=colour8,bold
setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
-setw -g window-status-fg colour8
-setw -g window-status-bg colour7
-setw -g window-status-attr none
+setw -g window-status-style fg=colour8,bg=colour7,none
setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
-setw -g window-status-bell-attr bold
-setw -g window-status-bell-fg colour255
-setw -g window-status-bell-bg colour1
+setw -g window-status-bell-style fg=colour255,bg=colour1,bold
# messages
-set -g message-attr bold
-set -g message-fg colour3
-set -g message-bg colour0
+set -g message-style fg=colour3,bg=colour0,bold