summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/i3/config##c.desktop,h.maus3
-rw-r--r--.config/polybar/config##c.desktop,h.maus8
-rwxr-xr-x.config/polybar/notification_pause.sh9
3 files changed, 19 insertions, 1 deletions
diff --git a/.config/i3/config##c.desktop,h.maus b/.config/i3/config##c.desktop,h.maus
index 78d847c..4a18908 100644
--- a/.config/i3/config##c.desktop,h.maus
+++ b/.config/i3/config##c.desktop,h.maus
@@ -91,6 +91,9 @@ bindsym $mod+Shift+minus move scratchpad
91# Show the first scratchpad window 91# Show the first scratchpad window
92bindsym $mod+minus scratchpad show 92bindsym $mod+minus scratchpad show
93 93
94# Pause notifications for a while
95bindcode $mod+Shift+32 exec /home/yigit/.local/bin/toggle_notifications.sh
96
94# shortcuts for frequent programs 97# shortcuts for frequent programs
95bindsym $mod+Shift+z exec zotero 98bindsym $mod+Shift+z exec zotero
96bindcode $mod+Shift+41 exec thunar # t on colemak f on turkish 99bindcode $mod+Shift+41 exec thunar # t on colemak f on turkish
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