summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/nvim/init.vim3
-rw-r--r--.config/polybar/config##c.desktop,h.maus8
-rwxr-xr-x.config/polybar/notification_pause.sh9
-rw-r--r--.zshrc12
4 files changed, 31 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 131a6ab..1017e73 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -557,3 +557,6 @@ let g:beacon_shrink = 0
557highlight Beacon guibg=red ctermbg=15 557highlight Beacon guibg=red ctermbg=15
558" }}} beacon " 558" }}} beacon "
559 559
560let g:tq_enabled_backends = ["mthesaur_txt"]
561let g:tq_truncation_on_relavance = 0
562
diff --git a/.config/polybar/config##c.desktop,h.maus b/.config/polybar/config##c.desktop,h.maus
index a489840..e78d49d 100644
--- a/.config/polybar/config##c.desktop,h.maus
+++ b/.config/polybar/config##c.desktop,h.maus
@@ -52,10 +52,11 @@ font-0 = scientifica:antialias=false;1
52font-1 = Lato:size=10;1 52font-1 = Lato:size=10;1
53font-2 = Raleway:size=10;1 53font-2 = Raleway:size=10;1
54font-3 = FuraCode Nerd Font:size=12;2 54font-3 = FuraCode Nerd Font:size=12;2
55font-4 = Noto Color Emoji:scale=10;2
55 56
56modules-left = i3 pulseaudio-control spotify mpd 57modules-left = i3 pulseaudio-control spotify mpd
57modules-center = xwindow 58modules-center = xwindow
58modules-right = cpu focus date time xkeyboard 59modules-right = notification_pause cpu focus date time xkeyboard
59 60
60tray-position = right 61tray-position = right
61 62
@@ -68,6 +69,11 @@ exec = ~/.config/polybar/focus
68double-click-left = exec ~/.config/polybar/stop & 69double-click-left = exec ~/.config/polybar/stop &
69interval = 10 70interval = 10
70 71
72[module/notification_pause]
73type = custom/script
74exec = ~/.config/polybar/notification_pause.sh
75interval = 10
76
71[module/newyork] 77[module/newyork]
72type = custom/script 78type = custom/script
73exec = ~/.config/polybar/new_york.sh 79exec = ~/.config/polybar/new_york.sh
diff --git a/.config/polybar/notification_pause.sh b/.config/polybar/notification_pause.sh
new file mode 100755
index 0000000..7e59453
--- /dev/null
+++ b/.config/polybar/notification_pause.sh
@@ -0,0 +1,9 @@
1#!/usr/bin/env bash
2
3TOGGLE=$HOME/.local/share/.pause_notifications
4
5if [ ! -e $TOGGLE ]; then
6 echo
7else
8 printf "🔕"
9fi
diff --git a/.zshrc b/.zshrc
index 689539e..1256f2a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -190,3 +190,15 @@ fi
190 190
191export WECHALLUSER="drocan" 191export WECHALLUSER="drocan"
192export WECHALLTOKEN="35624-0D38B-A2F16-A98B0-5963D-6DF19" 192export WECHALLTOKEN="35624-0D38B-A2F16-A98B0-5963D-6DF19"
193
194ledgerrot() {
195 day=$(tail -n4 ~/nextcloud/ledger.ledger | grep -Eo '[0-9]{4}-[0-9]{2}-[0-9]{2}')
196 d1=$(date -d "now" +%s)
197 d2=$(date -d "$day" +%s)
198 days=$(( (d1 - d2) / 86400 ))
199 if [ "$days" -eq "0" ]; then
200 echo "you good";
201 else
202 echo "$days days";
203 fi
204}