diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-07-20 17:12:30 -0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-07-20 17:12:30 -0400 |
| commit | f4173cd2c510631049bac9399e013a770764811e (patch) | |
| tree | 180ef4da2db914962f043b00455cdfa390023465 /.config/polybar | |
| parent | be9e153ae1efb20077ac519ae1374c47ab5b5e60 (diff) | |
Restyled polybar and tweaked openbox to use env variables
Diffstat (limited to '.config/polybar')
| -rw-r--r-- | .config/polybar/conf.ini | 224 | ||||
| -rw-r--r-- | .config/polybar/config | 252 |
2 files changed, 328 insertions, 148 deletions
diff --git a/.config/polybar/conf.ini b/.config/polybar/conf.ini new file mode 100644 index 0000000..df2224e --- /dev/null +++ b/.config/polybar/conf.ini @@ -0,0 +1,224 @@ +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +;; +;; ____ __ __ +;; / __ \____ / /_ __/ /_ ____ ______ +;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/ +;; / ____/ /_/ / / /_/ / /_/ / /_/ / / +;; /_/ \____/_/\__, /_.___/\__,_/_/ +;; /____/ +;; +;; Created By Aditya Shakya @adi1090x +;; +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[color] + +bg = #1F1F1F +fg = #FFFFFF +fg-alt = #A9ABB0 + +acolor = #FFFFFF +curgent = #EF5350 +coccupied = #42A5F5 + +shade1 = #FF6F00 +shade2 = #FF8F00 +shade3 = #FFA000 +shade4 = #FFB300 +shade5 = #FFC107 +shade6 = #FFCA28 +shade7 = #FFD54F +shade8 = #FFE082 +txt = #2C2C2C + +## Material Colors + +red = #e53935 +pink = #d81b60 +purple = #8e24aa +deep-purple = #5e35b1 +indigo = #3949ab +blue = #1e88e5 +light-blue = #039be5 +cyan = #00acc1 +teal = #00897b +green = #43a047 +light-green = #7cb342 +lime = #c0ca33 +yellow = #fdd835 +amber = #ffb300 +orange = #fb8c00 +deep-orange = #f4511e +brown = #6d4c41 +grey = #757575 +blue-gray = #546e7a + +;========================================================== + +[bar/main] +width = 96% +height = 32 +offset-x = 2% +offset-y = 2% +bottom = false +fixed-center = false +line-size = 2 + +background = ${color.bg} +foreground = ${color.fg} + +;========================================================== + +font-0 = "Fantasque Sans Mono:pixelsize=10;3" +font-1 = "Iosevka Nerd Font:pixelsize=13;3" + +;========================================================== + +enable-ipc = true +cursor-click = pointer + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +;== Module Location ======================================================== + +modules-left = menu workspaces google github reddit facebook youtube +modules-right = mpd pkg volume battery network date powermenu + +;== Modules ======================================================== + +[module/menu] +type = custom/text +content = +;alt icons = +content-padding = 2 +content-background = ${color.shade1} +content-foreground = ${color.fg} + +[module/workspaces] +type = internal/xworkspaces +pin-workspaces = false +enable-click = true +enable-scroll = true +format-padding = 1 + +;icon-0 = 1;❶ +;icon-1 = 2;❷ +;icon-2 = 3;❸ +;icon-3 = 4;❹ +;icon-4 = 5;❺ +;icon-5 = 6;❻ +;icon-6 = 7;❼ +;icon-7 = 8;❽ +;icon-8 = 9;❾ +;icon-9 = 10;❿ + +icon-default = + +format = <label-state> +format-background = ${color.shade2} +label-active = +label-occupied = +label-urgent = +label-empty = + +label-empty-padding = 1 +label-active-padding = 1 +label-urgent-padding = 1 +label-occupied-padding = 1 + +label-empty-foreground = ${color.fg} +label-active-foreground = ${color.acolor} +label-urgent-foreground = ${color.curgent} +label-occupied-foreground = ${color.coccupied} + +;========================================================== + +[module/mpd] +type = internal/mpd +format-online = <toggle> <label-song> +;format-online = <label-song> +;alt icons = +format-online-background = ${color.shade8} +format-online-foreground = ${color.txt} +format-online-padding = 2 + +icon-play = 喇 +icon-pause = + +label-song-maxlen = 25 +label-song-ellipsis = true + +;========================================================== + +[module/battery] +type = internal/battery +full-at = 99 +time-format = %H:%M +battery = BAT1 +adapter = AC +format-charging = <animation-charging> <label-charging> +format-charging-background = ${color.shade5} +format-charging-padding = 2 +label-charging = %percentage%% +format-discharging = <ramp-capacity> <label-discharging> +format-discharging-background = ${color.shade5} +format-discharging-padding = 2 +label-discharging = %percentage%% +format-full = <label-full> + +format-full-prefix = " " +ramp-capacity-0 = +ramp-capacity-1 = +ramp-capacity-2 = +ramp-capacity-3 = +ramp-capacity-4 = +ramp-capacity-5 = +ramp-capacity-6 = +ramp-capacity-7 = +ramp-capacity-8 = +ramp-capacity-9 = + +ramp-capacity-0-foreground = ${color.red} +ramp-capacity-1-foreground = ${color.red} +ramp-capacity-foreground = ${color.fg} +bar-capacity-width = 10 + +animation-charging-0 = +animation-charging-1 = +animation-charging-2 = +animation-charging-3 = +animation-charging-4 = +animation-charging-5 = +animation-charging-6 = + +animation-charging-framerate = 750 + +[module/volume] +type = internal/alsa +format-volume = <ramp-volume> <label-volume> +format-volume-padding = 2 +format-volume-background = ${color.shade6} +label-volume = %percentage%% +label-muted = "婢" +label-muted-background = ${color.shade6} +label-muted-padding = 2 + +ramp-volume-0 = 奄 +ramp-volume-1 = 奄 +ramp-volume-2 = 奔 +ramp-volume-3 = 奔 +ramp-volume-4 = 墳 +ramp-volume-5 = 墳 +ramp-volume-6 = 墳 + +[module/date] +type = internal/date +interval = 30 +label = %time% +label-padding = 2 +label-background = ${color.shade3} +time = %I:%M %p +time-alt = %Y-%m-%d + +;== EOF ======================================================== diff --git a/.config/polybar/config b/.config/polybar/config index 9a87393..c0043f2 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -17,26 +17,18 @@ ;========================================================== [colors] -;background = ${xrdb:color0:#222} -;background = #222 background = #2e3440 -background-alt = #444 - -;foreground = ${xrdb:color7:#222} -;foreground = #dfdfdf foreground = #eceff4 -foreground-alt = #555 primary = #ffb52a secondary = #e60053 alert = #bd2c40 +underline = #eceff4 -[bar/example] +[bar/main] ;monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 33 -;offset-x = 1% -;offset-y = 1% +height = 35 radius = 0.0 fixed-center = true @@ -55,17 +47,17 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 2 -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 +font-0 = Liberation Sans:pixelsize=12;3 +;font-0 = fixed:pixelsize=10;3 +;font-0 = ProFontIIx Nerd Font:pixelsize=1;3 +font-1 = ProFontIIx Nerd Font:pixelsize=15;3 -modules-left = bspwm i3 workspaces -modules-center = date -modules-right = xbacklight alsa xkeyboard memory cpu wlan eth battery temperature +modules-left = menu bspwm i3 workspaces +modules-center = xwindow +modules-right = alsa xkeyboard xbacklight memory cpu wlan eth battery date tray-position = right tray-padding = 2 -;tray-background = #0063ff ;wm-restack = bspwm ;wm-restack = i3 @@ -81,6 +73,38 @@ tray-padding = 2 cursor-click = pointer cursor-scroll = ns-resize +[module/menu] +type = custom/text +content = +content-padding = 2 +content-font = 2 +click-left = rofi -show drun -theme nord +content-background = ${colors.foreground} +content-foreground = ${colors.background} + +[module/workspaces] +type = internal/xworkspaces + +pin-workspaces = false +enable-click = true +enable-scroll = false + +format = <label-state> +format-padding = 0 + +label-active = +;label-active-foreground = #eceff4 +label-active-padding = 2 + +label-empty = +label-empty-padding = 2 + +label-occupied = +label-occupied-padding = 2 + +label-urgent = +label-urgent-padding = 2 + [module/xwindow] type = internal/xwindow label = %title:0:30:...% @@ -89,17 +113,18 @@ label = %title:0:30:...% type = internal/xkeyboard blacklist-0 = num lock -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} +format-prefix = " " +format-prefix-foreground = ${colors.foreground} +;format-prefix-underline = ${colors.underline} +format-prefix-underline = ${colors.underline} label-layout = %layout% -label-layout-underline = ${colors.secondary} +label-layout-underline = ${colors.underline} label-indicator-padding = 2 label-indicator-margin = 1 label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} +label-indicator-underline = ${colors.underline} [module/filesystem] type = internal/fs @@ -109,14 +134,14 @@ mount-0 = / label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} +label-unmounted-foreground = ${colors.foreground} [module/bspwm] type = internal/bspwm label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} +label-focused-background = ${colors.background} +label-focused-underline= ${colors.underline} label-focused-padding = 2 label-occupied = %index% @@ -127,7 +152,7 @@ label-urgent-background = ${colors.alert} label-urgent-padding = 2 label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} +label-empty-foreground = ${colors.foreground} label-empty-padding = 2 ; Separator in between workspaces @@ -148,8 +173,8 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} +label-focused-background = ${colors.background} +label-focused-underline= ${colors.underline} label-focused-padding = 2 ; unfocused = Inactive workspace on any monitor @@ -170,35 +195,6 @@ label-urgent-padding = 2 ; Separator in between workspaces ; label-separator = | -[module/workspaces] -type = internal/xworkspaces -format = <label-state> - -pin-workspaces = false -enable-click = true -enable-scroll = false - -label-active = %index% -label-active-foreground = #ffffff -label-active-background = #000000 -label-active-underline = #00ff00 -label-active-padding = 2 - -label-empty = %index% -label-empty-padding = 2 - -icon-0 = 1;1 -icon-1 = 2;1 -icon-2 = 3;1 -icon-3 = 4;1 -icon-4 = 5;1 -icon-5 = 6;1 -icon-6 = 7;1 -icon-7 = 8;1 -icon-8 = 9;1 -icon-9 = 10;1 -icon-default = - [module/mpd] type = internal/mpd format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> @@ -227,7 +223,7 @@ bar-fill-font = 2 bar-fill-foreground = #9f78e1 bar-empty = ─ bar-empty-font = 2 -bar-empty-foreground = ${colors.foreground-alt} +bar-empty-foreground = ${colors.foreground} [module/backlight-acpi] inherit = module/xbacklight @@ -237,17 +233,16 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +format-prefix = " " +format-underline = ${colors.underline} label = %percentage:2%% [module/memory] type = internal/memory interval = 2 format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.underline} label = %percentage_used%% [module/wlan] @@ -255,109 +250,73 @@ type = internal/network interface = net1 interval = 3.0 -format-connected = <ramp-signal> <label-connected> -format-connected-underline = #9f78e1 -label-connected = %essid% - -format-disconnected = -;format-disconnected = <label-disconnected> -;format-disconnected-underline = ${self.format-connected-underline} -;label-disconnected = %ifname% disconnected -;label-disconnected-foreground = ${colors.foreground-alt} +format-connected = <label-connected> +label-connected = %local_ip% +format-connected-prefix = "直 " +format-connected-underline = ${colors.underline} -ramp-signal-0 = -ramp-signal-1 = -ramp-signal-2 = -ramp-signal-3 = -ramp-signal-4 = -ramp-signal-foreground = ${colors.foreground-alt} +format-disconnected = <label-disconnected> +label-disconnected = "睊 " +format-disconnected-underline = ${self.format-connected-underline} [module/eth] type = internal/network interface = eth0 interval = 3.0 -format-connected-underline = #55aa55 -format-connected-prefix = " " -format-connected-prefix-foreground = ${colors.foreground-alt} +format-connected = <label-connected> label-connected = %local_ip% +format-connected-prefix = " " +format-connected-prefix-foreground = ${colors.foreground} +format-connected-underline = ${colors.underline} -format-disconnected = -;format-disconnected = <label-disconnected> -;format-disconnected-underline = ${self.format-connected-underline} -;label-disconnected = %ifname% disconnected -;label-disconnected-foreground = ${colors.foreground-alt} +format-disconnected = <label-disconnected> +label-disconnected = " " +format-disconnected-underline = ${self.format-connected-underline} [module/date] type = internal/date -interval = 5 -date = -date-alt = " %Y-%m-%d" +label = %date% %time% +format-prefix = " " +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.underline} +date = "%d %b (%a)" time = %H:%M -time-alt = %H:%M:%S -format-prefix = -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 - -label = %date% %time% +interval = 15 [module/pulseaudio] type = internal/pulseaudio -format-volume = <label-volume> <bar-volume> -label-volume = VOL %percentage%% +format-volume = "<ramp-volume> <label-volume>" +label-volume = %percentage%% label-volume-foreground = ${root.foreground} -label-muted = 🔇 muted -label-muted-foreground = #666 - -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = ─ -bar-volume-fill-font = 2 -bar-volume-empty = ─ -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} +format-muted-prefix = 婢 +format-muted-foreground = ${colors.foreground} +label-muted = " muted" + +ramp-volume-0 = 奄 +ramp-volume-1 = 奔 +ramp-volume-2 = 墳 [module/alsa] type = internal/alsa -format-volume = <label-volume> <bar-volume> -label-volume = VOL +format-volume = "<ramp-volume> <label-volume>" +label-volume = %percentage%% label-volume-foreground = ${root.foreground} +format-underline = ${colors.underline} -format-muted-prefix = " " -format-muted-foreground = ${colors.foreground-alt} -label-muted = sound muted - -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = ─ -bar-volume-fill-font = 2 -bar-volume-empty = ─ -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} +format-muted-prefix = 婢 +format-muted-foreground = ${colors.foreground} +label-muted = " muted" + +ramp-volume-0 = 奄 +ramp-volume-1 = 奔 +ramp-volume-2 = 墳 [module/battery] type = internal/battery @@ -372,24 +331,24 @@ format-discharging = <animation-discharging> <label-discharging> format-discharging-underline = ${self.format-charging-underline} format-full-prefix = " " -format-full-prefix-foreground = ${colors.foreground-alt} +format-full-prefix-foreground = ${colors.foreground} format-full-underline = ${self.format-charging-underline} ramp-capacity-0 = ramp-capacity-1 = ramp-capacity-2 = -ramp-capacity-foreground = ${colors.foreground-alt} +ramp-capacity-foreground = ${colors.foreground} animation-charging-0 = animation-charging-1 = animation-charging-2 = -animation-charging-foreground = ${colors.foreground-alt} +animation-charging-foreground = ${colors.foreground} animation-charging-framerate = 750 animation-discharging-0 = animation-discharging-1 = animation-discharging-2 = -animation-discharging-foreground = ${colors.foreground-alt} +animation-discharging-foreground = ${colors.foreground} animation-discharging-framerate = 750 [module/temperature] @@ -409,7 +368,7 @@ label-warn-foreground = ${colors.secondary} ramp-0 = ramp-1 = ramp-2 = -ramp-foreground = ${colors.foreground-alt} +ramp-foreground = ${colors.foreground} [module/powermenu] type = custom/menu @@ -423,7 +382,7 @@ label-open-foreground = ${colors.secondary} label-close = cancel label-close-foreground = ${colors.secondary} label-separator = | -label-separator-foreground = ${colors.foreground-alt} +label-separator-foreground = ${colors.foreground} menu-0-0 = reboot menu-0-0-exec = menu-open-1 @@ -450,6 +409,3 @@ screenchange-reload = true [global/wm] margin-top = 0 -margin-bottom = 0 - -; vim:ft=dosini |