diff --git a/hosts/denkbrett/modules/input.nix b/hosts/denkbrett/modules/input.nix index fdb5785..a6116f5 100644 --- a/hosts/denkbrett/modules/input.nix +++ b/hosts/denkbrett/modules/input.nix @@ -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 = { diff --git a/modules/shell/nu/custom_commands.nu b/modules/shell/nu/custom_commands.nu index 5b66b1b..d777349 100644 --- a/modules/shell/nu/custom_commands.nu +++ b/modules/shell/nu/custom_commands.nu @@ -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" +}