From 0bcd4f9a53f613fa87bed568a6918d02c2325035 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 24 May 2016 09:24:27 +0200 Subject: [PATCH] task(core): Basic sample configurations --- examples/config | 54 ++++++ examples/config.bspwm | 64 +++++++ examples/config.i3 | 64 +++++++ examples/config.i3.edp1 | 60 ------- examples/config.i3.hdmi1 | 172 ------------------ examples/config.test | 229 ------------------------ examples/config.white | 364 --------------------------------------- examples/external_top | 102 ----------- 8 files changed, 182 insertions(+), 927 deletions(-) create mode 100644 examples/config create mode 100644 examples/config.bspwm create mode 100644 examples/config.i3 delete mode 100644 examples/config.i3.edp1 delete mode 100644 examples/config.i3.hdmi1 delete mode 100644 examples/config.test delete mode 100644 examples/config.white delete mode 100644 examples/external_top diff --git a/examples/config b/examples/config new file mode 100644 index 00000000..214ec69f --- /dev/null +++ b/examples/config @@ -0,0 +1,54 @@ +[bar/example] +width = 100% +height = 25 +bottom = true +dock = false + +background = #00ffffff +foreground = #fff + +lineheight = 1 +padding_left = 1 +padding_right = 1 +module_margin_left = 0 +module_margin_right = 0 + +font:0 = sans:size=8;0 +font:1 = font awesome:size=10:weight=heavy;0 + +modules:left = label +modules:right = cpu ram clock + +[module/label] +type = custom/text +content = Lemonbuddy example +content:background = #af2031 +content:underline = #cf4253 +content:overline = #cf4253 +content:padding = 2 + +[module/cpu] +type = internal/cpu +label = CPU: %percentage% +format:background = #c42 +format:underline = #f75 +format:overline = #f75 +format:padding = 2 + +[module/ram] +type = internal/memory +label = RAM: %percentage_used% +format:background = #42c +format:underline = #75f +format:overline = #75f +format:padding = 2 + +[module/clock] +type = internal/date +date = %Y-%m-%d %H:%M +format:background = #493 +format:underline = #7a6 +format:overline = #7a6 +format:padding = 2 + +; vim:ft=dosini diff --git a/examples/config.bspwm b/examples/config.bspwm new file mode 100644 index 00000000..0c7a915b --- /dev/null +++ b/examples/config.bspwm @@ -0,0 +1,64 @@ +[bar/example] +width = 100% +height = 25 +bottom = true +dock = false + +background = #00ffffff +foreground = #fff + +lineheight = 1 +padding_left = 1 +padding_right = 1 +module_margin_left = 0 +module_margin_right = 0 + +font:0 = sans:size=8;0 +font:1 = fontawesome:size=10:weight=heavy;0 + +modules:left = label +modules:center = bspwm +modules:right = cpu ram clock + +[module/label] +type = custom/text +content = Lemonbuddy example +content:background = #af2031 +content:underline = #cf4253 +content:overline = #cf4253 +content:padding = 2 + +[module/bspwm] +type = internal/bspwm +label:active =  +label:active:padding = 1 +label:occupied =  +label:occupied:padding = 1 +label:empty =  +label:empty:padding = 1 + +[module/cpu] +type = internal/cpu +label = CPU: %percentage% +format:background = #c42 +format:underline = #f75 +format:overline = #f75 +format:padding = 2 + +[module/ram] +type = internal/memory +label = RAM: %percentage_used% +format:background = #42c +format:underline = #75f +format:overline = #75f +format:padding = 2 + +[module/clock] +type = internal/date +date = %Y-%m-%d %H:%M +format:background = #493 +format:underline = #7a6 +format:overline = #7a6 +format:padding = 2 + +; vim:ft=dosini diff --git a/examples/config.i3 b/examples/config.i3 new file mode 100644 index 00000000..0043936a --- /dev/null +++ b/examples/config.i3 @@ -0,0 +1,64 @@ +[bar/example] +width = 100% +height = 25 +bottom = true +dock = false + +background = #00ffffff +foreground = #fff + +lineheight = 1 +padding_left = 1 +padding_right = 1 +module_margin_left = 0 +module_margin_right = 0 + +font:0 = sans:size=8;0 +font:1 = fontawesome:size=10:weight=heavy;0 + +modules:left = label +modules:center = i3 +modules:right = cpu ram clock + +[module/label] +type = custom/text +content = Lemonbuddy example +content:background = #af2031 +content:underline = #cf4253 +content:overline = #cf4253 +content:padding = 2 + +[module/i3] +type = internal/i3 +label:focused =  +label:focused:padding = 1 +label:unfocused =  +label:unfocused:padding = 1 +label:visible =  +label:visible:padding = 1 + +[module/cpu] +type = internal/cpu +label = CPU: %percentage% +format:background = #c42 +format:underline = #f75 +format:overline = #f75 +format:padding = 2 + +[module/ram] +type = internal/memory +label = RAM: %percentage_used% +format:background = #42c +format:underline = #75f +format:overline = #75f +format:padding = 2 + +[module/clock] +type = internal/date +date = %Y-%m-%d %H:%M +format:background = #493 +format:underline = #7a6 +format:overline = #7a6 +format:padding = 2 + +; vim:ft=dosini diff --git a/examples/config.i3.edp1 b/examples/config.i3.edp1 deleted file mode 100644 index f1d55f24..00000000 --- a/examples/config.i3.edp1 +++ /dev/null @@ -1,60 +0,0 @@ -; vim:ft=dosini - -[bar/i3] -monitor = eDP1 -height = 29 -lineheight = 3 -bottom = true - -background = #e22 -foreground = #000 -linecolor = #000 - -spacing = 3 - -font:0 = NotoSans-Regular:size=12;0 -font:1 = MaterialIcons:size=14;0 -font:2 = FontAwesome:size=14;0 - -modules:left = i3 - - -[module/i3] -type = internal/i3 - -; Only include workspaces located inside the -; current bar's monitor -; -; Default: true -local_workspaces = true - -; Remove N chars from the start of the workspace name -; This is useful since you can define the i3 workspaces with -; both a friendly name and a number, e.g. "1.code", "2.chat", etc -; If you don't prefix the workspaces with a number in your i3 -; config, all workspaces will be assigned a number of -1. -; -; Default: 0 -workspace_name_strip_nchars = 2 - -; workspae_icon:N = workspace_name;icon -workspace_icon:0 = term; -workspace_icon:1 = web; -workspace_icon:2 = code; -workspace_icon:3 = music; -workspace_icon:4 = irssi; -workspace_icon:default =  - -label:focused = %icon% %name% -label:focused:padding = 2 -label:focused:underline = #000 -label:unfocused = %index% -label:unfocused:padding = 2 -label:unfocused:foreground = #99ee2222 -;label:visible = %index% -label:visible:padding = 2 -; label:visible:underline = #444 -; label:urgent = %icon% %index% -; label:urgent:padding = 2 - -label:dimmed:underline = ${bar/i3.background} diff --git a/examples/config.i3.hdmi1 b/examples/config.i3.hdmi1 deleted file mode 100644 index 658430dd..00000000 --- a/examples/config.i3.hdmi1 +++ /dev/null @@ -1,172 +0,0 @@ -; vim:ft=dosini - -[bar/i3] -monitor = HDMI1 -height = 35 -lineheight = 4 -dock = true -offset_x = 60 -offset_y = 15 -width = 100% - -background = #228f8f8f -foreground = #ffffffff - -spacing = 3 - -; font:0 = NotoSans-Bold:size=10;0 -font:0 = LiberationMono:weight=200:size=9;0 -font:1 = MaterialIcons:size=11;0 -font:2 = FontAwesome:weight=200:size=10;0 -font:3 = Termsynu:size=8;-1 - -padding_left = 2 -padding_right = 2 - -modules:left = i3 -modules:right = date - -[bar/i3_bottom] -monitor = HDMI1 -height = 35 -lineheight = 4 -dock = true -offset_x = 60 -offset_y = 15 -width = 100% -bottom = true - -background = #228f8f8f -foreground = #ffffffff - -spacing = 3 - -; font:0 = NotoSans-Bold:size=10;0 -font:0 = LiberationMono:weight=200:size=9;0 -font:1 = MaterialIcons:size=11;0 -font:2 = FontAwesome:weight=200:size=10;0 -font:3 = Termsynu:size=8;-1 - -padding_left = 2 -padding_right = 2 - -modules:center = mpd - -[module/i3] -type = internal/i3 - -local_workspaces = true -workspace_name_strip_nchars = 2 - -workspace_icon:0 = console; -workspace_icon:1 = web; -workspace_icon:2 = code; -workspace_icon:3 = music; -workspace_icon:4 = irssi; -workspace_icon:default =  - -label:focused = %icon% %name% -label:focused:padding = 1 -label:focused:underline = #9a4 -label:unfocused = %index% -label:unfocused:padding = 2 -label:unfocused:margin = 1 -label:unfocused:foreground = #555 -label:unfocused:underline = #222 -;label:visible = %index% -label:visible:padding = 1 -; label:visible:underline = #444 -; label:urgent = %icon% %index% -; label:urgent:padding = 1 - -label:dimmed:underline = ${bar/i3.background} - -[module/date] -type = internal/date - -; see "man date" for formatting -; if date_detailed is defined, clicking the area will toggle between formats -; if you want to use lemonbar tags here you need to use %%{...} -date = %%{F#888}%Y-%m-%d%%{F-} %%{F#fff} %H:%M%%{F-} -date_detailed = %%{F#aaa}%A, %d %B %Y %%{F#fff} %H:%M%%{F#666}:%%{F#9a4}%S%%{F-} - -; Seconds to sleep between updates -;interval = 1.0 - -; Available tags: -; (default) -format = -format:spacing = 1 -format:underline = #333 - -[module/mpd] -type = internal/mpd - -; Seconds to sleep between progressbar/song timer updates -;interval = 0.5 - -; Available tags: -; (default) -; -; -; - gets replaced with -; -; -; -; -; -; -; -; -format:online = - -; Available tags: -; -format:offline = -format:offline:offset = -8 - -; Available tokens: -; %artist% -; %album% -; %title% -; Default: %artist% - %title% -;label:song =  %artist% - %title% -;label:song:foreground = ${BAR.foreground} - -; Available tokens: -; %elapsed% -; %total% -; Default: %elapsed% / %total% -;label:time = %elapsed% / %total% -label:time:foreground = #66fafafa - -; Available tokens: -; None -label:offline =  mpd is off -label:offline:foreground = #66fafafa - -icon:play =  -icon:pause =  -icon:stop =  -icon:prev =  -icon:next =  -icon:random =  -icon:repeat =  -;icon:repeatone = 🔂 - -; Used to display the state of random/repeat/repeatone -toggle_on:foreground = -toggle_off:foreground = #66fafafa - -; Required if is used -bar:progress:width = 25 -bar:progress:format = %fill%%indicator%%empty% -bar:progress:indicator = | -bar:progress:indicator:foreground = #ffffffff -bar:progress:indicator:font = 4 -bar:progress:fill = ─ -bar:progress:fill:foreground = #ddffffff -bar:progress:fill:font = 4 -bar:progress:empty = ─ -bar:progress:empty:font = 4 -bar:progress:empty:foreground = #44ffffff diff --git a/examples/config.test b/examples/config.test deleted file mode 100644 index 2dab9999..00000000 --- a/examples/config.test +++ /dev/null @@ -1,229 +0,0 @@ -; vim:ft=dosini - -[bar/test] -;locale = sv_SE.UTF-8 -monitor = HDMI1 -; monitor = LVDS1 -; width = 100% -height = 29 -;lineheight = 14 -lineheight = 4 - -background = #222222 -foreground = #eefafafa -linecolor = #222222 - -spacing = 3 -module_margin_left = 5 -module_margin_right = 5 -; font:0 = NotoSans-Regular:size=8;0 -font:0 = Termsynu:size=8;1 -font:1 = MaterialIcons:size=10;0 -font:2 = FontAwesome:size=10;0 - -; modules:left = counter battery bspwm cpu date memory mpd network volume -; modules:left = counter battery bspwm -; modules:left = counter battery bspwm cpu date memory mpd network network2 volume -;modules:center = i3 network network2 -modules:center = i3 -; modules:center = counter counter2 -; modules:left = network - - -[module/counter] -type = internal/counter -interval = 1 -[module/counter2] -type = internal/counter -interval = 1.25 -[module/counter3] -type = internal/counter -interval = 1.5 -[module/counter4] -type = internal/counter -interval = 2 - -[module/backlight] -type = internal/backlight -card = intel_backlight -;interval = 1 - -; Available tags: -;