do things

This commit is contained in:
Schrottkatze 2024-09-26 19:15:58 +02:00
parent b4dfef1d6d
commit f903d1b45e
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
11 changed files with 47 additions and 26 deletions

View file

@ -74,7 +74,7 @@ with builtins; {
mprocs mprocs
dig dig
aria2 aria2
usbutils cyme
numbat numbat
devd devd

View file

@ -14,5 +14,14 @@
enableNushellIntegration = true; enableNushellIntegration = true;
enableSshSupport = true; enableSshSupport = true;
}; };
fonts.fontconfig = {
enable = true;
defaultFonts = {
emoji = [];
monospace = [];
sansSerif = ["Atkinson Hyperlegible"];
serif = [];
};
};
}; };
} }

View file

@ -26,7 +26,7 @@
) )
(box (box
:halign "end" :halign "end"
(label :text "right") (label :text "${iceData.speed}km/h")
) )
) )
(box (box
@ -42,3 +42,9 @@
) )
) )
) )
(defpoll iceData
:interval "2s"
:initial ""
`(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status`
)

View file

@ -22,6 +22,7 @@
) )
(box (box
(progress (progress
:class { traveldings_data.live ? "traveldings_live" : "traveldings_disconnected" }
:value {traveldings_data.progress * 100} :value {traveldings_data.progress * 100}
:orientation "horizontal" :orientation "horizontal"
) )
@ -29,20 +30,6 @@
) )
) )
(defwindow traveldingsWindow
:monitor 0
:stacking "overlay"
:exclusive "false"
:geometry (geometry
:x "0%"
:y "6.6%"
:width "30%"
:height "20%"
:anchor "bottom center")
(box
:class "traveldingsWindow"
(label :text "TODO"))
)
(deflisten traveldings_data (deflisten traveldings_data
:initial "null" :initial "null"

View file

@ -22,12 +22,16 @@ label {
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
} }
.traveldings progressbar progress { .traveldings progressbar.traveldings_live progress {
background-color: #79740e; background-color: #79740e;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
} }
.traveldings progressbar.traveldings_disconnected progress {
background-color: #cc241d;
}
.traveldingsWindow { .traveldingsWindow {
border-radius: 15px; border-radius: 15px;
} }

View file

@ -0,0 +1,15 @@
#!/usr/bin/env nu
const TABLE = [
[ br vmax ];
[ 401 280 ]
[ 402 280 ]
[ 403 330 ]
[ 406 330 ]
[ 407 320 ]
[ 408 320 ]
[ 411 230 ]
[ 415 230 ]
[ 412 265 ]
[ 605 200 ]
];

View file

@ -112,8 +112,8 @@
# "${mod}+Shift+c" = "focus child"; # "${mod}+Shift+c" = "focus child";
# screenshot # screenshot
# "${mod}+w" = "exec window-screenshot.sh"; # "${mod}+w" = "exec window-screenshot.sh";
"${mod}+s" = "exec flameshot gui -c -p $HOME/Pictures/screenshots"; "${mod}+s" = "exec gscreenshot -csf $HOME/Pictures/screenshots";
"${mod}+a" = "exec flameshot screen -c -p $HOME/Pictures/screenshots"; "${mod}+a" = "exec gscreenshot -cf $HOME/Pictures/screenshots";
# "${mod}+t" = "exec ocr-screenshot.sh"; # "${mod}+t" = "exec ocr-screenshot.sh";
# rofi fuckery # rofi fuckery
@ -138,7 +138,6 @@
"XF86KbdBrightnessUp" = "exec brillo -kA 10.0"; "XF86KbdBrightnessUp" = "exec brillo -kA 10.0";
"XF86KbdBrightnessDown" = "exec brillo -kU 10.0"; "XF86KbdBrightnessDown" = "exec brillo -kU 10.0";
}; };
workspaceAutoBackAndForth = true;
focus = { focus = {
wrapping = "yes"; wrapping = "yes";
}; };

View file

@ -100,6 +100,7 @@ in
xclip xclip
xmacro xmacro
xorg.xev xorg.xev
gscreenshot
syncplay syncplay

View file

@ -254,6 +254,8 @@
"app.normandy.enabled" = false; "app.normandy.enabled" = false;
"app.normandy.api_url" = ""; "app.normandy.api_url" = "";
"dom.private-attribution.submission.enabled" = false; "dom.private-attribution.submission.enabled" = false;
"browser.newtabpage.activity-stream.feeds.showWeather" = false;
"browser.newtabpage.activity-stream.feeds.weatherfeed" = false;
"browser.safebrowsing.malware.enabled" = false; "browser.safebrowsing.malware.enabled" = false;
"browser.safebrowsing.phishing.enabled" = false; "browser.safebrowsing.phishing.enabled" = false;
@ -319,8 +321,7 @@
"privacy.window.maxInnerWidth" = 1600; "privacy.window.maxInnerWidth" = 1600;
"privacy.window.maxInnerHeight" = 900; "privacy.window.maxInnerHeight" = 900;
"privacy.resistFingerprinting.block_mozAddonManager" = true; "privacy.resistFingerprinting.block_mozAddonManager" = true;
"privacy.resistFingerprinting.letterboxing" = true; "privacy.resistFingerprinting.letterboxing" = false;
"privacy.resistFingerprinting.letterboxing.dimensions" = "";
"widget.non-native-theme.enabled" = true; "widget.non-native-theme.enabled" = true;
"browser.link.open_newwindow" = 3; "browser.link.open_newwindow" = 3;
"browser.link.open_newwindow.restriction" = 0; "browser.link.open_newwindow.restriction" = 0;

View file

@ -33,7 +33,7 @@ $env.PROMPT_COMMAND = {||
let len = (term size | get columns) - ($item | ansi strip | str length --grapheme-clusters) - (create_right_prompt | ansi strip | str length --grapheme-clusters); let len = (term size | get columns) - ($item | ansi strip | str length --grapheme-clusters) - (create_right_prompt | ansi strip | str length --grapheme-clusters);
# $item | append (flag $TRANS "-" $len) | str join # $item | append (flag $TRANS "-" $len) | str join
let deco = if ($env.CMD_COUNT == 0) { let deco = if ($env.CMD_COUNT == 0) {
flag $LESBIAN "=" $len flag $TRANS "=" $len
} else if ($env.CMD_COUNT | is even) { } else if ($env.CMD_COUNT | is even) {
flag $LESBIAN "-" $len flag $LESBIAN "-" $len
} else { } else {

View file

@ -47,7 +47,7 @@ def flag [
} }
def main [] { def main [] {
print (flag $TRANS); print (flag $LESBIAN);
let next_events = open ~/Docs/dates.csv let next_events = open ~/Docs/dates.csv
| update datetime {|ev| $ev.datetime | into datetime } | update datetime {|ev| $ev.datetime | into datetime }
| sort-by datetime | sort-by datetime
@ -55,7 +55,6 @@ def main [] {
| first | first
| each {|ev| $"(ansi attr_bold)($ev.event)(ansi reset) in (ansi attr_bold)(tfmt ($ev.datetime - (date now)))s(ansi reset)" }; | each {|ev| $"(ansi attr_bold)($ev.event)(ansi reset) in (ansi attr_bold)(tfmt ($ev.datetime - (date now)))s(ansi reset)" };
print $"Hi jade, you're on HRT for (ansi reset)(ansi attr_bold)((date now) - ('2024-02-18T20:53' | into datetime) | format duration month)s(ansi reset) now! | Next Event: ($next_events)"; print $"Hi jade, you're on HRT for (ansi reset)(ansi attr_bold)((date now) - ('2024-02-18T20:53' | into datetime) | format duration month)s(ansi reset) now! | Next Event: ($next_events)";
# print (flag $LESBIAN);
} }
def tfmt [dur: duration] { def tfmt [dur: duration] {