Skip to content

Commit

Permalink
changed tmux colors, updated dwm colors
Browse files Browse the repository at this point in the history
  • Loading branch information
luthes committed Aug 9, 2016
1 parent 9f00811 commit 109f7fd
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 0 deletions.
46 changes: 46 additions & 0 deletions dwm_startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
# Taken from:
# https://raw.github.com/kaihendry/Kai-s--HOME/master/.xinitrc
#
# for terminus font in Archlinux :(
#
# Todo
# Add battery status :
# upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | something


xset +fp /usr/share/fonts/local
xset fp rehash

xset -b # disable bell

while true
do
VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
LOCALTIME=$(date +%Z\:%Y-%m-%dT%H:%M)
OTHERTIME=$(TZ=America/Argentina/Buenos_Aires date +%Z\:%H:%M)
IP2=$(curl icanhazip.com)
IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1) # can get confused if you use vmware
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
BAT2="$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage)"

if acpi -a | grep off-line > /dev/null
then
BAT="Bat. $(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')"
xsetroot -name "WAN:$IP2 LAN:$IP $BAT $VOL $TEMP $LOCALTIME $OTHERTIME"
else
xsetroot -name "WAN:$IP2 LAN:$IP ${BAT2:25:4} $VOL $TEMP $LOCALTIME $OTHERTIME"
fi
sleep 20s
done &

while true
do
feh --bg-fill http://www.lutherlabs.com/files/hex-000097.png
done &

xautolock -time 2 -locker slock &
gnome-terminal &
chromium-browser &

exec dwm
177 changes: 177 additions & 0 deletions tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
#Example .tmux.conf
#
# By Nicholas Marriott. Public domain.
#

#So. Much. Rice.
## Status Bar
#config reload
bind r source-file ~/.tmux.conf

#Left info
set -g status-left ''

# No bells at all
set -g bell-action none

# Lock after 15 minutes
set -g lock-after-time 1800

# Keep windows around after they exit
set -g remain-on-exit on

# Turn on xterm-keys so that additional function keys get escape sequences
set -g xterm-keys on

# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix

# Turn the mouse on, but without copy mode dragging
set -g mouse on

# Some extra key bindings to select higher numbered windows
bind F1 selectw -t:10
bind F2 selectw -t:11
bind F3 selectw -t:12
bind F4 selectw -t:13
bind F5 selectw -t:14
bind F6 selectw -t:15
bind F7 selectw -t:16
bind F8 selectw -t:17
bind F9 selectw -t:18
bind F10 selectw -t:19
bind F11 selectw -t:20
bind F12 selectw -t:21

# Keys to toggle monitoring activity in a window, and synchronize-panes
bind m set monitor-activity
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'

# Keys to hide and show a window name from the status line
bind '-' set window-status-format '#I'\; set window-status-current-format '#I'
bind '+' set window-status-format '#I:#W#F'\; set window-status-current-format '#I:#W#F'

# Create a single default session
#new -d -s0 -nirssi 'exec irssi'

#So. Much. Rice.
## Status Bar
#config reload

######################
### DESIGN CHANGES ###
######################

# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred

## Status bar design
# status line
set -g status-utf8 on
set -g status-justify left
set -g status-bg default
set -g status-fg colour12
set -g status-interval 2

# messaging
set -g message-fg black
set -g message-bg yellow
set -g message-command-fg blue
set -g message-command-bg black

#window mode
setw -g mode-bg colour6
setw -g mode-fg colour0

# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
setw -g window-status-current-bg colour0
setw -g window-status-current-fg colour11
setw -g window-status-current-attr dim
setw -g window-status-bg green
setw -g window-status-fg black
setw -g window-status-attr reverse

# Info on left (I don't have a session display for now)
set -g status-left ''

# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none

set -g default-terminal "screen-256color"

# The modes {
setw -g clock-mode-colour colour135
setw -g mode-attr bold
setw -g mode-fg colour196
setw -g mode-bg colour238

# }
# The panes {

set -g pane-border-bg colour235
set -g pane-border-fg colour238
set -g pane-active-border-bg colour236
set -g pane-active-border-fg colour51

# }
# The statusbar {

set -g status-position bottom
set -g status-bg colour234
set -g status-fg colour137
set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20

setw -g window-status-current-fg colour81
setw -g window-status-current-bg colour238
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '

setw -g window-status-fg colour138
setw -g window-status-bg colour235
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg colour1

# }
# The messages {

set -g message-attr bold
set -g message-fg colour232
set -g message-bg colour166

# }

















0 comments on commit 109f7fd

Please sign in to comment.