Update modules/users.nix modules/workspace/i3/default.nix

This commit is contained in:
Alexander Bantyev 2020-03-01 21:34:32 +03:00
parent 6fca913d8c
commit a1aa693af9
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@
services.udev.extraRules = '' services.udev.extraRules = ''
ACTION=="remove", ATTRS{idVendor}=="1050, RUN+="${ ACTION=="remove", ATTRS{idVendor}=="1050, RUN+="${
pkgs.writeShellScript "lock-system" pkgs.writeShellScript "lock-system"
"/run/wrappers/bin/sudo -u balsoft 'swaylock -f -c ${ "/run/wrappers/bin/sudo -u balsoft 'XDG_RUNTIME_DIR=/run/user/1000/ ${pkgs.swaylock}/bin/swaylock -f -c ${
builtins.substring 1 7 config.themes.colors.bg builtins.substring 1 7 config.themes.colors.bg
}'" }'"
}"''; }"'';

View File

@ -161,9 +161,9 @@ in {
"${modifier}+v" = "split v"; "${modifier}+v" = "split v";
"${modifier}+F1" = "move to scratchpad"; "${modifier}+F1" = "move to scratchpad";
"${modifier}+F2" = "scratchpad show"; "${modifier}+F2" = "scratchpad show";
"${modifier}+F11" = "output * dpms off"; "${modifier}+F11" = "exec swaylock -f -c ${builtins.substring 1 7 thm.bg}; output * dpms off";
"${modifier}+F12" = "output * dpms on"; "${modifier}+F12" = "output * dpms on";
"${modifier}+End" = "swaylock -f -c ${builtins.substring 1 7 thm.bg}"; "${modifier}+End" = "exec swaylock -f -c ${builtins.substring 1 7 thm.bg}";
"${modifier}+p" = "sticky toggle"; "${modifier}+p" = "sticky toggle";
"${modifier}+i" = "${modifier}+i" =
script "0x0" ''wl-paste | curl -F"file=@-" https://0x0.st | wl-copy''; script "0x0" ''wl-paste | curl -F"file=@-" https://0x0.st | wl-copy'';