i3 tabbed terminal, mess with lock cmd

This commit is contained in:
Noah Masur 2022-05-12 08:44:03 -04:00
parent 835cebebfb
commit e3d9fe083c
2 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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";
};
};
};