summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-05-05 19:05:30 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-05-05 19:06:19 +0200
commitca0f4b3eb74c4c632f1d547f46be5b6a57999dc0 (patch)
tree0f5e1fa50a60ce4de29063463158eb601c6bd719
parent73c79bbfb7fd76ab319940ba507cca5381d2ffa2 (diff)
Add amfora. Use sh test.
-rw-r--r--.config/i3status/config29
-rw-r--r--.config/sway/config2
-rwxr-xr-x.local/bin/xdg-open3
-rw-r--r--.zprofile2
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