Clipboard history, brightness control, eu layout

This commit is contained in:
Aleksandr Lebedev 2025-09-02 10:06:05 +02:00
parent d260022cc8
commit 35aa6456d5
4 changed files with 48 additions and 9 deletions

View file

@ -54,6 +54,7 @@ in
settings = { settings = {
spawn-at-startup = [ spawn-at-startup = [
{command = ["qs" "-c" "DankMaterialShell"];} {command = ["qs" "-c" "DankMaterialShell"];}
{command = ["wl-paste" "--watch" "cliphist" "store"];}
]; ];
}; };
}; };

View file

@ -205,13 +205,49 @@ in
]; ];
}; };
"XF86MonBrightnessUp".action = sh "brightnessctl set 10%+"; "XF86MonBrightnessUp" = {
"XF86MonBrightnessDown".action = sh "brightnessctl set 10%-"; allow-when-locked = true;
action.spawn = [
"qs"
"-c"
"DankMaterialShell"
"ipc"
"call"
"brightness"
"increment"
"5"
];
};
"XF86MonBrightnessDown" = {
allow-when-locked = true;
action.spawn = [
"qs"
"-c"
"DankMaterialShell"
"ipc"
"call"
"brightness"
"decrement"
"5"
];
};
"XF86AudioNext".action = sh "playerctl next"; "XF86AudioNext" = {
"XF86AudioPause".action = sh "playerctl play-pause"; allow-when-locked = true;
"XF86AudioPlay".action = sh "playerctl play-pause"; action = sh "playerctl next";
"XF86AudioPrev".action = sh "playerctl previous"; };
"XF86AudioPause" = {
allow-when-locked = true;
action = sh "playerctl play-pause";
};
"XF86AudioPlay" = {
allow-when-locked = true;
action = sh "playerctl play-pause";
};
"XF86AudioPrev" = {
allow-when-locked = true;
action = sh "playerctl previous";
};
#"Mod+Tab".action = focus-window-down-or-column-right; #"Mod+Tab".action = focus-window-down-or-column-right;
#"Mod+Shift+Tab".action = focus-window-up-or-column-left; #"Mod+Shift+Tab".action = focus-window-up-or-column-left;
"Mod+Tab".action = toggle-overview; "Mod+Tab".action = toggle-overview;
@ -223,7 +259,7 @@ in
}; };
warp-mouse-to-focus.enable = true; warp-mouse-to-focus.enable = true;
keyboard = { keyboard = {
xkb.layout = "us, ru, de"; xkb.layout = "eu, ru";
xkb.options = "grp:lctrl_toggle, ctrl:nocaps"; xkb.options = "grp:lctrl_toggle, ctrl:nocaps";
track-layout = "window"; track-layout = "window";
numlock = true; numlock = true;

View file

@ -68,11 +68,11 @@ in {
}; };
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
layout = "us,ru"; layout = "eu,ru";
variant = ""; variant = "";
options = "grp:caps_toggle"; options = "grp:caps_toggle";
}; };
console.keyMap = "us"; console.keyMap = "eu";
nix = { nix = {
settings = { settings = {
experimental-features = [ experimental-features = [

View file

@ -60,6 +60,8 @@ in
blender blender
video-downloader video-downloader
]; ];
services.power-profiles-daemon.enable = true;
services.tlp.enable = false;
#Chat host #Chat host
networking.firewall.allowedTCPPorts = [80 443 22 8448 9993 8081]; networking.firewall.allowedTCPPorts = [80 443 22 8448 9993 8081];