mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Getting emacs to lag less in wayland
This commit is contained in:
parent
ff55d91f0f
commit
260ff5fb64
|
@ -16,8 +16,8 @@
|
||||||
email = "librephoenix3@pm.me"; # email (used for certain configurations)
|
email = "librephoenix3@pm.me"; # email (used for certain configurations)
|
||||||
dotfilesDir = "~/.dotfiles"; # absolute path of the local repo
|
dotfilesDir = "~/.dotfiles"; # absolute path of the local repo
|
||||||
theme = "ayu-dark"; # selcted theme from my themes directory (./themes/)
|
theme = "ayu-dark"; # selcted theme from my themes directory (./themes/)
|
||||||
wm = "xmonad"; # Selected window manager or desktop environment; must select one in both ./user/wm/ and ./system/wm/
|
wm = "hyprland"; # Selected window manager or desktop environment; must select one in both ./user/wm/ and ./system/wm/
|
||||||
browser = "librewolf"; # Default browser; must select one from ./user/app/browser/
|
browser = "librewolf-wayland"; # Default browser; must select one from ./user/app/browser/
|
||||||
editor = "emacsclient"; # Default editor;
|
editor = "emacsclient"; # Default editor;
|
||||||
term = "alacritty -o font.size=20"; # Default terminal command;
|
term = "alacritty -o font.size=20"; # Default terminal command;
|
||||||
font = "Inconsolata"; # Selected font
|
font = "Inconsolata"; # Selected font
|
||||||
|
|
|
@ -51,6 +51,9 @@
|
||||||
(bind-key* "C-l" #'evil-window-right)
|
(bind-key* "C-l" #'evil-window-right)
|
||||||
(bind-key* "C-q" #'evil-window-delete)
|
(bind-key* "C-q" #'evil-window-delete)
|
||||||
(bind-key* "M-q" #'kill-current-buffer)
|
(bind-key* "M-q" #'kill-current-buffer)
|
||||||
|
(bind-key* "M-w" #'+workspace/close-window-or-workspace)
|
||||||
|
(bind-key* "M-n" #'next-buffer)
|
||||||
|
(bind-key* "M-p" #'previous-buffer)
|
||||||
(bind-key* "M-z" #'+vterm/toggle)
|
(bind-key* "M-z" #'+vterm/toggle)
|
||||||
(bind-key* (kbd "M-<return>") #'+vterm/here)
|
(bind-key* (kbd "M-<return>") #'+vterm/here)
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,10 @@ let
|
||||||
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
services.emacs.enable = true;
|
||||||
programs.doom-emacs = {
|
programs.doom-emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
emacsPackage = pkgs.emacs28-gtk2;
|
||||||
doomPrivateDir = ./.;
|
doomPrivateDir = ./.;
|
||||||
# This block from https://github.com/znewman01/dotfiles/blob/be9f3a24c517a4ff345f213bf1cf7633713c9278/emacs/default.nix#L12-L34
|
# This block from https://github.com/znewman01/dotfiles/blob/be9f3a24c517a4ff345f213bf1cf7633713c9278/emacs/default.nix#L12-L34
|
||||||
# Only init/packages so we only rebuild when those change.
|
# Only init/packages so we only rebuild when those change.
|
||||||
|
|
|
@ -112,6 +112,9 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
|
||||||
(bind-key* "C-l" #'evil-window-right)
|
(bind-key* "C-l" #'evil-window-right)
|
||||||
(bind-key* "C-q" #'evil-window-delete)
|
(bind-key* "C-q" #'evil-window-delete)
|
||||||
(bind-key* "M-q" #'kill-current-buffer)
|
(bind-key* "M-q" #'kill-current-buffer)
|
||||||
|
(bind-key* "M-w" #'+workspace/close-window-or-workspace)
|
||||||
|
(bind-key* "M-n" #'next-buffer)
|
||||||
|
(bind-key* "M-p" #'previous-buffer)
|
||||||
(bind-key* "M-z" #'+vterm/toggle)
|
(bind-key* "M-z" #'+vterm/toggle)
|
||||||
(bind-key* (kbd "M-<return>") #'+vterm/here)
|
(bind-key* (kbd "M-<return>") #'+vterm/here)
|
||||||
|
|
||||||
|
@ -1474,8 +1477,10 @@ let
|
||||||
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
services.emacs.enable = true;
|
||||||
programs.doom-emacs = {
|
programs.doom-emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
emacsPackage = pkgs.emacs28-gtk2;
|
||||||
doomPrivateDir = ./.;
|
doomPrivateDir = ./.;
|
||||||
# This block from https://github.com/znewman01/dotfiles/blob/be9f3a24c517a4ff345f213bf1cf7633713c9278/emacs/default.nix#L12-L34
|
# This block from https://github.com/znewman01/dotfiles/blob/be9f3a24c517a4ff345f213bf1cf7633713c9278/emacs/default.nix#L12-L34
|
||||||
# Only init/packages so we only rebuild when those change.
|
# Only init/packages so we only rebuild when those change.
|
||||||
|
|
|
@ -9,6 +9,19 @@
|
||||||
bind=SUPER,RETURN,exec,alacritty
|
bind=SUPER,RETURN,exec,alacritty
|
||||||
bind=SUPER,A,exec,emacs
|
bind=SUPER,A,exec,emacs
|
||||||
bind=SUPER,S,exec,librewolf
|
bind=SUPER,S,exec,librewolf
|
||||||
|
bind=SUPER,code:47,exec,wofi --show drun
|
||||||
|
xwayland {
|
||||||
|
force_zero_scaling = true
|
||||||
|
}
|
||||||
|
monitor=eDP-1,1920x1080,1000x1200,1
|
||||||
|
monitor=HDMI-A-1,1920x1200,1920x0,1
|
||||||
|
monitor=DP-1,1920x1200,0x0,1
|
||||||
|
input {
|
||||||
|
kb_layout = us
|
||||||
|
kb_options = caps:escape
|
||||||
|
repeat_delay = 350
|
||||||
|
repeat_rate = 50
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
xwayland = {
|
xwayland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue