tmux: Add configs Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Tue, 24 Dec 2019 14:55:56 +0530
8 files changed,
90 insertions(+),
14 deletions(-)
M
bin/bat.sh
→
bin/bat.sh
@@ -6,9 +6,13 @@
cap=$(cat /sys/class/power_supply/BAT0/capacity) status=$(cat /sys/class/power_supply/BAT0/status) -if [[ "$status" = "Charging" ]] -then - echo -ne "%{F$light}+bat %{F$fg}$cap%" +if [[ "$1" == "-n" ]]; then + echo "$cap" else - echo -ne "%{F$light}bat %{F$fg}$cap%" + if [[ "$status" = "Charging" ]] + then + echo -ne "%{F$light}+bat %{F$fg}$cap%" + else + echo -ne "%{F$light}bat %{F$fg}$cap%" + fi fi
M
bin/time.sh
→
bin/time.sh
@@ -6,7 +6,7 @@
date="%{F$light}time %{F$fg}$(date +%I:%M)" time="%{F$light}date %{F$fg}$(date +"%a, %d %b" | tr A-Z a-z)" -while getopts dt options +while getopts dtn options do case $options in d)@@ -14,5 +14,8 @@ echo -ne "$date"
;; t) echo -ne "$time" + ;; + n) + echo -ne "$(date +"%a, %d %b" | tr A-Z a-z)" esac done
M
bin/vol.sh
→
bin/vol.sh
@@ -3,7 +3,7 @@
fg="$(xres color15)" light="$(xres color8)" -while getopts idq options +while getopts idqn options do case $options in i)@@ -14,8 +14,10 @@ d)
pamixer -d 2 ;; q) - cur_vol=$(pamixer --get-volume-human) + cur_vol="$(pamixer --get-volume-human)" echo -ne "%{F$light}vol %{F$fg}$cur_vol" ;; + n) + echo "$(pamixer --get-volume-human)" esac done
M
config/sxhkd/sxhkdrc
→
config/sxhkd/sxhkdrc
@@ -9,7 +9,7 @@ super + Return
alacritty super + d - rofi -show run + dmenu_run super + ctrl + l ~/bin/lock.sh
A
tmux/.tmux.conf
@@ -0,0 +1,60 @@
+set -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix + +bind r source-file ~/.tmux.conf + +set-option -g default-terminal xterm-256color-italic +set escape-time 20 + +set -g mouse on + +set -g base-index 1 +setw -g pane-base-index 1 + +set-option -g status-position top + +# pane binds +bind -n M-j select-pane -D +bind -n M-k select-pane -U + +# window binds +bind -n M-h previous-window +bind -n M-l next-window +bind-key v split-window -h +bind-key s choose-session +bind-key ) swap-window -t +1 +bind-key ( swap-window -t -1 +bind-key [ copy-mode + +# statusline hide / unhide +bind -n M-down set -q status off +bind -n M-up set -q status on +bind P paste-buffer + +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection +bind-key -T copy-mode-vi r send-keys -X rectangle-toggle + +bind E command-prompt -p "cmd:" \ + "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \ + | xargs -I PANE tmux send-keys -t PANE '%1' Enter\"" + +set-window-option -g allow-rename off + +set -g pane-border-style fg=colour11 +set -g pane-active-border-style fg=colour8 + +set -g status-justify right +set -g status-right "" +set -g status-style "bg=colour0" +set -ag status-style "fg=colour7" + +set -g window-status-current-format "#[fg=colour15] #W" +set -g window-status-format "#[fg=colour8] #W" + +set -g status-left-length 100 +set -g status-left "#[fg=colour8]time #[fg=colour15]#(date +%I:%M) " +set -ag status-left "#[fg=colour8]date #[fg=colour15]#(~/bin/time.sh -n) " +set -ag status-left "#[fg=colour8]vol #[fg=colour15]#(~/bin/vol.sh -n) " +set -ag status-left "#[fg=colour8] bat #[fg=colour15]#(~/bin/bat.sh -n)% "
A
tmux/tmux-256color.terminfo
@@ -0,0 +1,4 @@
+tmux-256color|tmux with 256 colors, + ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@, + khome=\E[1~, kend=\E[4~, + use=xterm-256color, use=screen-256color,
A
tmux/xterm-256color-italic.terminfo
@@ -0,0 +1,3 @@
+xterm-256color-italic|xterm with 256 colors and italic, + sitm=\E[3m, ritm=\E[23m, + use=xterm-256color,
M
weechat/weechat.conf
→
weechat/weechat.conf
@@ -382,12 +382,12 @@ [layout]
default.buffer = "core;weechat;1" default.buffer = "irc;server.rizon;1" default.buffer = "irc;rizon.#bullshit;2" -default.buffer = "irc;rizon.#chat;3" -default.buffer = "irc;rizon.#code;4" -default.buffer = "irc;rizon.#crimson;5" -default.buffer = "irc;rizon.#homescreen;6" -default.buffer = "irc;rizon.#linux;7" -default.buffer = "irc;rizon.#rice;8" +default.buffer = "irc;rizon.#code;3" +default.buffer = "irc;rizon.#crimson;4" +default.buffer = "irc;rizon.#homescreen;5" +default.buffer = "irc;rizon.#linux;6" +default.buffer = "irc;rizon.#rice;7" +default.buffer = "irc;rizon.#xmas;8" default.window = "1;0;0;0;irc;rizon.Carp" default.current = on