From ca0f4b3eb74c4c632f1d547f46be5b6a57999dc0 Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Wed, 5 May 2021 19:05:30 +0200 Subject: Add amfora. Use sh test. --- .config/i3status/config | 29 +++++++++++++++-------------- .config/sway/config | 2 +- .local/bin/xdg-open | 3 +++ .zprofile | 2 +- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.config/i3status/config b/.config/i3status/config index 36c8834..f599ee6 100644 --- a/.config/i3status/config +++ b/.config/i3status/config @@ -8,8 +8,8 @@ general { output_format = "i3bar" - colors = true - interval = 5 + colors = true + interval = 5 } order += "ipv6" @@ -24,35 +24,36 @@ order += "tztime local" order += "tztime tehran" wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" } ethernet _first_ { - # if you use %speed, i3status requires root privileges - format_up = "E: %ip (%speed)" - format_down = "E: down" + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" } battery 0 { - format = "%status %percentage %remaining %emptytime" + 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/cw2015-battery/uevent" + path = "/sys/class/power_supply/BAT0/uevent" } tztime local { - format = "%Y-%m-%d %H:%M:%S" + format = "%Y-%m-%d %H:%M:%S" } tztime tehran { - format = "Teh:%H:%M" - timezone = "Asia/Tehran" + format = "Teh:%H:%M" + timezone = "Asia/Tehran" } load { - format = "%1min" + format = "%1min" } disk "/" { - format = "%avail" + format = "%avail" } diff --git a/.config/sway/config b/.config/sway/config index 8d2df6b..89c001d 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -233,7 +233,7 @@ bar { colors { statusline #ffffff background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c + inactive_workspace #32323200 #5c5c5c #32323200 } } diff --git a/.local/bin/xdg-open b/.local/bin/xdg-open index e87c35e..206fb96 100755 --- a/.local/bin/xdg-open +++ b/.local/bin/xdg-open @@ -7,6 +7,9 @@ case "${1%%:*}" in mailto) exec aerc "$1" ;; + gemini) + exec amfora "$1" + ;; *) exec /usr/bin/xdg-open "$@" ;; diff --git a/.zprofile b/.zprofile index cec8f61..a51740f 100644 --- a/.zprofile +++ b/.zprofile @@ -5,7 +5,7 @@ #emulate sh -c '. ~/.profile' # Clone oh-my-zsh if not present. -[[ ! -e .oh-my-zsh ]] && git clone https://github.com/ohmyzsh/ohmyzsh .oh-my-zsh +test ! -e ~/.oh-my-zsh && git clone https://github.com/ohmyzsh/ohmyzsh .oh-my-zsh # Run and configure ssh-agent if ! pgrep -u "$USER" ssh-agent > /dev/null; then -- cgit v1.2.3