Switch xremap to user mode
system mode didn't work for executing applications
This commit is contained in:
parent
a839540671
commit
190081b246
1 changed files with 28 additions and 7 deletions
|
@ -17,26 +17,47 @@
|
|||
path = [pkgs.xorg.xhost];
|
||||
wantedBy = ["default.target"];
|
||||
script = "xhost +SI:localuser:root";
|
||||
environment.DISPLAY = "DP-4"; # NOTE: This is hardcoded for this flake
|
||||
environment.DISPLAY = ":0"; # NOTE: This is hardcoded for this flake
|
||||
};
|
||||
|
||||
services.xremap = {
|
||||
withX11 = true;
|
||||
watch = true;
|
||||
# debug = true;
|
||||
debug = false;
|
||||
userName = "ghoscht";
|
||||
serviceMode = "system";
|
||||
serviceMode = "user";
|
||||
config = {
|
||||
keymap = [
|
||||
{
|
||||
name = "Global";
|
||||
remap = {"CapsLock" = "Esc";}; # globally remap CapsLock to Esc
|
||||
remap = {
|
||||
"CapsLock" = "Esc";
|
||||
"Esc" = "CapsLock";
|
||||
super-x = {
|
||||
launch = ["${lib.getExe pkgs.wezterm}"];
|
||||
};
|
||||
# super-space = {
|
||||
# launch = ["${lib.getExe pkgs.rofi}" "-i" "-show" "drun" "-show-icons"];
|
||||
# };
|
||||
# super-control-l = {
|
||||
# launch = ["${lib.getExe pkgs.firefox}"];
|
||||
# };
|
||||
# super-control-shift-l = {
|
||||
# launch = ["${lib.getExe pkgs.firefox}" "--private-window"];
|
||||
# };
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "main remaps";
|
||||
name = "Music";
|
||||
remap = {
|
||||
super-e = {
|
||||
launch = ["${lib.getExe pkgs.pavucontrol}"];
|
||||
"KEY_PLAYPAUSE" = {
|
||||
launch = ["${lib.getExe pkgs.playerctl}" "play-pause"];
|
||||
};
|
||||
"KEY_NEXTSONG" = {
|
||||
launch = ["${lib.getExe pkgs.playerctl}" "next"];
|
||||
};
|
||||
"KEY_PREVIOUSSONG" = {
|
||||
launch = ["${lib.getExe pkgs.playerctl}" "previous"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue