misc changes
This commit is contained in:
parent
c713065135
commit
1bd70f34ca
|
@ -17,7 +17,7 @@ set spoolfile = +INBOX
|
||||||
set record = "+Sent"
|
set record = "+Sent"
|
||||||
set trash = "+Trash"
|
set trash = "+Trash"
|
||||||
set postponed = "+Drafts"
|
set postponed = "+Drafts"
|
||||||
mailboxes +SMS +INBOX "+College Messages"
|
mailboxes +SMS +INBOX "+College Messages" +"Internship 24"
|
||||||
|
|
||||||
unset wait_key
|
unset wait_key
|
||||||
macro index S "<shell-escape>mbsync --config=$HOME/.config/isync/config main; vdirsyncer sync<enter>"
|
macro index S "<shell-escape>mbsync --config=$HOME/.config/isync/config main; vdirsyncer sync<enter>"
|
||||||
|
|
|
@ -71,8 +71,19 @@
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "mlg";
|
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
|
system.stateVersion = "23.11"; # don't change this, lol
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ' ' - -
|
||||||
|
#}
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xscreensaver
|
xscreensaver
|
||||||
|
dunst
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
Loading…
Reference in New Issue