diff --git a/users/profiles/desktop/polybar/config b/users/profiles/desktop/polybar/config index 6d89840e..d0cac16a 100644 --- a/users/profiles/desktop/polybar/config +++ b/users/profiles/desktop/polybar/config @@ -29,357 +29,347 @@ accent = #604c7e [global/wm] margin-top = 0 margin-bottom = 34 +[bar/mybar] +; monitor = VGA-1 -[bar/main] -monitor = ${env:MONITOR} -monitor-strict = true -enable-ipc = true -wm-restack = bspwm -# REQUIRED to move the window with hideit.sh -override-redirect = true +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 = 29 + +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} -width = 100% -height = 34 -offset-x = 0 -offset-y = 0 -# bottom = true +line-size = 0 +line-color = #fff -overline-size = 0 -overline-color = #f00 -underline-size = 0 -underline-color = #00f +; 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 -border-bottom-size = 0 -border-top-size = 1 -border-color = ${colors.bg-dark} +; Number of spaces to add before/after each module +; Individual side values can be defined using: +; module-margin-{left,right} +module-margin = 0 -padding-left = 2 -padding-right = 2 -module-margin-left = 0 -module-margin-right = 0 +font-0 = "Iosevka Term:pixelsize=13;4" +font-1 = "Iosevka Term:pixelsize=6;1" -font-0 = "Fira Code:pixelsize=9;2" -font-1 = "Wuncon Siji:pixelsize=12;2" -font-2 = "Siji:pixelsize=10;2" +; Add module mpd for artist - title info +modules-left = i3 sps mpd_i sps mpd sps pulseaudio +modules-center = title +modules-right = network sps memory sps cpu sps date -; modules-left = volume pad cpu memory pad pkg mail -modules-left = pulseaudio pad cpu memory pad fs -modules-center = bspwm -modules-right = syncthing redshift wlan pad network-up pad network-down pad battery pad date +; The separator will be inserted between the output of each module +separator = -;tray-position = center -;tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff +; This value is used to add extra spacing between elements +; @deprecated: This parameter will be removed in an upcoming version +spacing = 0 -[module/bspwm] -type = internal/bspwm +; 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 = ${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 = i3 + +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/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 -# ws-icon-0 = 1; -# ws-icon-1 = 2; -# ws-icon-2 = 3; -# ws-icon-3 = 4; -# ws-icon-4 = 5; -# ws-icon-5 = 6; -ws-icon-default =  +; Create scroll handlers used to cycle workspaces +; Default: true +enable-scroll = true -format = -label-padding = 1 +; 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;%{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-5 = 6;%{T1}%{T-} +ws-icon-6 = 7;%{T1}%{T-} +ws-icon-7 = 8;%{T1}%{T-} +ws-icon-8 = 9;%{T1}%{T-} +ws-icon-9 = 0;%{T1}%{T-} +ws-icon-default = %{T1}%{T-} +fuzzy-match = true + + +label-unfocused = %icon% +label-unfocused-padding = 1 +label-unfocused-foreground = ${colors.yellow} label-focused = %icon% -label-focused-background = ${colors.bg-dark} -label-focused-foreground = ${colors.fg} -# label-focused-underline = ${colors.magenta} -; label-focused-foreground = ${xrdb:color2} +label-focused-foreground = ${colors.bg} +label-focused-background = ${colors.yellow} +label-focused-underline = #f92672 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-empty = %icon% -label-empty-foreground = ${colors.fg-alt} -label-empty-padding = 1 - [module/date] type = internal/date -interval = 5 -label = %date% %time% -date = %A, %h %d -date-alt = %Y-%m-%d -time = %I:%M %p -time-alt = %H:%M:%S -format-prefix = "" -format-prefix-padding = 1 -; format-prefix-background = ${colors.bg-alt} -format-prefix-foreground = ${colors.accent} -; format-underline = ${xrdb:color4} +; Seconds to sleep between updates +interval = 1.0 -[module/fs] -type = internal/fs -mount-0 = / -mount-1 = /mnt/projects ; for desktops -mount-2 = /home ; for laptop -interval = 30 +; 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-} -; Available tags: -; (default) -; -; -; -format-mounted = "" -format-mounted-foreground = ${colors.accent} -; Available tokens: -; %mountpoint% -; %type% -; %fsname% -; %percentage_free% -; %percentage_used% -; %total% -; %free% -; %used% -; Default: %mountpoint% %percentage_free%% +; Optional time format +time = %{T2} %H:%M%{T-} -; Available tags: -; (default) -format-unmounted = -label-unmounted = -label-unmounted-foreground = ${colors.fg-alt} +; 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-} -bar-used-indicator = -bar-used-width = 8 -bar-used-foreground-0 = ${colors.fg} -bar-used-foreground-1 = ${colors.fg} -bar-used-foreground-2 = ${colors.yellow} -bar-used-foreground-3 = ${colors.alert} -bar-used-foreground-4 = ${colors.alert} -bar-used-fill = | -bar-used-empty = ¦ -bar-used-empty-foreground = ${colors.fg-alt} +label = %date%%time% +label-font = 0 +label-foreground = ${colors.green} -[module/xwindow] -type = internal/xwindow -label = %title:0:80:...% -label-padding-left = 2 +[module/wireless-network] +type = internal/network +interface = wlan0 -; [module/mpd] -; type = internal/mpd -; host = /home/hlissner/.config/mpd/mpd.sock -; -; format-online = -; format-padding = 5 -; -; label-song-maxlen = 45 -; label-song-ellipsis = true -; -; icon-prev =  -; icon-seekb =  -; icon-stop =  -; icon-play =  -; icon-pause =  -; icon-next =  -; icon-seekf =  -; -; icon-random =  -; icon-repeat =  -; -; toggle-on-foreground = ${colors.fg} -; toggle-off-foreground = #66 +label-connected = %essid% +format-connected = +label-connected-foreground = #82b414 + +format-disconnected = +label-disconnected = Not connected +label-disconnected-foreground = #f92672 +label-disconnected-background = #99000000 + +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 -interval = 2 -format = -format-prefix = "" -format-foreground = ${colors.accent} -; format-underline = #f90000 -; label = %percentage%% -format-padding = 1 -bar-load-indicator = -bar-load-width = 8 -bar-load-foreground-0 = ${colors.fg} -bar-load-foreground-1 = ${colors.fg} -bar-load-foreground-2 = ${colors.yellow} -bar-load-foreground-3 = ${colors.alert} -bar-load-foreground-4 = ${colors.alert} -bar-load-fill = | -bar-load-empty = ¦ -bar-load-empty-foreground = ${colors.fg-alt} +; 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 -interval = 3 -format = -format-prefix = "" -format-prefix-foreground = ${colors.accent} -; format-underline = #4bffdc -; label = %percentage_used%% -format-padding-left = 1 -; Only applies if is used -bar-used-indicator = -bar-used-width = 8 -bar-used-foreground-0 = ${colors.fg} -bar-used-foreground-1 = ${colors.fg} -bar-used-foreground-2 = ${colors.yellow} -bar-used-foreground-3 = ${colors.alert} -bar-used-foreground-4 = ${colors.alert} -bar-used-fill = | -bar-used-empty = ¦ -bar-used-empty-foreground = ${colors.fg-alt} +; Seconds to sleep between updates +; Default: 1 +interval = 0.5 +format =