XRemap: Try to fix x11 gui application launching
This commit is contained in:
parent
5d3e9d47ff
commit
603971e590
1 changed files with 18 additions and 1 deletions
|
@ -1,21 +1,38 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.xremap.nixosModules.default
|
inputs.xremap.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.uinput.enable = true;
|
||||||
|
users.groups.uinput.members = ["ghoscht"];
|
||||||
|
users.groups.input.members = ["ghoscht"];
|
||||||
|
|
||||||
|
systemd.user.services.set-xhost = {
|
||||||
|
description = "Run a one-shot command upon user login";
|
||||||
|
path = [pkgs.xorg.xhost];
|
||||||
|
wantedBy = ["default.target"];
|
||||||
|
script = "xhost +SI:localuser:root";
|
||||||
|
environment.DISPLAY = "DP-4"; # NOTE: This is hardcoded for this flake
|
||||||
|
};
|
||||||
|
|
||||||
services.xremap = {
|
services.xremap = {
|
||||||
withX11 = true;
|
withX11 = true;
|
||||||
|
watch = true;
|
||||||
|
# debug = true;
|
||||||
|
userName = "ghoscht";
|
||||||
|
serviceMode = "system";
|
||||||
config = {
|
config = {
|
||||||
keymap = [
|
keymap = [
|
||||||
{
|
{
|
||||||
name = "main remaps";
|
name = "main remaps";
|
||||||
remap = {
|
remap = {
|
||||||
super-e = {
|
super-e = {
|
||||||
launch = ["firefox"];
|
launch = ["${lib.getExe pkgs.pavucontrol}"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue