-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmobarrc-waktuSolat.hs
46 lines (42 loc) · 2.68 KB
/
xmobarrc-waktuSolat.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--
Config {
bgColor = "#181715"
, fgColor = "#f3f3f1"
, font = "Monospace Bold 9" -- Refer https://codeberg.org/xmobar/xmobar/src/branch/master/doc/quick-start.org#text-mode
--, position = Top
--, textOffset = 13
, border = TopB
, borderColor = "#181715"
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
--, template = " %WaktuSolatPutrajaya% <fc=#ff9933,#663300>%mpipe%</fc> "
--, template = "%WaktuSolat% <fc=#ff9933,#663300>%mpipe%</fc> "
, template = "%WaktuSolat% "
--, template = "%WaktuSolatPutrajaya% <fc=#ff9933,#663300>%mpipe%</fc> %_XMONAD_TRAYPAD%" -- XXX: TEST
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
, hideOnStart = False -- start with window unmapped (hidden)
, allDesktops = True -- show on all desktops
, overrideRedirect = True -- set the Override Redirect flag (Xlib)
, pickBroadest = False -- choose widest display (multi-monitor)
, persistent = True -- enable/disable hiding (True = disabled)
-- plugins
--, commands = [ Run CommandReader "~/.xmonad/waktusolat-putrajaya-hbar-v3" "WaktuSolatPutrajaya",
, commands = [
-- ------------------------------------------------------------------------------
-- TODO: Use XMonadLog instead of StdinReader:
-- XMonadLog is a more efficient way to communicate with xmobar, especially for complex configurations.
-- It avoids the potential issues associated with pipes.
-- ------------------------------------------------------------------------------
-- Run CommandReader "~/.xmonad/waktusolat-hbar SGR01" "WaktuSolat",
-- Run CommandReader "~/.xmonad/bin/waktusolat-hbar SGR01" "WaktuSolat"
-- Run CommandReader "echo Testing..." "WaktuSolat"
-- Run PipeReader "Getting prayer times ...:/tmp/${USER}-prayer_reminder_fifo" "WaktuSolat",
-- Run CommandReader "cat /tmp/${USER}-prayer_times_file" "WaktuSolat"
--Run CommandReader "cat /tmp/${USER}-prayer_reminder_file" "WaktuSolat"
Run CommandReader "${HOME}/.xmonad/bin/loop-cat-prayer_reminder_file.sh" "WaktuSolat"
-- Run MarqueePipeReader "/tmp/${USER}-zikirpipe" (30, 3, " + ") "mpipe",
-- Run MarqueePipeReader "/tmp/${USER}-zikirpipe" (20, 3, " + ") "mpipe",
-- Run XPropertyLog "_XMONAD_TRAYPAD" -- XXX: TEST
]
}