Added 'Playing' Section on Xmobar
This commit is contained in:
parent
b31ccfa633
commit
cde7c7d10f
2 changed files with 10 additions and 4 deletions
|
@ -28,6 +28,7 @@ Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
|
||||||
, commands = [
|
, commands = [
|
||||||
Run UnsafeXPropertyLog "_XMONAD_LOG_0"
|
Run UnsafeXPropertyLog "_XMONAD_LOG_0"
|
||||||
, Run Date "%a, %d %b <fn=1></fn> %H:%M:%S" "date" 10
|
, Run Date "%a, %d %b <fn=1></fn> %H:%M:%S" "date" 10
|
||||||
|
, Run Mpris2 "playerctld" ["-t", "<fc=#AAC0F0><artist> - <title></fc>"] 10
|
||||||
, Run Memory ["-t","Mem: <fc=#AAC0F0><usedratio></fc>%"] 10
|
, Run Memory ["-t","Mem: <fc=#AAC0F0><usedratio></fc>%"] 10
|
||||||
, Run Com "/home/afonso/.config/xmobar/scripts/cpu_temp.sh" [] "cpu" 10
|
, Run Com "/home/afonso/.config/xmobar/scripts/cpu_temp.sh" [] "cpu" 10
|
||||||
, Run Com "/home/afonso/.config/xmobar/scripts/gpu_util.sh" [] "gpu" 10
|
, Run Com "/home/afonso/.config/xmobar/scripts/gpu_util.sh" [] "gpu" 10
|
||||||
|
@ -45,6 +46,9 @@ Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
|
||||||
\}\
|
\}\
|
||||||
\%date%\
|
\%date%\
|
||||||
\{\
|
\{\
|
||||||
|
\Playing: %mpris2%\
|
||||||
|
\ \
|
||||||
|
\|\
|
||||||
\ \
|
\ \
|
||||||
\%memory%\
|
\%memory%\
|
||||||
\ \
|
\ \
|
||||||
|
|
|
@ -235,11 +235,9 @@ Percent of screen to increment by when resizing panes
|
||||||
\subsubsection{Startup Hook}
|
\subsubsection{Startup Hook}
|
||||||
\begin{code}
|
\begin{code}
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
spawn "setxkbmap -layout us,pt"
|
|
||||||
spawn "setxkbmap -option grp:win_space_toggle"
|
|
||||||
spawn "setxkbmap -option caps:escape"
|
|
||||||
spawnOnce "pasystray"
|
spawnOnce "pasystray"
|
||||||
spawnOnce "nitrogen --restore &"
|
spawnOnce "nitrogen --restore &"
|
||||||
|
spawnOnce "playerctld"
|
||||||
spawnOnce "picom &"
|
spawnOnce "picom &"
|
||||||
spawnOnce "optimus-manager-qt"
|
spawnOnce "optimus-manager-qt"
|
||||||
setWMName "LG3D"
|
setWMName "LG3D"
|
||||||
|
@ -250,6 +248,10 @@ Percent of screen to increment by when resizing panes
|
||||||
spawn ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --widthtype request --padding 7 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 26 --distance 5 &")
|
spawn ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --widthtype request --padding 7 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 26 --distance 5 &")
|
||||||
spawnOn "web" myWebBrowser
|
spawnOn "web" myWebBrowser
|
||||||
spawnOn "main" myTerminal
|
spawnOn "main" myTerminal
|
||||||
|
spawn "setxkbmap -layout us,pt"
|
||||||
|
spawn "setxkbmap -option grp:win_space_toggle"
|
||||||
|
spawn "setxkbmap -option caps:escape"
|
||||||
|
|
||||||
\end{code}
|
\end{code}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue