gay + some more custom commands

This commit is contained in:
Schrottkatze 2025-03-10 14:23:49 +01:00
parent e5aba8530f
commit 1a2bb1293a
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
2 changed files with 40 additions and 3 deletions

View file

@ -1,8 +1,7 @@
{...}: {
# key remapping
jade.input.remapping = {
enable = true;
devices."AT Translated Set 2 keyboard" = {
jade.input.remapping = let
default = {
swapKeys = [
["KEY_Y" "KEY_Z"]
["KEY_LEFTALT" "KEY_LEFTMETA"]
@ -15,6 +14,11 @@
}
];
};
in {
enable = true;
devices."AT Translated Set 2 keyboard" = default;
devices."Razer Razer Huntsman" = default;
devices."Razer Razer DeathAdder V2" = default;
};
hardware.trackpoint = {

View file

@ -70,3 +70,36 @@ def bx [from: string to: string] {
print $url;
^bash -c $"nohup chromium '($url)' &";
}
def meow [ n = 1 ] {
"m{rr,r,}{e,ee,{,e,aa}o}w{,w,ww}" | str expand | shuffle | first $n | str join ' '
}
alias miau = meow;
def bars [display_name?: string] {
print $display_name;
pkill eww
if ($display_name | is-empty) {
print "Opening bars on whatever eww figures is best"
eww open-many topBar bottomBar
} else {
print $"Opening bars on ($display_name)"
eww open --screen $display_name bottomBar
eww open --screen $display_name topBar
}
}
def "dp ccchh" [] {
layaway "hdmi2 + edp/bottom,center"
pkill eww
bars "25BL56WY"
}
def "dp gay" [] {
layaway "dp3 + edp1/bottom,center + dp5/right,top"
# manual fix for lack of frequency in layaway, else monitor just turns off
swaymsg "output DP-3 position 0 0 scale 1 transform normal resolution 1920x1080@60Hz"
pkill eww
bars "LEN G27c-10"
}