xmobar & xmonad optimierung
This commit is contained in:
2
home/programs/xmonad/src/xmobar/scripts/backlight.sh
Executable file
2
home/programs/xmonad/src/xmobar/scripts/backlight.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
Out=$(xbacklight -get)
|
||||
echo "<fc=#dbb302><fn=1>\xe3aa</fn></fc> $Out%"
|
||||
@@ -5,56 +5,70 @@ config =
|
||||
defaultConfig
|
||||
{ font = "Fira Code"
|
||||
, position = TopH 30
|
||||
, borderColor = "#1e2030"
|
||||
, borderColor = "#402339"
|
||||
, border = FullB
|
||||
, borderWidth = 3
|
||||
, bgColor = "#24273a"
|
||||
, fgColor = "#cad3f5"
|
||||
, commands = [ Run $ Cpu [ "--template", "<fc=#a9a1e1><fn=1>\xf085</fn></fc> <total>%"
|
||||
, "--Low","3"
|
||||
, "--High","50"
|
||||
, "--low","#bbc2cf"
|
||||
, "--normal","#bbc2cf"
|
||||
, "--high","#fb4934"] 50
|
||||
, Run $ Memory ["-t","<fc=#51afef><fn=1>\xF2DB</fn></fc> <usedratio>%"
|
||||
,"-H","80"
|
||||
,"-L","10"
|
||||
,"-l","#bbc2cf"
|
||||
,"-n","#bbc2cf"
|
||||
,"-h","#fb4934"] 50
|
||||
, Run $ Date "<fc=#ECBE7B><fn=1>\xf017</fn></fc> %a %b %_d %H:%M" "date" 300
|
||||
, Run $ DynNetwork ["-t","<fc=#4db5bd><fn=1>\xf063</fn></fc> <rx> <fc=#c678dd><fn=1>\xf062</fn></fc> <tx>"
|
||||
,"-H","200"
|
||||
,"-L","10"
|
||||
,"-h","#bbc2cf"
|
||||
,"-l","#bbc2cf"
|
||||
,"-n","#bbc2cf"] 50
|
||||
, Run $ CoreTemp ["-t", "<fc=#CDB464><fn=1>\xf2c7</fn></fc> <core0>°"
|
||||
, "-L", "30"
|
||||
, "-H", "75"
|
||||
, "-l", "lightblue"
|
||||
, "-n", "#bbc2cf"
|
||||
, "-h", "#aa4450"] 50
|
||||
, Run $ BatteryP [ "BAT1" ]
|
||||
[ "--template" , "<fc=#B1DE76><fn=1>\xf240</fn></fc> <acstatus>"
|
||||
, "--Low" , "10" -- units: %
|
||||
, "--High" , "80" -- units: %
|
||||
, "--low" , "#fb4934"
|
||||
, "--normal" , "#bbc2cf"
|
||||
, "--high" , "#98be65"
|
||||
, "--" -- battery specific options
|
||||
-- discharging status
|
||||
, "-o" , "<left>% (<timeleft>)"
|
||||
-- AC "on" status
|
||||
, "-O" , "<left>% (<fc=#98be65>Charging</fc>)"
|
||||
-- charged status
|
||||
, "-i" , "<fc=#98be65>Charged</fc>"
|
||||
] 50
|
||||
, Run XMonadLog
|
||||
]
|
||||
, borderWidth = 2
|
||||
, bgColor = "#381f32"
|
||||
, fgColor = "#a8dfe3"
|
||||
, commands =
|
||||
[
|
||||
Run $ Com "./scripts/backlight.sh" [] "backlight" 10
|
||||
Run $ Cpu
|
||||
[
|
||||
"--template", "<fc=#a9a1e1><fn=1>\xf085</fn></fc> <total>%"
|
||||
, "--Low","3"
|
||||
, "--High","50"
|
||||
, "--low","#bbc2cf"
|
||||
, "--normal","#bbc2cf"
|
||||
, "--high","#fb4934"
|
||||
] 50
|
||||
, Run $ Memory
|
||||
[
|
||||
"-t","<fc=#51afef><fn=1>\xF2DB</fn></fc> <usedratio>%"
|
||||
,"-H","80"
|
||||
,"-L","10"
|
||||
,"-l","#bbc2cf"
|
||||
,"-n","#bbc2cf"
|
||||
,"-h","#fb4934"
|
||||
] 50
|
||||
, Run $ Alsa "default" "Master"
|
||||
[
|
||||
"--template", "<fc=#5c0714><fn=1>\xe050</fn>>/fc> <volumestatus>"
|
||||
, "--suffix" , "True"
|
||||
, "--"
|
||||
, "--on", "<fc=#5c0714><fn=1>\xe050</fn>>/fc> <volumestatus>"
|
||||
]
|
||||
, Run $ Date "<fc=#ECBE7B><fn=1>\xf017</fn></fc> %d.%m.%y %H:%M" "date" 300
|
||||
, Run $ DynNetwork
|
||||
[
|
||||
"-t","<fc=#4db5bd><fn=1>\xf063</fn></fc> <rx> <fc=#c678dd><fn=1>\xf062</fn></fc> <tx>"
|
||||
,"-H","200"
|
||||
,"-L","10"
|
||||
,"-h","#bbc2cf"
|
||||
,"-l","#bbc2cf"
|
||||
,"-n","#bbc2cf"
|
||||
] 50
|
||||
, Run $ BatteryP [ "BAT0" ]
|
||||
[
|
||||
"--template" , "<fc=#B1DE76><fn=1>\xf240</fn></fc> <acstatus>"
|
||||
, "--Low" , "10" -- units: %
|
||||
, "--High" , "80" -- units: %
|
||||
, "--low" , "#fb4934"
|
||||
, "--normal" , "#bbc2cf"
|
||||
, "--high" , "#98be65"
|
||||
, "--" -- battery specific options
|
||||
-- discharging status
|
||||
, "-o" , "<left>% (<timeleft>)"
|
||||
-- AC "on" status
|
||||
, "-O" , "<left>% (<fc=#98be65>Charging</fc>)"
|
||||
-- charged status
|
||||
, "-i" , "<fc=#98be65>Charged</fc>"
|
||||
] 50
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "%XMonadLog% }{ %cpu% | %coretemp% | %memory% | %battery% | %dynnetwork% | %date% |"
|
||||
, template = "%XMonadLog% }{ %backlight% | %cpu% | %memory% | %battery% | %dynnetwork% | %date% "
|
||||
}
|
||||
|
||||
main :: IO ()
|
||||
|
||||
Reference in New Issue
Block a user