This commit is contained in:
lelgenio 2024-06-20 22:30:12 -03:00
parent b97940aa97
commit ab67d2f647
4 changed files with 11 additions and 2 deletions

View file

@ -47,6 +47,8 @@ rec {
patches = ( patches = (
final: prev: { final: prev: {
mySway = prev.sway.override { mySway = prev.sway.override {
withBaseWrapper = true;
withGtkWrapper = true;
sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: { sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
patches = old.patches ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ]; patches = old.patches ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
}); });

View file

@ -52,7 +52,7 @@
home.homeDirectory = "/home/lelgenio"; home.homeDirectory = "/home/lelgenio";
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
# programs.home-manager.enable = true; programs.home-manager.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
# home-manager # home-manager

View file

@ -146,6 +146,7 @@ in
wdmenu wdmenu
wlauncher wlauncher
volumesh volumesh
brightnessctl
showkeys showkeys
pamixer pamixer
libnotify libnotify

View file

@ -16,7 +16,6 @@ let
_lock = pkgs.writeShellScriptBin "_lock" '' _lock = pkgs.writeShellScriptBin "_lock" ''
${pkgs.sway}/bin/swaymsg mode default ${pkgs.sway}/bin/swaymsg mode default
${pkgs.swaylock}/bin/swaylock -f ${pkgs.swaylock}/bin/swaylock -f
systemctl --user start swayidle.service
''; '';
_suspend = pkgs.writeShellScriptBin "_suspend" '' _suspend = pkgs.writeShellScriptBin "_suspend" ''
${pkgs.sway}/bin/swaymsg mode default ${pkgs.sway}/bin/swaymsg mode default
@ -158,6 +157,12 @@ let
"Control+Print" = "exec ${pkgs.screenshotsh}/bin/screenshotsh clip"; "Control+Print" = "exec ${pkgs.screenshotsh}/bin/screenshotsh clip";
}; };
screen_binds = {
"XF86MonBrightnessDown" = "exec brightnessctl --min-value=1 set 5%-";
"XF86MonBrightnessUp" = "exec brightnessctl --min-value=1 set 5%+";
"${mod}+l" = lib.getExe _lock;
};
other_binds = { other_binds = {
"${mod}+p" = "exec ${pkgs.wpass}/bin/wpass"; "${mod}+p" = "exec ${pkgs.wpass}/bin/wpass";
"${mod}+s" = "exec ${menu}"; "${mod}+s" = "exec ${menu}";
@ -196,5 +201,6 @@ in
system_binds system_binds
parenting_binds parenting_binds
screenshot_binds screenshot_binds
screen_binds
]; ];
} }