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 = [
|
||||
Run UnsafeXPropertyLog "_XMONAD_LOG_0"
|
||||
, 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 Com "/home/afonso/.config/xmobar/scripts/cpu_temp.sh" [] "cpu" 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%\
|
||||
\{\
|
||||
\Playing: %mpris2%\
|
||||
\ \
|
||||
\|\
|
||||
\ \
|
||||
\%memory%\
|
||||
\ \
|
||||
|
|
|
@ -235,11 +235,9 @@ Percent of screen to increment by when resizing panes
|
|||
\subsubsection{Startup Hook}
|
||||
\begin{code}
|
||||
myStartupHook = do
|
||||
spawn "setxkbmap -layout us,pt"
|
||||
spawn "setxkbmap -option grp:win_space_toggle"
|
||||
spawn "setxkbmap -option caps:escape"
|
||||
spawnOnce "pasystray"
|
||||
spawnOnce "nitrogen --restore &"
|
||||
spawnOnce "playerctld"
|
||||
spawnOnce "picom &"
|
||||
spawnOnce "optimus-manager-qt"
|
||||
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 &")
|
||||
spawnOn "web" myWebBrowser
|
||||
spawnOn "main" myTerminal
|
||||
spawn "setxkbmap -layout us,pt"
|
||||
spawn "setxkbmap -option grp:win_space_toggle"
|
||||
spawn "setxkbmap -option caps:escape"
|
||||
|
||||
\end{code}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue