fix xkb issues, change espanso formatting
This commit is contained in:
parent
ef0ae94080
commit
a100acda87
4 changed files with 18 additions and 15 deletions
|
|
@ -1,13 +1,14 @@
|
|||
{ pkgs, repoRoot, ... }:
|
||||
{ pkgs, lib, repoRoot, ... }:
|
||||
{
|
||||
services.espanso = {
|
||||
enable = true;
|
||||
waylandSupport = true;
|
||||
configs.default = {
|
||||
toggle_key = "OFF";
|
||||
search_shortcut = "OFF";
|
||||
preserve_clipboard = true;
|
||||
show_notifications = true;
|
||||
keyboard_layout.layout = "se";
|
||||
keyboard_layout.layout = lib.mkDefault "se";
|
||||
};
|
||||
matches = {
|
||||
base.matches = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, repoRoot, ... }:
|
||||
{ pkgs, repoRoot, lib, ... }:
|
||||
let
|
||||
commands = import ../../../../lib/commands.nix { inherit pkgs; };
|
||||
inherit (commands) uwsm lock term notify nag dmenu espanso;
|
||||
|
|
@ -54,7 +54,7 @@ in
|
|||
pointer_accel = "0.5";
|
||||
};
|
||||
"*" = {
|
||||
xkb_layout = "se,us";
|
||||
xkb_layout = lib.mkDefault "se,us";
|
||||
xkb_options = "grp:win_space_toggle";
|
||||
};
|
||||
};
|
||||
|
|
@ -121,7 +121,7 @@ in
|
|||
"${key_mod}+${key_mod_misc}+Tab" = "workspace next";
|
||||
"${key_mod}+${key_mod_misc}+Shift+Tab" = "workspace prev";
|
||||
|
||||
"Mod4+space" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/get_xkb.xsh)\"";
|
||||
"Mod4+space" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/toggle_xkb.xsh)\"";
|
||||
"${key_mod}+Shift+r" = "reload";
|
||||
"${key_mod}+Ctrl+r" = "restart";
|
||||
"${key_mod}+Backspace" = "exec ${nag} -m 'TuneD profiles:' -Z 'Performance' 'tuned-adm profile accelerator-performance' -Z 'Balanced' 'tuned-adm profile balanced' -Z 'Power Save' 'tuned-adm profile powersave'";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue