Files
dotfiles/.config/xmobar/xmobarrc_laptop
T
Daniele Fucini 216e1bff0f xmobar: toggle mute on volume click
Left-clicking the volume widget toggles mute on the default sink, so it
works for speakers and headphones alike.
2026-11-12 21:26:39 +01:00

54 lines
3.7 KiB
Plaintext

Config { overrideRedirect = True
, lowerOnStart = True
, font = "Jetbrains Mono Nerd Font Bold 10"
, bgColor = "#24283b"
, fgColor = "#737aa2"
, position = TopH 24
, border = NoBorder
, borderColor = "#24283b"
, allDesktops = True
, pickBroadest = True
, commands = [ Run Com "/home/fuxino/.config/xmobar/weather.sh" [] "weather" 9000
, Run MultiCpu
[ "--template" , "\xf4bc <total>%"
, "--Low" , "25"
, "--High" , "75"
, "--low" , "#50fa7b"
, "--normal" , "#ffb86c"
, "--high" , "#ff5555"
] 10
, Run CoreTemp
[ "--template" , "<core0>°C"
, "--Low" , "70"
, "--High" , "90"
, "--low" , "#50fa7b"
, "--normal" , "#ffb86c"
, "--high" , "#ff5555"
] 50
, Run Memory
[ "--template" , "\xefc5 <usedratio>%"
, "--Low" , "50"
, "--High" , "80"
, "--low" , "#50fa7b"
, "--normal" , "#ffb86c"
, "--high" , "#ff5555"
] 50
, Run Kbd
[ ("it" , "<fc=#50fa7b>IT</fc>")
, ("us" , "<fc=#ffb86c>US</fc>")
, ("sk(qwerty)" , "<fc=#ff5555>SK</fc>")
]
, Run Date "\xf133 %a %d/%m <fc=#ff79c6>%H:%M</fc>" "date" 10
, Run XPropertyLog "_XMONAD_TRAYPAD"
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
, Run Com "/home/fuxino/.config/xmobar/updates.sh" [] "updates" 600
, Run Com "/home/fuxino/.config/xmobar/backup.sh" [] "backup" 3600
, Run Com "/home/fuxino/.config/xmobar/calcurse.sh" [] "calcurse" 600
, Run UnsafeXMonadLog
]
, sepChar = "%"
, alignSep = "}{"
, template = "  | %UnsafeXMonadLog% } %multicpu% %coretemp% | %memory% | <action=`/home/fuxino/.config/xmobar/kbd_cycle.sh` button=1><action=`/home/fuxino/.config/xmobar/kbd_cycle.sh prev` button=3> %kbd%</action></action> { <action=`/home/fuxino/.config/xmobar/calcurse.sh list` button=1><action=`xdotool key super+shift+a` button=3>%calcurse%</action></action><action=`/home/fuxino/.config/xmobar/backup.sh list`>%backup%</action><action=`/home/fuxino/.config/xmobar/updates.sh list`>%updates%</action><action=`/home/fuxino/.config/xmobar/weather.sh notify`>%weather%</action> <fc=#565f89>·</fc> <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%ens_brief%</action> | <action=`pactl set-sink-mute @DEFAULT_SINK@ toggle` button=1>%pactl_volume%</action> | %date% %_XMONAD_TRAYPAD% "
}