Adding notification widget to doom-one xmobar.

This commit is contained in:
Derek Taylor 2023-01-01 12:46:05 -06:00
parent e0277a1031
commit ce12f85eaa
3 changed files with 10 additions and 6 deletions

View File

@ -1,14 +1,14 @@
[xin_0]
file=/home/dt/wallpapers/0272.jpg
file=/home/dt/wallpapers/0121.jpg
mode=0
bgcolor=#000000
[xin_1]
file=/home/dt/wallpapers/0272.jpg
file=/home/dt/wallpapers/0121.jpg
mode=0
bgcolor=#000000
[xin_2]
file=/home/dt/wallpapers/0272.jpg
file=/home/dt/wallpapers/0121.jpg
mode=0
bgcolor=#000000

View File

@ -1,7 +1,7 @@
[geometry]
posx=1936
posy=40
sizex=1884
sizex=1331
sizey=1020
[nitrogen]

View File

@ -31,8 +31,12 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h
, persistent = True
, iconRoot = ".xmonad/xpm/" -- default: "."
, commands = [
-- Echos a "messages" icon in front of the notify-log output.
Run Com "echo" ["<fn=3>\xf099</fn>"] "messages" 3600
-- View notify.log file (~/.log/notify-log/notify.log)
, Run Com "echo" ["View Notifications"] "notify-log" 3600
-- Echos a "penguin" icon in front of the kernel output.
Run Com "echo" ["<fn=3>\xf17c</fn>"] "penguin" 3600
, Run Com "echo" ["<fn=3>\xf17c</fn>"] "penguin" 3600
-- Get kernel version (script found in .local/bin)
, Run Com ".local/bin/kernel" [] "kernel" 36000
-- Cpu usage in percent
@ -62,5 +66,5 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h
]
, sepChar = "%"
, alignSep = "}{"
, template = " %UnsafeStdinReader% }{ <box type=Bottom width=2 mb=2 color=#51afef><fc=#51afef>%penguin% %kernel%</fc></box> <box type=Bottom width=2 mb=2 color=#ecbe7b><fc=#ecbe7b><action=`alacritty -e htop`>%cpu%</action></fc></box> <box type=Bottom width=2 mb=2 color=#ff6c6b><fc=#ff6c6b><action=`alacritty -e htop`>%memory%</action></fc></box> <box type=Bottom width=2 mb=2 color=#a9a1e1><fc=#a9a1e1>%disku%</fc></box> <box type=Bottom width=2 mb=2 color=#98be65><fc=#98be65>%uparrow% %uptime%</fc></box> <box type=Bottom width=2 mb=2 color=#c678dd><fc=#c678dd>%bell% <action=`alacritty -e sudo pacman -Syu`>%pacupdate%</action></fc></box> <box type=Bottom width=2 mb=2 color=#da8548><fc=#da8548>%baticon% %battery%</fc></box> <box type=Bottom width=2 mb=2 color=#46d9ff><fc=#46d9ff><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc></box> %trayerpad%"
, template = " %UnsafeStdinReader% }{ <box type=Bottom width=2 mb=2 color=#98be65><fc=#98be65>%messages% <action=`alacritty -e nvim .log/notify-log/notify.log`>%notify-log%</action></fc></box> <box type=Bottom width=2 mb=2 color=#51afef><fc=#51afef>%penguin% %kernel%</fc></box> <box type=Bottom width=2 mb=2 color=#ecbe7b><fc=#ecbe7b><action=`alacritty -e htop`>%cpu%</action></fc></box> <box type=Bottom width=2 mb=2 color=#ff6c6b><fc=#ff6c6b><action=`alacritty -e htop`>%memory%</action></fc></box> <box type=Bottom width=2 mb=2 color=#a9a1e1><fc=#a9a1e1>%disku%</fc></box> <box type=Bottom width=2 mb=2 color=#98be65><fc=#98be65>%uparrow% %uptime%</fc></box> <box type=Bottom width=2 mb=2 color=#c678dd><fc=#c678dd>%bell% <action=`alacritty -e sudo pacman -Syu`>%pacupdate%</action></fc></box> <box type=Bottom width=2 mb=2 color=#da8548><fc=#da8548>%baticon% %battery%</fc></box> <box type=Bottom width=2 mb=2 color=#46d9ff><fc=#46d9ff><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc></box> %trayerpad%"
}