From 578f2951554f0a2e6c016a1e1f4c01e07e19472d Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Sat, 14 Sep 2024 21:59:54 +0200 Subject: [PATCH] ... --- hosts/fasu.nix | 4 ++-- programs/bash.nix | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/hosts/fasu.nix b/hosts/fasu.nix index d0dc3bf..ed13604 100644 --- a/hosts/fasu.nix +++ b/hosts/fasu.nix @@ -75,9 +75,9 @@ 9999 # for general usage 8080 # for mitm proxy - 25565 # mc server + 25565 # mc proxy 25580 # wmc lobby server - 25566 # mc server + 25566 # mc proxy cracked 3306 # mariadb for wmc 6379 # redis for wmc ]; diff --git a/programs/bash.nix b/programs/bash.nix index c91cd9f..d53ea92 100644 --- a/programs/bash.nix +++ b/programs/bash.nix @@ -5,7 +5,7 @@ enable = true; enableCompletion = true; - historyFile = "${persistentDir}/${hostname}/bash-history"; + historyFile = "/home/$USER/work/app-data/${hostname}/bash-history"; historyFileSize = 100000; historyControl = [ "ignoredups" ]; historyIgnore = [ @@ -259,9 +259,23 @@ python3 -c "print($@)" } + # cam + function cam(){ + xset r rate 130 85 + xinput set-prop "ZMK Project Charybdis Mouse" 304 60 + xinput set-prop "Charybdis Mouse" 304 60 + id=$(xinput | grep Charybdis | tail -n 1 | awk '{print $4}' | cut -c4- ) + echo id: $id + setxkbmap -device $id -layout us + + id=$(xinput | grep Charybdis | tail -n 1 | awk '{print $6}' | cut -c4- ) + echo id: $id + setxkbmap -device $id -layout us + } # map function map(){ + source $ if [ "$1" == "" ] then bash ~/work/virtchord/reset