Displaying 1 to 19 from 19 results

trash - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.

trash-cli - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to rm which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm.

mpris-service - Node

  •    Javascript

Node.js implementation for the MPRIS D-Bus Interface Specification to create a mediaplayer service.Examples are available in examples/.




xdg-basedir - Get XDG Base Directory paths

  •    Javascript

The properties .data, .config, .cache, .runtime will return null in the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is to fall back to a temp directory.Directory for user specific data files.

find-config - Like findup-sync, but 2-4x faster and supports XDG-style `.config/` directories.

  •    Javascript

Finds the first matching config file, if any, in the current directory, nearest ancestor, or user's home directory. Supports finding files within a subdirectory of an ancestor directory. Configurable with defaults set to support the XDG Base Directory Specification for configuration files.Because this module is intended to find consistently named configuration files, it is case-sensitive and does not support globs. If you need a more generic solution, see findup-sync or look-up.

brightness - Change screen brightness

  •    Javascript

Returns a Promise with the current brightness level.Set brightness level.


notify-rust - ☝️Send Desktop Notifications on linux and bsd

  •    Rust

Shows desktop notifications. This implementation does not rely on libnotify, as it is using dbus-rs. Basic notification features are supported, more sophisticated functionality will follow. The API shown below should be stable. Please see the documentation for current examples.

scala-xdg - freedesktop.org standards for Scala

  •    Scala

Libraries for Scala to access the standards defined by freedesktop.org (formerly X Desktop Group). The basedir sub-project contains an implementation of the Base Directory Specification.

dotfiles - mac OS, Arch Linux, and Debian/Ubuntu

  •    Vim

For mac, see full install details in mac/README.md. After symlinking, ~/.dotfiles/bootstrap/cleanup can detect and move pre-existing dotfiles that might conflict with these.

xdg-trashdir - Get the correct trash path on Linux

  •    Javascript

Returns a Promise that resolves the path to the trash. Get the trash path for a specific file.

dotfiles - Personal configuration for zsh, vim, tmux and other tools

  •    Shell

This repository contains tools and configs I use in shell. No graphical stuff, usable both on server and personal workstation. Battle tested on macOS and various Linux distributions including Debian, Ubuntu, CentOS and even WSL. I'm a big fan of XDG Base Directory Specification and organize my dotfiles in a way that they don't clutter the $HOME. I was able to reduce files required to be in $HOME to single .zshenv, everything else goes under standard XDG paths or launched via aliases. Additionally if you have root permissions, you can install dotfiles with zero home presence.

xdg - FreeDesktop.org (xdg) Specs implemented in Go

  •    Go

Package xdg provides access to the FreeDesktop.org (XDG) specs. Tests can be run with go test.

mimemagic - Powerful and versatile MIME sniffing package using pre-compiled glob patterns, magic number signatures, XML document namespaces, and tree magic for mounted volumes, generated from the XDG shared-mime-info database

  •    Go

Powerful and versatile MIME sniffing package using pre-compiled glob patterns, magic number signatures, xml document namespaces, and tree magic for mounted volumes, generated from the XDG shared-mime-info database. See the Godoc reference, and cmd/mimemagic for an example implementation.

xdg - XDG Base Directory Specification for Python

  •    Python

xdg is a tiny Python module which provides the variables defined by the XDG Base Directory Specification, to save you from duplicating the same snippet of logic in every Python utility you write that deals with user cache, configuration, or data files. It has no external dependencies. Alternatively, since xdg is only a single file you may prefer to just copy xdg.py from the source distribution into your project.

go-xdgbasedir - Package xdgbasedir implements a freedesktop XDG Base Directory Specification for Go

  •    Go

Package xdgbasedir implements a freedesktop XDG Base Directory Specification for Go. XDG Base Directory Specification is mainly for GNU/Linux. It does not mention which directory to use with macOS(darwin) or windows. So, We referred to the qt standard paths document for the corresponding directory.

xdg - Go implementation of the XDG Base Directory Specification

  •    Go

Provides an implementation of the XDG Base Directory Specification. The specification defines a set of standard paths for storing application files including data and configuration files. For portability and flexibility reasons, applications should use the XDG defined locations instead of hardcoding paths. Copyright (c) 2014 Adrian-George Bostan.