trying filechooser nonsense again

This commit is contained in:
Matt Nish-Lapidus 2025-06-29 20:58:23 -04:00
parent e113d9775d
commit 3efe104240
7 changed files with 155 additions and 39 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, nix-config, pkgs-local, lib, ... }:
{ pkgs, nix-config, inputs, lib, ... }:
{
@ -211,6 +211,14 @@
};
services = {
xdg-desktop-portal-termfilepickers = {
enable = true;
package = pkgs.xdg-desktop-portal-termfilepickers;
desktopEnvironments = [ "common" "niri" ];
config = {
terminal_command = lib.getExe pkgs.wezterm;
};
};
flatpak = {
enable = true;
packages = [
@ -267,24 +275,18 @@
# };
# };
# xdg.portal = {
# enable = true;
# configPackages = [ pkgs.niri-unstable ];
# extraPortals = with pkgs; [
# xdg-desktop-portal-gnome
# xdg-desktop-portal-gtk
# xdg-desktop-portal
# xdg-desktop-portal-wlr
# gnome-keyring
# xdg-desktop-portal-termfilechooser
# ];
# config = {
# common = {
# default = [ "gtk" ];
# # "org.freedesktop.impl.portal.FileChooser" = "termfilechooser";
# };
# };
# };
xdg.portal = {
enable = true;
configPackages = [ pkgs.niri-unstable ];
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
xdg-desktop-portal
xdg-desktop-portal-wlr
gnome-keyring
xdg-desktop-portal-termfilepickers
];
};
# home.sessionVariables.TERMCMD = "wezterm --class=file_chooser";

View file

@ -2,13 +2,18 @@
{
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
extraArgs = [ "-w" ];
events = [
{
event = "lock";
command = "/home/emenel/.local/bin/session-lock";
}
{
event = "before-sleep";
command = "${pkgs.systemd}/bin/loginctl lock-session";
}
{
event = "after-resume";
command = "/home/emenel/.local/bin/on-unlock";
@ -19,6 +24,7 @@
{
timeout = 60;
command = "/home/emenel/.local/bin/dim-all-monitors";
resumeCommand = "/home/emenel/.local/bin/on-unlock";
}
# battery timers
@ -61,7 +67,7 @@
color = "000000";
font-size = 32;
indicator-idle-visible = true;
indicator-radius = 250;
indicator-radius = 150;
line-color = "cccccc";
show-failed-attempts = true;
};