dotfiles-x11de76520
add tmux.conf
+52 −0
2 files changed
- A .config/tmux/tmux.conf +45 −0
- M .config/x11/xinitrc +7 −0
| @@ -0,0 +1,45 @@ | |||
| 1 | + | set -ga terminal-overrides ",st-256color*:Tc" | |
| 2 | + | set-option -g default-terminal "screen-256color" | |
| 3 | + | set -s escape-time 0 | |
| 4 | + | ||
| 5 | + | set -g prefix2 C-s | |
| 6 | + | unbind C-b | |
| 7 | + | set -g prefix2 C-Space | |
| 8 | + | ||
| 9 | + | set -g status-style 'bg=#16161E fg=#ffffff' | |
| 10 | + | set-option -g history-limit 5000 | |
| 11 | + | ||
| 12 | + | # Numbering Windows and panes | |
| 13 | + | set -g base-index 1 | |
| 14 | + | setw -g pane-base-index 1 | |
| 15 | + | set -g renumber-windows on | |
| 16 | + | ||
| 17 | + | bind r source-file ~/.config/tmux/tmux.conf; display "Reloaded!!" | |
| 18 | + | ||
| 19 | + | # vim keys | |
| 20 | + | # setw -g mode-keys vi | |
| 21 | + | set-window-option -g mode-keys vi | |
| 22 | + | bind -T copy-mode-vi v send-keys -X begin-selection | |
| 23 | + | bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
| 24 | + | ||
| 25 | + | # # Remapping movement keys | |
| 26 | + | bind h select-pane -L # Move focus to pane on the left | |
| 27 | + | bind j select-pane -D # Move focus to pane above the current one | |
| 28 | + | bind k select-pane -U # Move focus to pane below the current one | |
| 29 | + | bind l select-pane -R # Move focus to pane on the right | |
| 30 | + | bind Space last-window # Toggle between previously focused window | |
| 31 | + | ||
| 32 | + | bind-key -r i run-shell "tmux neww tms" | |
| 33 | + | ||
| 34 | + | # Resizing panes (notes that is using the uppercase here and resize by 5 chars) | |
| 35 | + | bind -r C-h resize-pane -L 5 | |
| 36 | + | bind -r C-j resize-pane -D 5 | |
| 37 | + | bind -r C-k resize-pane -U 5 | |
| 38 | + | bind -r C-l resize-pane -R 5 | |
| 39 | + | ||
| 40 | + | # TPM | |
| 41 | + | ## Setup: git clone https://github.com/tmux-plugins/tpm plugins/tpm | |
| 42 | + | set -g @plugin 'tmux-plugins/tpm' | |
| 43 | + | # set -g @plugin 'dracula/tmux' | |
| 44 | + | set -g @plugin 'fabioluciano/tmux-tokyo-night' | |
| 45 | + | run '~/.config/tmux/plugins/tpm/tpm' | |
| @@ -1,6 +1,13 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | ||
| 3 | 3 | #setwall & | |
| 4 | + | ||
| 5 | + | if [ $(envycontrol -q) = "nvidia" ]; then | |
| 6 | + | xrandr --setprovideroutputsource modesetting NVIDIA-0 | |
| 7 | + | xrandr --auto | |
| 8 | + | xrandr --dpi 96 | |
| 9 | + | fi | |
| 10 | + | ||
| 4 | 11 | xwallpaper --zoom ~/.local/share/wallpaper2.jpg & | |
| 5 | 12 | xcompmgr & | |
| 6 | 13 | xset r rate 300 50 | |