~mehdix/dotfiles

1f2950e85ba8b1bf6dd7921eff76a0cef7b8b54f — Mehdi Sadeghi 1 year, 7 months ago f875989
Make i3status battery view more generic (thinkpad)
4 files changed, 14 insertions(+), 10 deletions(-)

M .config/i3status/config
M .config/sway/config
M .config/sway/xdpw -rwxr-xr-x => -rw-r--r--
M .env
M .config/i3status/config => .config/i3status/config +10 -6
@@ 13,17 13,17 @@ general {
}

order += "ipv6"
order += "memory"
order += "disk /"
order += "wireless _first_"
#order += "ethernet _first_"
order += "battery 0"
order += "volume master"
order += "memory"
order += "load"
#order += "tztime local"
order += "tztime holder__jdate"
order += "tztime tehran"
order += "tztime vancouver"
order += "battery 0"

wireless _first_ {
	format_up = "W: (%quality at %essid) %ip"


@@ 37,10 37,14 @@ ethernet _first_ {
}

battery 0 {
	format = "%status %percentage %remaining %emptytime"
	#path = "/sys/class/power_supply/rk-bat/uevent"
	path = "/sys/class/power_supply/cw2015-battery/uevent"
	#path = "/sys/class/power_supply/BAT0/uevent"
        format = "%status %percentage %remaining %emptytime"
        format_down = "No battery"
        status_chr = "⚡ CHR"
        status_bat = "🔋 BAT"
        status_unk = "? UNK"
        status_full = "☻ FULL"
        low_threshold = 10
        path = "/sys/class/power_supply/BAT%d/uevent"
}

tztime local {

M .config/sway/config => .config/sway/config +1 -1
@@ 4,7 4,7 @@ set $down j
set $up k
set $right l
set $mod Mod4
set $term foot
set $term foot --term xterm-256color

# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.

M .config/sway/xdpw => .config/sway/xdpw +0 -0
M .env => .env +3 -3
@@ 10,13 10,13 @@ HISTFILE=.sh_history
# Tell Readline to use vi-style keybindings
#set -o vi

if [ -z "${SSH_AGENT_PID}" ]; then
#if [ -z "${SSH_AGENT_PID}" ]; then
	if ! [ -e /tmp/ssh-agent-$USER ]
	then
		ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER
	fi
	. /tmp/ssh-agent-$USER >/dev/null
fi
#fi

# Aliases
# `githome` alias is a trick to avoid having git prompt when working


@@ 53,7 53,7 @@ GOPATH="$HOME/.local/share/go"
PATH=$GOPATH/bin:$PATH
export PATH
export LANGUAGE=en
BROWSER=w3m
export BROWSER=w3m

# Load nix if available
[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ] \