desktop: switch to alacritty as a terminal
This commit is contained in:
parent
f480ac74a3
commit
9bfeb193df
3 changed files with 22 additions and 8 deletions
|
@ -360,6 +360,8 @@ in {
|
|||
gnome3.dconf
|
||||
picocom
|
||||
glib.dev # contains gdbus tool
|
||||
alacritty
|
||||
roxterm
|
||||
|
||||
# Screen recording
|
||||
# gtk-recordmydesktop # can't select the window
|
||||
|
|
|
@ -31,8 +31,11 @@ let
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
'';
|
||||
# FIXME: alacritty's reflow on grow is currently broken (on my system)
|
||||
terminalCommand = "${pkgs.alacritty}/bin/alacritty";
|
||||
# terminalCommand = "${pkgs.roxterm}/bin/roxterm";
|
||||
|
||||
|
||||
qtileConfig = pkgs.writeScript "qtile_config.py" ''
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click
|
||||
|
@ -97,9 +100,9 @@ key_control = "control"
|
|||
|
||||
keys = [
|
||||
# https://github.com/qtile/qtile/blob/develop/libqtile/xkeysyms.py
|
||||
Key([key_super], "Return", lazy.spawn("${pkgs.roxterm}/bin/roxterm")),
|
||||
Key([key_super], "backslash", lazy.spawn("${pkgs.roxterm}/bin/roxterm")),
|
||||
Key([key_super], "apostrophe", lazy.spawn("${pkgs.roxterm}/bin/roxterm")),
|
||||
Key([key_super], "Return", lazy.spawn("${terminalCommand}")),
|
||||
Key([key_super], "backslash", lazy.spawn("${terminalCommand}")),
|
||||
Key([key_super], "apostrophe", lazy.spawn("${terminalCommand}")),
|
||||
Key([key_super], "r", lazy.spawncmd()),
|
||||
Key([key_super], "w", lazy.window.kill()),
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
self: super:
|
||||
|
||||
let
|
||||
nixpkgs-master = import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs-channels/archive/de5fd9e6110489722e8667664dce9fdc17331866.tar.gz";
|
||||
sha256 = "0z1j2pmvn15m2ir2i9l2prr81cq7f1x8xs4cv2s7q4fslz586ghn";
|
||||
}) {};
|
||||
nixpkgs-master = import <nixpkgs-master> {};
|
||||
|
||||
# one application requires php5
|
||||
nixpkgsWithPhp5 = super.fetchFromGitHub {
|
||||
owner = "nixos";
|
||||
|
@ -14,6 +12,7 @@ let
|
|||
};
|
||||
|
||||
in {
|
||||
alacritty = nixpkgs-master.alacritty;
|
||||
podman = nixpkgs-master.podman;
|
||||
conmon = nixpkgs-master.conmon;
|
||||
|
||||
|
@ -23,6 +22,16 @@ in {
|
|||
slirp4netns = super.callPackage ./pkgs/slirp4netns.nix {};
|
||||
staruml = super.callPackage ./pkgs/staruml.nix { inherit (super.gnome2) GConf; libgcrypt = super.libgcrypt_1_5; };
|
||||
|
||||
roxterm = super.stdenv.mkDerivation {
|
||||
name = "roxterm-custom";
|
||||
buildInputs = [ super.makeWrapper ];
|
||||
phases = "installPhase";
|
||||
installPhase = ''
|
||||
makeWrapper ${super.roxterm}/bin/roxterm $out/bin/roxterm \
|
||||
--add-flags "--separate"
|
||||
'';
|
||||
};
|
||||
|
||||
busyboxStatic = super.busybox.override {
|
||||
enableStatic = true;
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue