Skip to content

Commit

Permalink
multiple changes on tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Jun 25, 2024
1 parent 9061822 commit 483073f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .bash/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ export EDITOR=vim
export COLORTERM=truecolor

# add customs scripts
export PATH=$HOME/.bash/scripts:$PATH
export PATH=$PATH:$HOME/.bash/scripts

# go
export PATH=$HOME/go/bin:$PATH
export PATH=$PATH:$HOME/go/bin

# cargo
export PATH=$HOME/.cargo/bin:$PATH
export PATH=$PATH:$HOME/.cargo/bin

# bun
export BUN_INSTALL="$HOME/.bun"
export PATH=$BUN_INSTALL/bin:$PATH
export PATH=$PATH:$BUN_INSTALL/bin

# fzf CTRL_T options
export FZF_COMPLETION_OPTS="--preview '[ -f {} ] && { if hash batcat &>/dev/null ; then batcat --color=always --style=changes {} ; else file {} ; fi } '"
Expand Down
23 changes: 14 additions & 9 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,20 @@ bind C-o send-prefix

bind-key e set status

# session management
bind-key W choose-session
bind-key R command-prompt -p "Rename session:" "rename-session '%%'"
bind S command-prompt -p "New session name: " "new-session -s '%%'"
bind K choose-session "kill-session -t '%%'"
bind L choose-window "link-window -s '%%'"

# set window split
bind-key v split-window -h -c '#{pane_current_path}'
bind-key b split-window -v -c '#{pane_current_path}'
bind-key s split-window -v -c '#{pane_current_path}'
bind-key c new-window -c '#{pane_current_path}'

# join / split windows
bind-key a choose-window "join-pane -t '%%'"
bind-key a choose-window "join-pane -t '%%'"
bind-key A "break-pane"

bind-key o copy-mode
Expand All @@ -72,14 +79,9 @@ bind-key T command-prompt -p "Move Window To:" "move-window -t '%%'"
bind-key C command-prompt -p "Name of new window:" "new-window -n '%%'"
bind-key r command-prompt -p "Rename window:" "rename-window '%%'"
bind-key R command-prompt -p "Rename session:" "rename-session '%%'"
bind $ source-file ~/.tmux.conf \
bind S command-prompt -p "New session name: " "new-session -s '%%'"
bind K command-prompt -p "Kill session: " "kill-session -t '%%'"
bind L command-prompt -p "Link To (session:window):" "link-window -s '%%'"
bind i command-prompt -p "Popup: " "display-popup -EE -d '#{pane_current_path}' -w80% -h80% 'bash -ic \"%%\"'"
# WINDOW MONITORING
Expand Down Expand Up @@ -147,11 +149,14 @@ set-option -g status on
set-option -g status-interval 0
set-option -g status-justify "left"
set-option -g status-left-length 90
set-option -g status-right-length 90
set-option -g status-right-length 140
#     ff
set-option -g status-left "#{?#{==:#{SSH_CLIENT},},,#[fg=cyan bold]#H  #[bg=default]}#[fg=colour3,bold]#{?#S,#S,}"
# set-option -g status-right "#{prefix_highlight} #[fg=colour2]#{battery_icon_status}#{battery_color_charge_fg}#[bg=default]#{battery_percentage} #[fg=colour7]#{uptime} #{date} #[fg=colour14,bold]#{time}"
set-option -g status-right "#{prefix_highlight} #[fg=colour2]#{battery_icon_status}#{battery_color_charge_fg}#[bg=default]#{battery_percentage} #[fg=colour7]#{uptime} #[fg=colour0] #{sysstat_loadavg} #{sysstat_mem}"
set-option -g status-right "#{prefix_highlight}\
#[fg=colour7]{ #(tmux ls -F '#[fg=##{?session_alerts,red bold,##{?session_attached,yellow bold,colour7 nobold}}]##{?session_alerts,##{session_alerts} ,}##S:##{session_windows}'|paste -sd' ') #[fg=colour7,nobold]}\
#[fg=colour2]#{battery_icon_status}#{battery_color_charge_fg}#[bg=default]#{battery_percentage}\
#[fg=colour7]#{uptime} #[fg=colour0] CPU:#{sysstat_loadavg} #{sysstat_mem}"
############################
# TERMINAL EMULATOR TITLES #
Expand Down
4 changes: 2 additions & 2 deletions keyboard/crkbd_rev1_layout_split_3x6_3_mine.hex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
:1001800040003F0001002731260025002400230005
:10019000E5000100010001004500440000000000EE
:1001A0000000E20001001E7C29000000360235003C
:1001B00037020000E2001E02230267002102200233
:1001B00037020000E2001E0223022E00210220026C
:1001C000E100000024021F022202000000000000E3
:1001D0000000E30001002C002A000000300235027C
:1001E0002F02570000003102270256002602250286
Expand All @@ -34,7 +34,7 @@
:10021000DA00DC00E200E0004A004E004D00390048
:10022000E10000001B13061319130000000000007A
:100230000000E30001002C004C00AB00AC00AE005D
:100240004E0046000000E4004F00520051005000F4
:100240004B0046000000E4004F00520051005000F7
:10025000E100BD00BE00A900AA00A8000000000047
:100260000000E20001001E7C00DA0281FFD9F1DB10
:1002700020A4A62EAF00A0C0D30000A1C8D30000C8
Expand Down
6 changes: 3 additions & 3 deletions keyboard/crkbd_rev1_layout_split_3x6_3_mine.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "crkbd/rev1",
"keymap": "crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_layout_split_3x6_3_mine",
"keymap": "crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_crkbd_rev1_layout_split_3x6_3_mine",
"layout": "LAYOUT_split_3x6_3",
"layers": [
[
Expand Down Expand Up @@ -110,7 +110,7 @@
"KC_LALT",
"KC_EXLM",
"KC_CIRC",
"KC_PEQL",
"KC_EQL",
"KC_DLR",
"KC_HASH",
"KC_ASTR",
Expand Down Expand Up @@ -146,7 +146,7 @@
"KC_WH_D",
"KC_WH_R",
"KC_PSCR",
"KC_PGDN",
"KC_PGUP",
"KC_MPLY",
"KC_MPRV",
"KC_MNXT",
Expand Down

0 comments on commit 483073f

Please sign in to comment.