summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-10 15:05:50 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-10 15:05:50 +0530
commit671d0d20403280aab971185493f50d393ec838f6 (patch)
tree02ffeec5dd18c7c741fa1813b00fc90d2f36971e /config
parent9c18e7daf2e2a7f2ec9afec1ed08e7d15ba3be4d (diff)
update
Diffstat (limited to 'config')
-rwxr-xr-xconfig/.bar.sh39
-rw-r--r--config/dotfiles.nix1
2 files changed, 0 insertions, 40 deletions
diff --git a/config/.bar.sh b/config/.bar.sh
deleted file mode 100755
index 2b23972..0000000
--- a/config/.bar.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-wifi() {
- iwgetid -r
-}
-
-battery() {
- c=$(cat /sys/class/power_supply/BAT1/capacity)
-
- if [[ $c > 85 ]]; then
- echo " $c"
- elif [[ $c > 70 ]]; then
- echo " $c"
- elif [[ $c > 50 ]]; then
- echo " $c"
- elif [[ $c > 30 ]]; then
- echo " $c"
- else
- echo " $c"
- fi
-}
-
-charging() {
- if [[ "$(cat /sys/class/power_supply/BAT1/status)" == "Charging" ]]; then
- echo "+"
- fi
-}
-
-calendar() {
- date +'%a, %d %b %Y |  %H:%M'
-}
-
-volume() {
- pamixer --get-volume
-}
-
-while [[ true ]]; do
- dwlb -status all "| ^lm(alacritty -e nmtui-connect) $(wifi)^lm() |  $(volume)% | $(battery)%$(charging) |  $(calendar) | λ"
- sleep 1
-done
diff --git a/config/dotfiles.nix b/config/dotfiles.nix
index 72564d2..1a89f9b 100644
--- a/config/dotfiles.nix
+++ b/config/dotfiles.nix
@@ -4,6 +4,5 @@
home.file = {
".tmux.conf".source = ./.tmux.conf;
".fdignore".source = ./.fdignore;
- ".bar.sh".source = ./.bar.sh;
};
}