Fix some Mod4+FXX shortcuts

Though my main keyboard cannot do both at the same time,
I'll need to address that.
This commit is contained in:
Geoffrey Frogeye 2025-06-20 22:34:35 +02:00
parent 0a625ad6a9
commit f28c094051
2 changed files with 5 additions and 3 deletions

View file

@ -37,7 +37,7 @@ in
"XF86AudioLowerVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "${pactl} set-sink-mute @DEFAULT_SINK@ true";
"${mod}+F8" = "${pactl} suspend-sink @DEFAULT_SINK@ 1; ${pactl} suspend-sink @DEFAULT_SINK@ 0"; # Re-synchronize bluetooth headset
"${mod}+F11" = "exec ${pkgs.pavucontrol}/bin/pwvucontrol";
"${mod}+F11" = "exec ${lib.getExe pkgs.pwvucontrol}";
# TODO Find pacmixer?
};
};

View file

@ -80,8 +80,10 @@ in
stylix.targets.swaylock.enable = false;
wayland.windowManager.sway.config.keybindings = lib.mkOptionDefault {
# Turn screen off until activity
"${mod}+F1" =
''--release exec ${powerScreen "off"} && ${lib.getExe wayresume} -t0; ${powerScreen "on"}'';
"--release ${mod}+F1" = "exec ${pkgs.writeShellScript "tempscreenoff" ''
${powerScreen "off"} && ${lib.getExe wayresume} -t0
${powerScreen "on"}
''}";
# Toggle to save on buttons
# TODO Bar indicator
"${mod}+F5" = "exec --no-startup-id ${pkgs.writeShellScript "swayidle-toggle" ''