diff options
Diffstat (limited to 'modules/home')
-rw-r--r-- | modules/home/default.nix | 1 | ||||
-rw-r--r-- | modules/home/pcmanfm.nix | 6 | ||||
-rw-r--r-- | modules/home/resources/pcmanfm/root.desktop | 11 |
3 files changed, 18 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index e60bbff..a883234 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -9,6 +9,7 @@ ./firefox.nix ./git.nix ./initial-home-setup.nix + ./pcmanfm.nix # TODO mk name changeable & doesn't seem to work right now ./theme.nix ]; diff --git a/modules/home/pcmanfm.nix b/modules/home/pcmanfm.nix new file mode 100644 index 0000000..3c70521 --- /dev/null +++ b/modules/home/pcmanfm.nix @@ -0,0 +1,6 @@ +{ + home.file.pcmanfm-root = { + target = ".local/share/file-manager/actions/root.desktop"; + source = ./resources/pcmanfm/root.desktop; + }; +} diff --git a/modules/home/resources/pcmanfm/root.desktop b/modules/home/resources/pcmanfm/root.desktop new file mode 100644 index 0000000..4b4d263 --- /dev/null +++ b/modules/home/resources/pcmanfm/root.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Action +Tooltip=Open Directory As Root +Name=Open Directory As Root +Profiles=profile-zero; +Icon=gtk-dialog-authentication + +[X-Action-Profile profile-zero] +MimeTypes=inode/directory; +Exec=/home/timmy/.local/bin/x11/xsudo /usr/bin/pcmanfm %u +Name=Default profile |