Compare commits

...

2 commits

Author SHA1 Message Date
5175e934a7 filetypes: firefox default browser 2024-10-16 17:33:24 -07:00
431992eff7 xrootdatetime: better error handling 2024-10-16 17:28:51 -07:00
2 changed files with 6 additions and 4 deletions

View file

@ -8,7 +8,7 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
xdg.mimeApps = xdg.mimeApps =
let let
browser = "brave-browser.desktop"; browser = "firefox.desktop";
mimeAppsFor = mimeAppsFor =
value: list: value: list:
@ -28,10 +28,13 @@ in {
"application/xhtml+xml" "application/xhtml+xml"
"text/html" "text/html"
"x-scheme-handler/about" "x-scheme-handler/about"
"x-scheme-handler/chrome"
"x-scheme-handler/http" "x-scheme-handler/http"
"x-scheme-handler/https" "x-scheme-handler/https"
]) ])
(mimeAppsFor "brave-browser.desktop" [
"x-scheme-handler/chrome"
])
]; ];
}; };

View file

@ -46,8 +46,7 @@ in
systemd.user.services.xrootdatetime = { systemd.user.services.xrootdatetime = {
script = '' script = ''
while true; do while true; do
micMuted=$(${getExe pkgs.pamixer} --default-source --get-mute) if [[ "$(${getExe pkgs.pamixer} --default-source --get-mute)" == "true" ]]; then
if [[ "$micMuted" == "true" ]]; then
mutedString="Mic Muted " mutedString="Mic Muted "
else else
mutedString="" mutedString=""