(use-package evil
:init
(setq evil-want-keybinding nil) ;
(setq evil-want-integration t)
:config
(define-key evil-normal-state-map (kbd "C-h") 'evil-window-left)
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
#!/usr/bin/env python | |
# coding=UTF-8 | |
import math, subprocess, sys | |
batt_info = subprocess.check_output('acpi').split(b',') | |
batt_info = [l.strip() for l in batt_info] | |
percnt = int(batt_info[1][:-1]) | |
total_slots, slots = 10, [] | |
if batt_info[0].split()[-1] == 'Charging': |
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
#!/usr/bin/env python3 | |
# -*- coding=utf-8 -*- | |
""" This script requires acpi to be installed """ | |
import math | |
import subprocess | |
import sys | |
# Output | |
batt_info = subprocess.check_output("acpi").split(b',') | |
batt_info = [l.strip() for l in batt_info] |
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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
(package-initialize) | |
(require 'use-package) | |
(setq custom-file (expand-file-name "emacs-custom.el" user-emacs-directory)) | |
(load custom-file) |
OlderNewer