aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/dunst/dunstrc18
-rw-r--r--.config/zsh/knight2
-rwxr-xr-x.local/bin/bar19
-rwxr-xr-x.local/bin/clock2
-rwxr-xr-x.local/bin/sysmon21
-rwxr-xr-x.local/bin/volume9
6 files changed, 58 insertions, 13 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index 5f0b827..01f3dc0 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -41,7 +41,7 @@
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
- transparency = 0
+ transparency = 10
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
@@ -61,10 +61,10 @@
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
- frame_width = 1
+ frame_width = 3
# Defines color of the frame around the notification window.
- frame_color = "#547f62""
+ frame_color = "#b1628688"
# Define a color for the separator.
# possible values are:
@@ -213,7 +213,7 @@
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
- corner_radius = 0
+ corner_radius = 15
### Legacy
@@ -275,21 +275,21 @@
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
- background = "#191919"
- foreground = "#999999"
+ background = "#28282888"
+ foreground = "#ebdbb2"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
- background = "#191919"
- foreground = "#ffffff"
+ background = "#28282888"
+ foreground = "#ebdbb2"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
- background = "#fd4d4d"
+ background = "#cc241d88"
foreground = "#ffffff"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
diff --git a/.config/zsh/knight b/.config/zsh/knight
index 2f30275..84f4ece 100644
--- a/.config/zsh/knight
+++ b/.config/zsh/knight
@@ -5,7 +5,7 @@ prompt_git_status() {
sign="\ue725";
[[ -n "$(git status -s)" ]] && sign="\ufc1a";
git_branch=$(git branch);
- echo "%F{5}%f%B%F{0}%K{5} ${sign} ${git_branch##*\* }%f%k%b";
+ echo "%F{5}%f%F{0}%K{5}${sign} ${git_branch##*\* }%k%F{5}%k";
fi;
}
diff --git a/.local/bin/bar b/.local/bin/bar
new file mode 100755
index 0000000..39267a6
--- /dev/null
+++ b/.local/bin/bar
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+STEPS=10
+
+repeat() {
+ printf %${2}s | sed -e "s/ /$1/g"
+}
+
+
+usage=$(expr $1 \* $STEPS / 100)
+
+if [ "$usage" -gt "$STEPS" ]; then
+ usage=$STEPS
+fi
+
+printf ""
+repeat "󰝤" "$usage"
+repeat "󰧟" "$(expr $STEPS - $usage)"
+printf "\n"
diff --git a/.local/bin/clock b/.local/bin/clock
index a4eb334..14dfd5a 100755
--- a/.local/bin/clock
+++ b/.local/bin/clock
@@ -8,4 +8,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-date "+%H:%M %d %b %Y"
+date "+%H:%M %d.%m.%g"
diff --git a/.local/bin/sysmon b/.local/bin/sysmon
new file mode 100755
index 0000000..d04b5a3
--- /dev/null
+++ b/.local/bin/sysmon
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+cpu_usage() {
+ first=$(grep 'cpu ' /proc/stat)
+ sleep 0.05
+ second=$(grep 'cpu ' /proc/stat)
+ usage=$(printf "%s\n%s\n" "$first" "$second" | awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1); }' | sed -e 's/\..*//g')
+
+ printf "󰇅 "
+ bar "$usage"
+}
+
+ram_usage() {
+ printf " "
+ usage=$(free | awk '/Mem/ { print $3 / $2 * 100 }' | sed -e 's/\..*//g')
+ bar "$usage"
+}
+
+
+ram_usage
+cpu_usage
diff --git a/.local/bin/volume b/.local/bin/volume
index 6acc16c..6e8c689 100755
--- a/.local/bin/volume
+++ b/.local/bin/volume
@@ -13,8 +13,13 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-[ $(pamixer --get-mute) = true ] && echo 🔇 && exit
+[ $(pamixer --get-mute) = true ] && echo 󰓄 && exit
vol="$(pamixer --sink 0 --get-volume)"
-echo "$vol%"
+if [ "$vol" = "0" ]; then
+ echo 󰓄
+else
+ printf "󰓃 "
+ bar "$vol"
+fi