diff --git a/home/home.nix b/home/home.nix index 6ff8bac..34e321b 100644 --- a/home/home.nix +++ b/home/home.nix @@ -118,6 +118,7 @@ in { python313Packages.ipython sage yq + semgrep # security aflplusplus diff --git a/home/scripts/bspwm/add-3840p.sh b/home/scripts/bspwm/add-3840p.sh new file mode 100644 index 0000000..a256e74 --- /dev/null +++ b/home/scripts/bspwm/add-3840p.sh @@ -0,0 +1,25 @@ +PRIMARY="$(xrandr --query | awk '/ connected primary/{print $1; exit}')" +[ -z "$PRIMARY" ] && PRIMARY="$(xrandr --query | awk '/ connected/{print $1; exit}')" +bspc monitor "$PRIMARY" -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + +if [[ $(xrandr -q | grep 'DP-2 connected') ]]; then +xrandr --output "$PRIMARY" --primary --auto --scale 1x1 --rotate normal --output DP-2 --mode 3840x2160 --rotate normal --right-of "$PRIMARY" + bspc monitor "$PRIMARY" -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 + bspc monitor DP-2 -d 20 + xinput map-to-output "TPPS/2 Elan TrackPoint" "eDP-1" + xinput map-to-output "Synaptics TM3289-002" "eDP-1" +else + xrandr --output DP-2 --off + # Remove nodes + while bspc node 20: --kill; do + : + done + # Remove workspaces + bspc desktop -r 20 + # Remove monitor + bspc monitor DP-2 -r + + bspc monitor "$PRIMARY" -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 + xinput map-to-output "TPPS/2 Elan TrackPoint" "all" + xinput map-to-output "Synaptics TM3289-002" "all" +fi diff --git a/system/system.nix b/system/system.nix index 498b1f0..cd28a16 100644 --- a/system/system.nix +++ b/system/system.nix @@ -128,6 +128,12 @@ }; }; + boot.extraModulePackages = with config.boot.kernelPackages; [ + rtl8812au + ]; + + # boot.kernelModules = ["8812au"]; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/system/users/default.nix b/system/users/default.nix index a6fd4fc..79b6bf3 100644 --- a/system/users/default.nix +++ b/system/users/default.nix @@ -73,6 +73,7 @@ in { polybar sxhkd bspwm + # linuxKernel.packages.linux_zen.rtl8812au # librewolf ]; }