Updated emacs

This commit is contained in:
Aleksandr Lebedev 2025-02-21 13:19:11 +01:00
parent 05959315a0
commit cd251be965
3 changed files with 8 additions and 8 deletions

6
flake.lock generated
View file

@ -113,11 +113,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1739234958, "lastModified": 1740140314,
"narHash": "sha256-ZsjygoxmLW9q9vcq0ZI75dzWJveT8TcRyKo1SXRJD8g=", "narHash": "sha256-wMEPJbwzpKJzqxAuthUGqvUDS5g8CFBQLj8rZUjAN38=",
"owner": "kylekrein", "owner": "kylekrein",
"repo": "emacs-config", "repo": "emacs-config",
"rev": "24a73ae1456181d8fd76c19451ddaf1f0c60e29a", "rev": "b5bce78ba428369f13e67da5731b659a1472baf5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -252,7 +252,7 @@
image = "${./modules/hyprland/wallpaper.jpg}"; image = "${./modules/hyprland/wallpaper.jpg}";
autoEnable = true; autoEnable = true;
opacity = { opacity = {
desktop = 0.5; desktop = 0.0;#0.5;
}; };
targets = { targets = {
gtk.enable = true; gtk.enable = true;

View file

@ -44,13 +44,10 @@ in {
"${pkgs.networkmanagerapplet}/bin/nm-applet &" "${pkgs.networkmanagerapplet}/bin/nm-applet &"
"${pkgs.swaynotificationcenter}/bin/swaync &" "${pkgs.swaynotificationcenter}/bin/swaync &"
"${pkgs.solaar}/bin/solaar -w hide &" "${pkgs.solaar}/bin/solaar -w hide &"
#"${pkgs.hypridle}/bin/hypridle &"
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &" # https://nixos.wiki/wiki/Polkit "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &" # https://nixos.wiki/wiki/Polkit
"${pkgs.clipse}/bin/clipse -listen &" "${pkgs.clipse}/bin/clipse -listen &"
"${pkgs.swww}/bin/swww-daemon &" "${pkgs.swww}/bin/swww-daemon &"
"${pkgs.swww}/bin/swww img ${wallpaper-image} &" "${pkgs.swww}/bin/swww img ${wallpaper-image} &"
#"emacs --daemon &"
#"${pkgs.kando}/bin/kando"
]; ];
exec = [ exec = [
"${pkgs.swww}/bin/swww img ${wallpaper-image} &" "${pkgs.swww}/bin/swww img ${wallpaper-image} &"
@ -58,7 +55,7 @@ in {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$mainMod" = "$mod"; "$mainMod" = "$mod";
"$terminal" = "${pkgs.kitty}/bin/kitty"; "$terminal" = "${pkgs.kitty}/bin/kitty";
"$emacs" = "emacsclient -c -a 'emacs'"; "$emacs" = "emacsclient -c";
"$fileManager" = "$emacs --eval '(dired \"/home/${username}\")'"; # "$terminal ${pkgs.yazi}/bin/yazi"; "$fileManager" = "$emacs --eval '(dired \"/home/${username}\")'"; # "$terminal ${pkgs.yazi}/bin/yazi";
"$fileManager2" = "${pkgs.kdePackages.dolphin}/bin/dolphin"; "$fileManager2" = "${pkgs.kdePackages.dolphin}/bin/dolphin";
"$browser" = "${pkgs.firefox}/bin/firefox"; "$browser" = "${pkgs.firefox}/bin/firefox";
@ -132,6 +129,9 @@ in {
"$mod, mouse:272, movewindow" "$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"
]; ];
misc = {
vfr = true; #lowers the amount of frames when nothing happens
};
input = { input = {
kb_layout = "us, ru"; kb_layout = "us, ru";
kb_options = "grp:lctrl_toggle, ctrl:nocaps" + (if hwconfig.hostname == "kylekrein-mac" then ", altwin:swap_alt_win" else ""); # "ctrl:nocaps, grp:toggle" kb_options = "grp:lctrl_toggle, ctrl:nocaps" + (if hwconfig.hostname == "kylekrein-mac" then ", altwin:swap_alt_win" else ""); # "ctrl:nocaps, grp:toggle"