mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-03 19:53:25 +08:00
53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
{ user, config, ... }:
|
|
{
|
|
xdg.configFile."swhkd/basic.swhkdrc".text = config.lib.swhkd.mkSwhkdrc {
|
|
keyBindings = [
|
|
{
|
|
key = "super + shift + r";
|
|
command = "pkill -HUP swhkd";
|
|
}
|
|
{
|
|
key = "super + alt + c";
|
|
command = "wl-color-picker";
|
|
}
|
|
{
|
|
key = "super + b";
|
|
command = "pkill -USR1 .waybar-wrapped";
|
|
}
|
|
{
|
|
key = "XF86AudioMute";
|
|
command = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
|
}
|
|
{
|
|
key = "XF86AudioMicMute";
|
|
command = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
|
|
}
|
|
{
|
|
key = "XF86AudioRaiseVolume";
|
|
command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+";
|
|
}
|
|
{
|
|
key = "XF86AudioLowerVolume";
|
|
command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-";
|
|
}
|
|
{
|
|
key = "super + shift + s";
|
|
command =
|
|
with config.lib.stylix.colors.withHashtag;
|
|
''wshowkeys -a bottom -a right -F "Comic Code 30" -b "${base00}aa" -f "${base0E}ee" -s "${base0F}ee" -t 1'';
|
|
}
|
|
];
|
|
};
|
|
xdg.configFile."swhkd/tofi.swhkdrc".text = config.lib.swhkd.mkSwhkdrc {
|
|
keyBindings = [
|
|
{
|
|
key = "super + x";
|
|
command = "/home/${user}/scripts/tofi/powermenu";
|
|
}
|
|
{
|
|
key = "super + shift + p";
|
|
command = "sh -c $(tofi-drun)";
|
|
}
|
|
];
|
|
};
|
|
}
|