Skip to content

Instantly share code, notes, and snippets.

@aabccd021
Created March 19, 2025 00:21

Revisions

  1. aabccd021 created this gist Mar 19, 2025.
    10 changes: 10 additions & 0 deletions sxhkd-amixr.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    {
    services.sxhkd.enable = true;
    services.sxhkd.keybindings = {
    "super + i" = "sh -c 'if [ $(ibus engine) == \"xkb:us::eng\" ]; then ibus engine mozc-jp; else ibus engine xkb:us::eng; fi'";
    "super + Print" = "flameshot gui";
    "XF86AudioMute" = "${pkgs.alsa-utils}/bin/amixer sset Master toggle";
    "XF86AudioRaiseVolume" = "${pkgs.alsa-utils}/bin/amixer sset Master 4%+";
    "XF86AudioLowerVolume" = "${pkgs.alsa-utils}/bin/amixer sset Master 4%-";
    };
    }