key-remaps to xinitrc and nixvim buffer switch remaps
This commit is contained in:
parent
f7ffba2266
commit
e374498aa4
|
@ -81,5 +81,37 @@
|
||||||
action = "<cmd>Telescope help_tags<CR>";
|
action = "<cmd>Telescope help_tags<CR>";
|
||||||
options = {noremap = true;};
|
options = {noremap = true;};
|
||||||
}
|
}
|
||||||
|
# paste over selected text without yanking it
|
||||||
|
{
|
||||||
|
mode = ["v"];
|
||||||
|
key = "p";
|
||||||
|
action = "\"_dP";
|
||||||
|
options = {noremap = true;};
|
||||||
|
}
|
||||||
|
# resize window
|
||||||
|
{
|
||||||
|
mode = ["n"];
|
||||||
|
key = "<Right>";
|
||||||
|
action = ":vertical resize +1<CR>";
|
||||||
|
options = {noremap = true;};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = ["n"];
|
||||||
|
key = "<Left>";
|
||||||
|
action = ":vertical resize -1<CR>";
|
||||||
|
options = {noremap = true;};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = ["n"];
|
||||||
|
key = "<Down>";
|
||||||
|
action = ":resize -1<CR>";
|
||||||
|
options = {noremap = true;};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = ["n"];
|
||||||
|
key = "<Up>";
|
||||||
|
action = ": resize +1<CR>";
|
||||||
|
options = {noremap = true;};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,21 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
# TODO: configure x11 to look in .config/x11
|
# TODO: configure x11 to look in .config/x11
|
||||||
home.file.".xinitrc" = {
|
home.file.".xinitrc" = {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
text = ''
|
text = ''
|
||||||
|
|
||||||
|
## Map Alt_L + [hjkl] to left, down, up, right
|
||||||
|
xmodmap -e "keycode 64 = Mode_switch" # set Alt_l as the "Mode_switch"
|
||||||
|
xmodmap -e "keycode 43 = h H Left H" # h
|
||||||
|
xmodmap -e "keycode 44 = j J Down J" # j
|
||||||
|
xmodmap -e "keycode 45 = k K Up K" # k
|
||||||
|
xmodmap -e "keycode 46 = l L Right L" # l
|
||||||
|
|
||||||
picom -b --config ~/.config/picom/picom.conf
|
picom -b --config ~/.config/picom/picom.conf
|
||||||
xrdb -merge ~/.Xresources
|
xrdb -merge ~/.Xresources
|
||||||
|
|
||||||
autostart="clipboard-save dwmblocks feh-wallpaper-changer sxhkd"
|
autostart="clipboard-save dwmblocks feh-wallpaper-changer sxhkd"
|
||||||
|
|
||||||
for program in $autostart; do
|
for program in $autostart; do
|
||||||
pidof -sx "$program" || "$program" &
|
pidof -sx "$program" || "$program" &
|
||||||
done >/dev/null 2>&1
|
done >/dev/null 2>&1
|
||||||
|
@ -19,10 +25,10 @@
|
||||||
eval $(dbus-launch --exit-with-session --sh-syntax)
|
eval $(dbus-launch --exit-with-session --sh-syntax)
|
||||||
fi
|
fi
|
||||||
systemctl --user import-environment DISPLAY XAUTHORITY
|
systemctl --user import-environment DISPLAY XAUTHORITY
|
||||||
|
|
||||||
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
|
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
|
||||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export XSESSION_PID="$$"
|
export XSESSION_PID="$$"
|
||||||
exec dwm
|
exec dwm
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
fileSystems."/media/media" = {
|
fileSystems."/media/media" = {
|
||||||
device = "10.0.10.30:/mnt/media";
|
device = "10.0.10.30:/mnt/media";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "noatime" "_netdev" "ro" ];
|
options = ["noatime" "_netdev"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue