diff --git a/lupan-wm/src/main.rs b/lupan-wm/src/main.rs index 2fbd104..1058aef 100644 --- a/lupan-wm/src/main.rs +++ b/lupan-wm/src/main.rs @@ -20,8 +20,9 @@ use std::convert::{TryFrom, TryInto}; pub type Conn = XcbConnection; +const TERMINAL: &str = "st tmux"; +const TERMINAL2: &str = "st"; const EDITOR: &str = "emacsclient -c -n"; -const TERMINAL: &str = "st"; const SUSPEND: &str = "systemctl suspend"; const SET_THEME: &str = "lupan-set-theme"; @@ -74,6 +75,7 @@ fn main() -> Result<()> { "M-space" => Box::new(move |_: &mut WindowManager<_>| spawn!( "rofi", "-theme", "Pop-Dark", "-theme-str", &rofi_theme_str, "-kb-row-select", "Tab", "-kb-row-tab", "Alt-Tab", "-show", "run")); "M-Return" => run_external!(TERMINAL); + "M-S-Return" => run_external!(TERMINAL2); "M-S-s" => run_external!(SUSPEND); // Switch theme diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7934e2c..9a1e69a 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,8 +1,12 @@ -set -g status-bg colour28 -set -g status-fg colour7 +set -g status-bg colour246 +set -g status-fg colour235 set -g prefix C-t bind-key C-t send-prefix +bind-key C-j select-pane -D +bind-key C-k select-pane -U +bind-key C-h select-pane -L +bind-key C-l select-pane -R set -g default-terminal "screen-256color" set -g set-titles on