[bar/mybar]
 monitor = VGA-1

override-redirect = true

; Put the bar at the bottom of the screen
bottom = true

; Prefer fixed center position for the `modules-center` block
fixed-center = true

width = 99%
height = 30

offset-x = 7
offset-y = 2

; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
background = #00000000

; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
foreground = #700

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 = 3

; Number of spaces to add before/after each module
; Individual side values can be defined using:
;   module-margin-{left,right}
module-margin = 1


font-0 = Iosevka NF:medium:size=7;3
font-1 = FontAwesome5Free:style=Solid:size=6;3
font-2 = unifont:size=9;3
font-3 = Blex Mono NF:medium:size=12;4
font-4 = Iosevka NF:medium:size=7;3
font-5 = Blex Mono NF:medium:size=10;4

modules-left = i3  memory
modules-center = mpd_i mpd
modules-right = cpu  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 = i3

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 = #00000000
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 = i3

dpi-x = 135
dpi-y = 135

enable-ipc = false

; Fallback click handlers that will be called if
; there's no matching module handler found.
[module/i3]
type = internal/i3
pin-workspaces = true

strip-wsnumbers = true

index-sort = true

; Create click handler used to focus workspace
; Default: true
enable-click = true

; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = true

; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false

; Set the scroll cycle direction
; Default: true
reverse-scroll = false

ws-icon-0 = 1;%{T4}
ws-icon-1 = 2;%{T4}
ws-icon-2 = 3;%{T4}
ws-icon-3 = 4;%{T4}
ws-icon-4 = 5;%{T4}
ws-icon-5 = 6;%{T4}
ws-icon-6 = 7;%{T4}
ws-icon-7 = 8;%{T4}
ws-icon-8 = 9;%{T4}
ws-icon-9 = 0;%{T4}
ws-icon-default = %{T4}
fuzzy-match = true


label-unfocused = %icon%
label-unfocused-padding = 2
label-unfocused-foreground = #84ffff

label-focused = %icon%
label-focused-foreground = #b388ff
label-focused-background = #700f0e0e
label-focused-underline = #f92672
label-focused-padding = 2

[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 = %{T6} %{T-}%A %d, %b/%Y

; Optional time format
time = %H:%M

; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S

label = %date% %time%
label-font = 0
label-foreground = #70e676

[module/wireless-network]
type = internal/network
interface = wlan0

label-connected = %essid%
format-connected = <ramp-signal>
label-connected-foreground = #82b414

format-disconnected = <label-disconnected>
label-disconnected = Not connected
label-disconnected-foreground = #f92672
label-disconnected-background = #00000000

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 = %{T2}  %percentage:2%%

label-foreground = #7066cc

[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 = %{T2}  %gb_used%

label-foreground = #f92672

[module/decor-glyph]
type = custom/text
content-foreground = #465457
margin = 0

[module/sep]
inherit = module/decor-glyph
content = "/"

[module/mpd]
type = internal/mpd

host = 0.0.0.0
port = 6600

interval = 2

format-online = <label-song>
format-online-background = #00000000
format-online-foreground = #b0bec5
#format-online-padding = 20

label-song =  "%{T5}%artist% - %title%"
label-song-maxlen = 70
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 = #00000000
format-online-foreground = #b0bec5
#format-online-padding = 2

label-offline = "MPD is offline"

; Only applies if <icon-X> is used
icon-play = %{T4}奈
icon-pause = %{T4}
icon-stop = %{T4}
icon-prev = %{T4}ﭣ
icon-next = %{T4}ﭡ
