mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 03:20:26 +10:00
Adding notification widget to doom-one xmobar.
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
[xin_0]
|
[xin_0]
|
||||||
file=/home/dt/wallpapers/0272.jpg
|
file=/home/dt/wallpapers/0121.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_1]
|
[xin_1]
|
||||||
file=/home/dt/wallpapers/0272.jpg
|
file=/home/dt/wallpapers/0121.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_2]
|
[xin_2]
|
||||||
file=/home/dt/wallpapers/0272.jpg
|
file=/home/dt/wallpapers/0121.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[geometry]
|
[geometry]
|
||||||
posx=1936
|
posx=1936
|
||||||
posy=40
|
posy=40
|
||||||
sizex=1884
|
sizex=1331
|
||||||
sizey=1020
|
sizey=1020
|
||||||
|
|
||||||
[nitrogen]
|
[nitrogen]
|
||||||
|
|||||||
@@ -31,8 +31,12 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h
|
|||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = ".xmonad/xpm/" -- default: "."
|
, iconRoot = ".xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, 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.
|
-- 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)
|
-- Get kernel version (script found in .local/bin)
|
||||||
, Run Com ".local/bin/kernel" [] "kernel" 36000
|
, Run Com ".local/bin/kernel" [] "kernel" 36000
|
||||||
-- Cpu usage in percent
|
-- Cpu usage in percent
|
||||||
@@ -62,5 +66,5 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h
|
|||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, 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%"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user