412 lines
8.8 KiB
Plaintext
412 lines
8.8 KiB
Plaintext
[colors]
|
|
|
|
yellow = #ffd580
|
|
orange = #fe8019
|
|
blue = #73d0ff
|
|
green = #bae67e
|
|
red = #ff3333
|
|
bg = #1f2430
|
|
fg = #bfbab0
|
|
icons = #bae67e
|
|
cyan = #95e6cb
|
|
text = ${xrdb:color2}
|
|
unfocus = ${xrdb:color1}
|
|
accent = #604c7e
|
|
sky = #73d0ff
|
|
mauve = #bae67e
|
|
alert = ${colors.yellow}
|
|
|
|
bg-alt = #1E2029
|
|
fg-alt = #373844
|
|
bg-dark = #181a23
|
|
|
|
[bar/mybar]
|
|
; monitor = VGA-1
|
|
|
|
override-redirect = false
|
|
|
|
; Put the bar at the bottom of the screen
|
|
bottom = false
|
|
|
|
; Prefer fixed center position for the `modules-center` block
|
|
fixed-center = true
|
|
|
|
width = 100%
|
|
height = 34
|
|
|
|
offset-x =
|
|
offset-y =
|
|
|
|
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
|
background = ${colors.bg}
|
|
|
|
; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
|
foreground = ${colors.fg}
|
|
|
|
line-size = 0
|
|
line-color = #fff
|
|
|
|
; Number of spaces to add at the beginning/end of the bar
|
|
; Individual side values can be defined using:
|
|
; padding-{left,right}
|
|
padding-right = 1
|
|
padding-left = 0
|
|
|
|
; Number of spaces to add before/after each module
|
|
; Individual side values can be defined using:
|
|
; module-margin-{left,right}
|
|
module-margin = 0
|
|
margin-bottom = 34
|
|
|
|
font-0 = "Iosevka Term:pixelsize=13;4"
|
|
font-1 = "Iosevka Term:pixelsize=6;1"
|
|
font-2 = "Fira Code:pixelsize=13;2"
|
|
font-3 = "Siji:pixelsize=8;2"
|
|
|
|
; Add module mpd for artist - title info
|
|
modules-left = bspwm sps volume
|
|
modules-center = title
|
|
modules-right = wireless-network sps battery sps memory sps cpu sps date
|
|
|
|
; The separator will be inserted between the output of each module
|
|
separator =
|
|
|
|
; This value is used to add extra spacing between elements
|
|
; @deprecated: This parameter will be removed in an upcoming version
|
|
spacing = 0
|
|
|
|
; Opacity value between 0.0 and 1.0 used on fade in/out
|
|
dim-value = 1.0
|
|
|
|
wm-name = bspwm
|
|
|
|
tray-position = right
|
|
|
|
; If true, the bar will not shift its
|
|
; contents when the tray changes
|
|
tray-detached = false
|
|
|
|
; Tray icon max size
|
|
tray-maxsize = 16
|
|
|
|
tray-background = ${colors.bg}
|
|
;offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
|
|
|
|
tray-offset-x = 0
|
|
tray-offset-y = 0
|
|
|
|
; Pad the sides of each tray icon
|
|
tray-padding = 0
|
|
|
|
; Scale factor for tray clients
|
|
tray-scale = 1.0
|
|
|
|
wm-restack = bspwm
|
|
|
|
dpi-x = 133
|
|
dpi-y = 133
|
|
|
|
enable-ipc = false
|
|
|
|
; Fallback click handlers that will be called if
|
|
; there's no matching module handler found.
|
|
|
|
[module/bspwm]
|
|
type = internal/bspwm
|
|
pin-workspaces = true
|
|
enable-click = true
|
|
|
|
ws-icon-0 = 1;%{T1}%{T-}
|
|
ws-icon-1 = 2;%{T1}%{T-}
|
|
ws-icon-2 = 3;%{T1}%{T-}
|
|
ws-icon-3 = 4;%{T1}%{T-}
|
|
ws-icon-4 = 5;%{T1}%{T-}
|
|
ws-icon-default =
|
|
; fuzzy-match = true
|
|
|
|
format = <label-state> <label-mode>
|
|
label-padding = 1
|
|
label-foreground = ${colors.green}
|
|
|
|
label-focused = %icon%
|
|
label-focused-background = ${colors.yellow}
|
|
label-focused-foreground = ${colors.bg}
|
|
# label-focused-underline = ${colors.magenta}
|
|
; label-focused-foreground = ${xrdb:color2}
|
|
label-focused-padding = 1
|
|
|
|
label-occupied = %icon%
|
|
label-occupied-foreground = ${colors.accent}
|
|
label-occupied-padding = 1
|
|
|
|
label-urgent = %icon%
|
|
label-urgent-foreground = ${colors.alert}
|
|
; label-urgent-background = ${colors.alert}
|
|
label-urgent-padding = 1
|
|
; label-urgent-font = 3
|
|
|
|
label-empty = %icon%
|
|
label-empty-foreground = ${colors.fg-alt}
|
|
label-empty-padding = 1
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
|
|
; Seconds to sleep between updates
|
|
interval = 1.0
|
|
|
|
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
|
|
; NOTE: if you want to use syntax tags here you need to use %%{...}
|
|
date = %{T1}%{T-}%{T2} %d/%a%{T-}
|
|
|
|
; Optional time format
|
|
time = %{T2} %H:%M%{T-}
|
|
|
|
; if `date-alt` or `time-alt` is defined, clicking
|
|
; the module will toggle between formats
|
|
date-alt = %{T1}%{T-}%{T2} %a, %d %b %y%{T-}
|
|
time-alt = %{T2} %H:%M:%S%{T-}
|
|
|
|
label = %date%%time%
|
|
label-font = 0
|
|
label-foreground = ${colors.green}
|
|
|
|
[module/wireless-network]
|
|
type = internal/network
|
|
interface = wlp3s0
|
|
|
|
label-connected = %essid%
|
|
label-connected-font = 2
|
|
format-connected = <ramp-signal><label-connected>
|
|
label-connected-foreground = #82b414
|
|
|
|
format-disconnected = <label-disconnected>
|
|
label-disconnected = "睊"
|
|
label-disconnected-foreground = #f92672
|
|
|
|
ramp-signal-foreground = #82b414
|
|
ramp-signal-0 = " "
|
|
ramp-signal-1 = " "
|
|
ramp-signal-2 = " "
|
|
ramp-signal-3 = " "
|
|
ramp-signal-4 = " "
|
|
ramp-signal-5 = " "
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
|
|
; Seconds to sleep between updates
|
|
; Default: 1
|
|
interval = 0.5
|
|
|
|
label = %{T1}%{T-}%{T2} %percentage:2%%%{T-}
|
|
|
|
label-foreground = ${colors.cyan}
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
|
|
; Seconds to sleep between updates
|
|
; Default: 1
|
|
interval = 0.5
|
|
format = <label>
|
|
|
|
; Available tokens:
|
|
; %percentage_used% (default)
|
|
; %percentage_free%
|
|
; %gb_used%
|
|
; %gb_free%
|
|
; %gb_total%
|
|
; %mb_used%
|
|
; %mb_free%
|
|
; %mb_total%
|
|
; %percentage_swap_used%
|
|
; %percentage_swap_free%
|
|
; %mb_swap_total%
|
|
; %mb_swap_free%
|
|
; %mb_swap_used%
|
|
; %gb_swap_total%
|
|
; %gb_swap_free%
|
|
; %gb_swap_used%
|
|
|
|
label = %{T1}%{T-}%{T2} %gb_used%%{T-}
|
|
|
|
label-foreground = ${colors.cyan}
|
|
|
|
[module/mpd]
|
|
type = internal/mpd
|
|
|
|
host = 0.0.0.0
|
|
port = 6600
|
|
|
|
interval = 2
|
|
|
|
format-online = <label-song>
|
|
format-online-background = ${colors.bg}
|
|
format-online-foreground = ${colors.yellow}
|
|
#format-online-padding = 20
|
|
|
|
label-song = %{T2}%artist% - %title%%{T-}
|
|
label-song-maxlen = 55
|
|
label-song-ellipsis = true
|
|
|
|
label-offline = "MPD is offline"
|
|
|
|
[module/mpd_i]
|
|
type = internal/mpd
|
|
|
|
interval = 2
|
|
|
|
format-online = <icon-prev> <toggle> <icon-next>
|
|
format-online-background = ${colors.bg}
|
|
format-online-foreground = ${colors.yellow}
|
|
#format-online-padding = 2
|
|
|
|
label-offline = "MPD is offline"
|
|
|
|
; Only applies if <icon-X> is used
|
|
icon-play = %{T1}奈%{T-}
|
|
icon-pause = %{T1}%{T-}
|
|
icon-stop = %{T1}%{T-}
|
|
icon-prev = %{T1}ﭣ%{T-}
|
|
icon-next = %{T1}ﭡ%{T-}
|
|
|
|
;An empty module used to add 1 unit spacings whenever needed
|
|
[module/sps]
|
|
type = custom/text
|
|
content = " "
|
|
content-padding = 0
|
|
|
|
[module/network]
|
|
type = internal/network
|
|
interface = wlp3s0
|
|
;enp0s29u1u2
|
|
interval = 1.0
|
|
label-connected = "%{T1}龍%{T-}%{T2} %downspeed% | %upspeed%%{T-}"
|
|
label-disconnected = "%{T2}0/0%{T-}"
|
|
label-connected-background = ${colors.bg}
|
|
label-connected-foreground = ${colors.blue}
|
|
label-disconnected-foreground = ${colors.red}
|
|
|
|
[module/title]
|
|
type = internal/xwindow
|
|
; Available tags:
|
|
; <label> (default)
|
|
format = <label>
|
|
format-background = ${colors.bg}
|
|
format-foreground = ${colors.green}
|
|
format-padding = 4
|
|
|
|
; Available tokens:
|
|
; %title%
|
|
; Default: %title%
|
|
label = "%{T1}类%{T-}%{T2} %title%%{T-}"
|
|
label-maxlen = 65
|
|
|
|
; Used instead of label when there is no window title
|
|
; Available tokens:
|
|
; None
|
|
label-empty =%{T2}Empty%{T-}
|
|
label-empty-foreground = #707880
|
|
|
|
[module/volume]
|
|
type = internal/pulseaudio
|
|
|
|
use-ui-max = false
|
|
|
|
interval = 5
|
|
|
|
format-volume = <ramp-volume><bar-volume>
|
|
|
|
format-muted = <label-muted>
|
|
format-muted-prefix = " "
|
|
format-muted-prefix-font = 2
|
|
format-muted-prefix-foreground = ${colors.mauve}
|
|
|
|
label-volume = "%percentage%% "
|
|
label-muted = "Mute"
|
|
|
|
label-volume-foreground = ${colors.mauve}
|
|
label-muted-foreground = ${colors.mauve}
|
|
|
|
bar-volume-width = 8
|
|
bar-volume-gradient = false
|
|
bar-volume-indicator = |
|
|
bar-volume-indicator-font = 2
|
|
bar-volume-indicator-foreground = ${colors.mauve}
|
|
bar-volume-fill = ─
|
|
bar-volume-fill-font = 2
|
|
bar-volume-fill-foreground = ${colors.mauve}
|
|
bar-volume-empty = ─
|
|
bar-volume-empty-font = 2
|
|
bar-volume-empty-foreground = ${colors.fg-alt}
|
|
|
|
ramp-volume-0 = " "
|
|
ramp-volume-1 = " "
|
|
ramp-volume-2 = " "
|
|
ramp-volume-3 = " "
|
|
ramp-volume-4 = " "
|
|
ramp-volume-5 = " "
|
|
ramp-volume-6 = " "
|
|
ramp-volume-7 = " "
|
|
ramp-volume-8 = " "
|
|
ramp-volume-9 = " "
|
|
ramp-volume-font = 1
|
|
ramp-volume-foreground = ${colors.mauve}
|
|
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
|
|
full-at = 99
|
|
|
|
adapter = ACAD
|
|
battery = BAT0
|
|
|
|
poll-interval = 2
|
|
time-format = %H:%M
|
|
|
|
format-charging = <animation-charging><label-charging>
|
|
format-charging-prefix =
|
|
|
|
format-discharging = <ramp-capacity><label-discharging>
|
|
|
|
format-full = <label-full>
|
|
format-full-prefix = " "
|
|
format-full-prefix-font = 1
|
|
format-full-prefix-foreground = ${colors.sky}
|
|
|
|
label-charging = "%percentage%% "
|
|
label-discharging = "%percentage%% "
|
|
label-full = "%percentage%% "
|
|
|
|
label-charging-foreground = ${colors.sky}
|
|
label-discharging-foreground = ${colors.sky}
|
|
label-charging-font = 2
|
|
label-discharging-font = 2
|
|
label-full-foreground = ${colors.sky}
|
|
label-full-font = 2
|
|
|
|
ramp-capacity-0 = " "
|
|
ramp-capacity-1 = " "
|
|
ramp-capacity-2 = " "
|
|
ramp-capacity-3 = " "
|
|
ramp-capacity-4 = " "
|
|
ramp-capacity-font = 1
|
|
ramp-capacity-foreground = ${colors.sky}
|
|
|
|
animation-charging-0 = " "
|
|
animation-charging-1 = " "
|
|
animation-charging-2 = " "
|
|
animation-charging-3 = " "
|
|
animation-charging-4 = " "
|
|
animation-charging-font = 1
|
|
animation-charging-foreground = ${colors.sky}
|
|
animation-charging-framerate = 750
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|