diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index 7a87862..ad6d223 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -17,7 +17,7 @@ set spoolfile = +INBOX set record = "+Sent" set trash = "+Trash" set postponed = "+Drafts" -mailboxes +SMS +INBOX "+College Messages" +mailboxes +SMS +INBOX "+College Messages" +"Internship 24" unset wait_key macro index S "mbsync --config=$HOME/.config/isync/config main; vdirsyncer sync" diff --git a/boxes/mlg/default.nix b/boxes/mlg/default.nix index 09590c9..e2de063 100644 --- a/boxes/mlg/default.nix +++ b/boxes/mlg/default.nix @@ -71,8 +71,19 @@ nixpkgs.config.allowUnfree = true; networking = { hostName = "mlg"; - firewall.enable = true; + firewall = { + enable = true; + allowedTCPPorts = [ 6000 ]; + allowedTCPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + allowedUDPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + }; }; + programs.kdeconnect.enable = true; + system.stateVersion = "23.11"; # don't change this, lol } diff --git a/builds/utils/sh/start-phone-bridge b/builds/utils/sh/start-phone-bridge new file mode 100755 index 0000000..d8de251 --- /dev/null +++ b/builds/utils/sh/start-phone-bridge @@ -0,0 +1,21 @@ +ssh phone " + termux-notification -c 'a computer connected via the termux bridge'; + while true; do + termux-sms-list -d -t inbox | \ + jq -r 'map(select(.read == false)).[] | if .sender == null then .number else .sender end, .body' | \ + xargs -d '\n' -n2 + done +" 2>&1 | awk '!seen[$0]++' | tee help_me_im_going_insane | xargs -L1 dunstify + +ssh phone " +# ( while true; do +# echo "911 +#testing message" +#done ) | { + +#( while true; do +# ssh phone "termux-sms-list -d -t inbox" \ +# | jq -r 'map(select(.read == false)) | if .[].sender == null then .[].number else .[].sender end, .[].body' +#done ) | { +# paste -d ' ' - - +#} diff --git a/modules/x11.nix b/modules/x11.nix index 569f53d..f71c3ea 100644 --- a/modules/x11.nix +++ b/modules/x11.nix @@ -9,6 +9,7 @@ environment.systemPackages = with pkgs; [ xscreensaver + dunst ]; services.xserver = {