This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dbus | |
import json | |
# https://upower.freedesktop.org/docs/Device.html | |
PROPERTIES_MAP = { | |
"Type": { | |
0: "Unknown", | |
1: "Line Power", | |
2: "Battery", | |
3: "Ups", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! @python3@/bin/python3 -B | |
import argparse | |
import os | |
import os.path | |
import sys | |
import errno | |
import subprocess | |
import glob | |
import datetime | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ... }: | |
let | |
buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix; | |
in { | |
environment.variables.EDITOR = "nvim"; |