1
0
Fork 0

Track Keybindings and disable Mousebindings in Gaming Mode

This commit is contained in:
Malte Brandy 2020-05-16 16:36:59 +02:00
parent 960636f9e0
commit fafaffad3b
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 41 additions and 2 deletions

View file

@ -4,7 +4,7 @@ let
inherit (import ../../lib) colors;
in {
imports =
[ ./rofi.nix ./ssh-agent.nix ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ];
[ ./rofi.nix ./ssh-agent.nix ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ./gnome.nix ];
m-0 = {
terminal = "${desktop-pkgs.terminal}/bin/terminal";
colors = colors;

29
home/desktop/gnome.nix Normal file
View file

@ -0,0 +1,29 @@
{ ... }: {
dconf.settings = {
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal" =
{
binding = "<Super>Return";
command = "kitty";
name = "Terminal";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/hotkeys" =
{
binding = "<Super>space";
command = "/home/maralorn/.cargo/bin/hotkeys";
name = "Hotkeys";
};
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/hotkeys/"
];
mic-mute = [ "<Primary><Shift>U+2113" ];
next = [ "<Primary><Shift>dollar" ];
play = [ "<Primary><Shift>guillemotleft" ];
previous = [ "<Primary><Shift>EuroSign" ];
screensaver = [ "<Primary>Escape" ];
volume-down = [ "<Primary><Shift>section" ];
volume-up = [ "<Primary><Shift>degree" ];
};
};
}

View file

@ -1,6 +1,16 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let inherit (import ../lib) unfreePkgs writeHaskellScript;
in {
dconf.settings."org/gnome/settings-daemon/plugins/media-keys" = {
mic-mute = lib.mkForce [ ];
next = lib.mkForce [ ];
play = lib.mkForce [ ];
previous = lib.mkForce [ ];
screensaver = lib.mkForce [ ];
volume-down = lib.mkForce [ ];
volume-up = lib.mkForce [ ];
};
home.packages = builtins.attrValues {
inherit (unfreePkgs) steam;
inherit (pkgs) minetest;