arregla script de teclado

This commit is contained in:
Fabián Montero 2022-03-24 00:50:15 -06:00
parent 04d12e36ac
commit ea52f5f7bd
4 changed files with 14 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{maim, xclip, ...}: ''
{maim, xclip, callPackage, ...}: ''
# See https://i3wm.org/docs/userguide.html for a complete reference!
@ -22,7 +22,7 @@ exec_always --no-startup-id xrandr --output DisplayPort-0 --primary --mode 1920x
exec_always --no-startup-id compton -b
# exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec --no-startup-id ./keyboard.sh
exec --no-startup-id ${callPackage ./keyboard.nix {}}/bin/setkeyboard
# exec --no-startup-id ./wallpaper.sh
# exec --no-startup-id dunst -config .config/dunst/dunstrc
@ -183,7 +183,7 @@ gaps outer 10
gaps inner 10
# screenshot
bindsym $mod+Shift+s exec ${maim} -s -u | ${xclip} -selection clipboard -t image/png -i
bindsym $mod+Shift+s exec ${maim}/bin/maim -s -u | ${xclip}/bin/xclip -selection clipboard -t image/png -i
# 2 screens
workspace $ws1 output DisplayPort-0

9
home/i3/keyboard.nix Executable file
View file

@ -0,0 +1,9 @@
{setxkbmap, writeShellApplication, ...}:
writeShellApplication {
name = "setkeyboard";
runtimeInputs = [ setxkbmap ];
text = ''
setxkbmap -layout us,latam
setxkbmap -option 'grp:alt_shift_toggle'
'';
}

View file

@ -1,3 +0,0 @@
setxkbmap -layout us,latam
setxkbmap -option 'grp:alt_shift_toggle'
export EDITOR=nvim

View file

@ -1,4 +1,4 @@
{callPackage, lib, config, ...}:
{pkgs, lib, config, ...}:
with lib; let
cfg = config.programs.steam;
in {
@ -7,7 +7,7 @@ in {
};
config = mkIf cfg.enable {
home.packages = [
(callPackage ./package.nix {})
(pkgs.callPackage ./package.nix {})
];
};
}