From 286a5d4e43634bbaf059eeab077bf435b5c2083e Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 16 Jan 2023 17:03:29 +0100 Subject: [PATCH] Tell xmonad my browser is firefox --- home/adrielus/features/cli/tmux/tmux.conf | 11 ++++++----- home/adrielus/features/desktop/common/alacritty.nix | 2 +- hosts/nixos/common/optional/xmonad/Main.hs | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/home/adrielus/features/cli/tmux/tmux.conf b/home/adrielus/features/cli/tmux/tmux.conf index faa5c72..be6a487 100644 --- a/home/adrielus/features/cli/tmux/tmux.conf +++ b/home/adrielus/features/cli/tmux/tmux.conf @@ -1,4 +1,4 @@ -# {{{ Remap prefix to Control + a +# {{{ Remap prefix to C-a set -g prefix C-a unbind C-b bind C-a send-prefix @@ -9,14 +9,15 @@ set -g status off # {{{ Don't rename windows automatically set-option -g allow-rename off # }}} -# {{{ Fix slow esc +# {{{ Fix slow esc key set -sg escape-time 10 # }}} # {{{ Visual stuff -set -g default-terminal "screen-256color" -set -ga terminal-overrides ",xterm-256color:Tc" +# See https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6 +set -g default-terminal "tmux-256color" +set -ag terminal-overrides ",$TERM:RGB" # }}} -# {{{ Split panes with \ and - +# {{{ Split panes with - and \ bind \\ split-window -h bind - split-window -v unbind '"' diff --git a/home/adrielus/features/desktop/common/alacritty.nix b/home/adrielus/features/desktop/common/alacritty.nix index 45b0f85..782b165 100644 --- a/home/adrielus/features/desktop/common/alacritty.nix +++ b/home/adrielus/features/desktop/common/alacritty.nix @@ -21,7 +21,7 @@ in fonts.normal.family = config.fontProfiles.monospace.family; - env = { TERM = "xterm-256color"; }; + env = { TERM = "tmux-256color"; }; working_directory = "${config.home.homeDirectory}/Projects/"; }; }; diff --git a/hosts/nixos/common/optional/xmonad/Main.hs b/hosts/nixos/common/optional/xmonad/Main.hs index 8e07d2d..19f35cb 100644 --- a/hosts/nixos/common/optional/xmonad/Main.hs +++ b/hosts/nixos/common/optional/xmonad/Main.hs @@ -37,7 +37,7 @@ main = ["1:dev", "2:browser", "3:chat", "4:terminal", "5:reading", "6:gaming"] myTerminal = "alacritty" - myBrowser = "google-chrome-stable" + myBrowser = "firefox" keymap = [ ("M-p", spawn "rofi -show drun"),