Compare commits
No commits in common. "86aa156fc06cd04eb6574b8ae6644f64c41bfb37" and "9965c3846ff777cf385b1671cef9aab6597d6ac3" have entirely different histories.
86aa156fc0
...
9965c3846f
|
@ -1,10 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.home.tmux;
|
cfg = config.my.home.tmux;
|
||||||
hasGUI = lib.any lib.id [
|
hasGUI = config.my.home.x.enable || (config.my.home.wm != null);
|
||||||
config.my.home.x.enable
|
|
||||||
(config.my.home.wm.windowManager != null)
|
|
||||||
];
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.home.tmux = with lib.my; {
|
options.my.home.tmux = with lib.my; {
|
||||||
|
@ -27,7 +24,7 @@ in
|
||||||
pain-control
|
pain-control
|
||||||
# Better session management
|
# Better session management
|
||||||
sessionist
|
sessionist
|
||||||
{
|
(lib.optionalAttrs hasGUI {
|
||||||
# X clipboard integration
|
# X clipboard integration
|
||||||
plugin = yank;
|
plugin = yank;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@ -36,7 +33,7 @@ in
|
||||||
# Stay in copy mode after yanking
|
# Stay in copy mode after yanking
|
||||||
set -g @yank_action 'copy-pipe'
|
set -g @yank_action 'copy-pipe'
|
||||||
'';
|
'';
|
||||||
}
|
})
|
||||||
{
|
{
|
||||||
# Show when prefix has been pressed
|
# Show when prefix has been pressed
|
||||||
plugin = prefix-highlight;
|
plugin = prefix-highlight;
|
||||||
|
|
Loading…
Reference in a new issue