termfilechooser

This commit is contained in:
Miguel Palhas
2026-02-17 20:35:11 +00:00
parent abdf71f7dc
commit a5089b77e9
12 changed files with 63 additions and 230 deletions
+1
View File
@@ -19,6 +19,7 @@
./claude
./opencode
./yazi
./termfilechooser.nix
];
programs = {
+7 -3
View File
@@ -20,9 +20,9 @@ in
hyprcursor
pamixer
hyprshot
satty
playerctl
hyprsunset
xdg-desktop-portal-termfilechooser
libnotify
cliphist
wl-screenrec
@@ -151,11 +151,15 @@ in
];
windowrule = [
# satty
"float on, match:class com.gabm.satty"
# imv
"float on, match:class imv"
"move cursor -50% -50%, match:class imv"
"float on, match:title termfilechooser"
"size 1200 800, match:title termfilechooser"
"move center, match:title termfilechooser"
# bluetooth
@@ -208,8 +212,8 @@ in
# "$mod, d, exec, nerd-dictation-toggle"
# printscreen
", Print, exec, hyprshot -m region --output-folder ~/downloads/screenshots"
"SHIFT, Print, exec, hyprshot -m window --output-folder ~/screenshots"
", Print, exec, hyprshot -m region --raw | satty --filename - --output-filename ~/downloads/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png"
"SHIFT, Print, exec, hyprshot -m window --raw | satty --filename - --output-filename ~/downloads/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png"
# move focus with mod + arrows
"$mod, h, movefocus, l"
@@ -1,46 +0,0 @@
{
inputs,
pkgs,
...
}:
{
home.packages = with pkgs; [ upower ];
programs.hyprpanel = {
enable = true;
settings = {
bar.layouts = {
"0" = {
left = [
"dashboard"
"workspaces"
];
middle = [ "media" ];
right = [
"volume"
"network"
"bluetooth"
"systray"
"clock"
"notifications"
];
};
"*" = {
left = [ ];
middle = [ ];
right = [ ];
};
};
theme.bar.transparent = true;
theme.font.size = "18px";
menus = {
dashboard = {
directories.enable = false;
stats.enable_gpu = true;
};
};
};
};
}
+16
View File
@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
xdg.configFile."xdg-desktop-portal/hyprland-portals.conf".text = ''
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=termfilechooser
'';
xdg.configFile."xdg-desktop-portal-termfilechooser/config".text = ''
[filechooser]
cmd=${pkgs.writeShellScript "termfilechooser-yazi" ''
exec kitty -T termfilechooser yazi "$@"
''}
default_dir=$HOME
'';
}