diff options
| author | Mehdi Sadeghi <mehdi@mehdix.org> | 2023-02-08 11:38:25 +0100 |
|---|---|---|
| committer | Mehdi Sadeghi <mehdi@mehdix.org> | 2023-02-08 11:38:25 +0100 |
| commit | 1f2950e85ba8b1bf6dd7921eff76a0cef7b8b54f (patch) | |
| tree | 2314465ebe28c8ddfaf947f8dd16a342ac666769 | |
| parent | f8759897293de64c101a69bec3af2705b7c84902 (diff) | |
Make i3status battery view more generic (thinkpad)
| -rw-r--r-- | .config/i3status/config | 16 | ||||
| -rw-r--r-- | .config/sway/config | 2 | ||||
| -rw-r--r--[-rwxr-xr-x] | .config/sway/xdpw | 0 | ||||
| -rw-r--r-- | .env | 6 |
4 files changed, 14 insertions, 10 deletions
diff --git a/.config/i3status/config b/.config/i3status/config index b5f64fb..3c050d3 100644 --- a/.config/i3status/config +++ b/.config/i3status/config @@ -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 { diff --git a/.config/sway/config b/.config/sway/config index 060895e..4cd1a74 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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. diff --git a/.config/sway/xdpw b/.config/sway/xdpw index 81fc8ca..81fc8ca 100755..100644 --- a/.config/sway/xdpw +++ b/.config/sway/xdpw @@ -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 ] \ |
