nixbook: fix xdph, update tmux conf

This commit is contained in:
Tristan 2024-08-03 00:58:17 +01:00
parent 8358376a4a
commit bbadda1419
4 changed files with 14 additions and 2 deletions

View file

@ -22,7 +22,7 @@ in {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
configPackages = [pkgs.hyprland]; configPackages = [pkgs.hyprland];
extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-hyprland]; extraPortals = [pkgs.xdg-desktop-portal-gtk];
}; };
services.hypridle = { services.hypridle = {

View file

@ -87,11 +87,13 @@
lspBuf = { lspBuf = {
"K" = "hover"; "K" = "hover";
"<leader>ca" = "code_action"; "<leader>ca" = "code_action";
"<C-.>" = "code_action";
"<leader>cr" = "rename"; "<leader>cr" = "rename";
"gd" = "definition"; "gd" = "definition";
}; };
diagnostic = { diagnostic = {
"<leader>ch" = "open_float"; "<leader>ch" = "open_float";
"<C-e>" = "open_float";
}; };
}; };
}; };

View file

@ -100,8 +100,9 @@ in {
programs.tmux.enable = true; programs.tmux.enable = true;
programs.tmux.extraConfig = '' programs.tmux.extraConfig = ''
set-option -sa terminal-overrides ",xterm*:Tc"
set escape-time 0 set escape-time 0
set -g default-terminal screen
bind -n M-s split-window -v bind -n M-s split-window -v
bind -n M-v split-window -h bind -n M-v split-window -h
@ -115,6 +116,7 @@ in {
bind -n M-> resize-pane -R 10 bind -n M-> resize-pane -R 10
bind -n M-- resize-pane -D 10 bind -n M-- resize-pane -D 10
bind -n M-+ resize-pane -U 10 bind -n M-+ resize-pane -U 10
bind -n M-z resize-pane -Z
bind -n M-u copy-mode bind -n M-u copy-mode
bind -n M-p paste-buffer bind -n M-p paste-buffer
bind -n M-n next-window bind -n M-n next-window
@ -125,6 +127,12 @@ in {
set -g mouse on set -g mouse on
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
bind -n "M-`" break-pane -d
bind -n "M-`" break-pane -d bind -n "M-`" break-pane -d
''; '';

View file

@ -11,6 +11,8 @@
"electron-27.3.11" "electron-27.3.11"
]; ];
programs.hyprland.enable = true;
# use pipewire # use pipewire
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;