M-Return runs st in tmux, M-S-Return runs st without tmux, gray tmux status, vi-like select-pane
This commit is contained in:
parent
acd4f75d63
commit
7eb73b77b3
@ -20,8 +20,9 @@ use std::convert::{TryFrom, TryInto};
|
|||||||
|
|
||||||
pub type Conn = XcbConnection;
|
pub type Conn = XcbConnection;
|
||||||
|
|
||||||
|
const TERMINAL: &str = "st tmux";
|
||||||
|
const TERMINAL2: &str = "st";
|
||||||
const EDITOR: &str = "emacsclient -c -n";
|
const EDITOR: &str = "emacsclient -c -n";
|
||||||
const TERMINAL: &str = "st";
|
|
||||||
const SUSPEND: &str = "systemctl suspend";
|
const SUSPEND: &str = "systemctl suspend";
|
||||||
const SET_THEME: &str = "lupan-set-theme";
|
const SET_THEME: &str = "lupan-set-theme";
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ fn main() -> Result<()> {
|
|||||||
"M-space" => Box::new(move |_: &mut WindowManager<_>| spawn!(
|
"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"));
|
"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-Return" => run_external!(TERMINAL);
|
||||||
|
"M-S-Return" => run_external!(TERMINAL2);
|
||||||
"M-S-s" => run_external!(SUSPEND);
|
"M-S-s" => run_external!(SUSPEND);
|
||||||
|
|
||||||
// Switch theme
|
// Switch theme
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
set -g status-bg colour28
|
set -g status-bg colour246
|
||||||
set -g status-fg colour7
|
set -g status-fg colour235
|
||||||
|
|
||||||
set -g prefix C-t
|
set -g prefix C-t
|
||||||
bind-key C-t send-prefix
|
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 default-terminal "screen-256color"
|
||||||
|
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user