From 7eb73b77b3136bc176cd96f1b9310c4a548212b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 14 Jan 2022 00:21:16 +0100 Subject: [PATCH] M-Return runs st in tmux, M-S-Return runs st without tmux, gray tmux status, vi-like select-pane --- lupan-wm/src/main.rs | 4 +++- tmux/.tmux.conf | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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