From e3d9fe083c9f46517f12734a0037036586508d52 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 12 May 2022 08:44:03 -0400 Subject: [PATCH] i3 tabbed terminal, mess with lock cmd --- modules/desktop/i3.nix | 14 ++++++++++---- modules/desktop/xorg.nix | 8 +++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/modules/desktop/i3.nix b/modules/desktop/i3.nix index c8f9fa8..3ad3c54 100644 --- a/modules/desktop/i3.nix +++ b/modules/desktop/i3.nix @@ -1,4 +1,11 @@ -{ config, pkgs, lib, ... }: { +{ config, pkgs, lib, ... }: + +let + + lockCmd = + ''exec i3lock --no-fork --color "${config.gui.colorscheme.base00}"''; + +in { config = lib.mkIf config.services.xserver.enable { @@ -108,15 +115,14 @@ "XF86AudioPrev" = "exec playerctl previous"; # Launchers - "${modifier}+Return" = "exec alacritty"; + "${modifier}+Return" = "exec alacritty; layout tabbed"; "${modifier}+space" = "exec --no-startup-id ${config.gui.launcherCommand}"; "${modifier}+Shift+c" = "reload"; "${modifier}+Shift+r" = "restart"; "${modifier}+Shift+q" = '' exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"''; - "${modifier}+Shift+x" = - ''exec i3lock --color "${config.gui.colorscheme.base00}"''; + "${modifier}+Shift+x" = lockCmd; "${modifier}+Shift+t" = "exec alacritty"; # Window options diff --git a/modules/desktop/xorg.nix b/modules/desktop/xorg.nix index 0e8e4d0..fc9a1ab 100644 --- a/modules/desktop/xorg.nix +++ b/modules/desktop/xorg.nix @@ -27,9 +27,11 @@ xclip # Clipboard ]; - home-manager.users.${config.user}.programs.fish.shellAliases = { - pbcopy = "xclip -selection clipboard -in"; - pbpaste = "xclip -selection clipboard -out"; + home-manager.users.${config.user} = { + programs.fish.shellAliases = { + pbcopy = "xclip -selection clipboard -in"; + pbpaste = "xclip -selection clipboard -out"; + }; }; };