From 0093af68d69f07941bd90065c6ef976501317bec Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Sat, 18 Mar 2023 03:46:35 +0000 Subject: [PATCH] [MAJOR] Added Kmonad + Tmux keybinds and tpm to add catppuccin theme --- .config/kmonad/config.kbd | 27 +++++++++++++++++++++------ .config/tmux/tmux.conf | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .config/tmux/tmux.conf diff --git a/.config/kmonad/config.kbd b/.config/kmonad/config.kbd index 8e0e64a..9a4ece8 100644 --- a/.config/kmonad/config.kbd +++ b/.config/kmonad/config.kbd @@ -16,22 +16,37 @@ lctl lmet lalt spc ralt rmet cmp rctl left down rght ) -#| SET KEY TO LAYOUT |# - -(defalias esc (tap-hold 200 esc (layer-toggle numrow))) - #| LAYOUTS |# +(defalias esc (tap-hold 200 esc (layer-toggle numrow-layer))) +(defalias tmux (tap-hold 200 lalt (layer-toggle tmux-layer))) (deflayer base esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup tab q w e r t y u i o p [ ] \ del end pgdn @esc a s d f g h j k l ; ' ret lsft z x c v b n m , . / rsft up - lctl lmet lalt spc ralt rmet cmp rctl left down rght + lctl lmet @tmux spc ralt rmet cmp rctl left down rght ) -(deflayer numrow +#| Create an alias for the key combination control b n for the @nt |# +(defalias new-window #((around ctl b) c)) +(defalias close-window #((around ctl b) x)) +(defalias next-window #((around ctl b) n)) +(defalias prev-window #((around lctl b) p)) +(defalias rename-window #((around lctl b) ,)) +(defalias next-session #((around ctl b) \))) +(defalias prev-session #((around lctl b) \()) +(deflayer tmux-layer + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ @rename-window _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ @prev-window @prev-session @next-session @next-window _ _ _ + _ _ _ @close-window _ _ @new-window _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ +) + +(deflayer numrow-layer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..42a6359 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,19 @@ +set -g default-terminal "tmux-256color" +set -ag terminal-overrides ",$TERM:RGB" +set -sg escape-time 0 + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'github_username/plugin_name#branch' +# set -g @plugin 'git@github.com:user/plugin' +# set -g @plugin 'git@bitbucket.com:user/plugin' +#Theme +set -g @plugin 'catppuccin/tmux' +set -g @catppuccin_flavour 'frappe' +set -g @catppuccin_window_tabs_enabled on + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm'