Browse Source

Added some styling to Polybar. Fixed a minor issue with the .bashrc file.

master
Bryan Miller 4 years ago
parent
commit
85fdf2d33c
No known key found for this signature in database
3 changed files with 57 additions and 28 deletions
  1. +2
    -2
      .bashrc
  2. +17
    -15
      polybar/config
  3. +38
    -11
      polybar/modules.obsidianblk.ini

+ 2
- 2
.bashrc View File

@@ -38,8 +38,8 @@ add_to_envpath /home/obsidianblk/.local/sbin
alias ls='ls --color=auto'

COLOR_PROMPT=yes
source ~/Development/mybash/colors.rc.sh
source ~/Development/mybash/ps1.rc.sh
source ~/Development/MyBash/colors.rc.sh
source ~/Development/MyBash/ps1.rc.sh
cat ~/.cache/wal/sequences

# Now display neofetch information.

+ 17
- 15
polybar/config View File

@@ -18,12 +18,12 @@

[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
background = #2f3e46
background-alt = #354f52
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
foreground = #84a98c
foreground-alt = #cad2c5
primary = #52796f
secondary = #e60053
alert = #bd2c40

@@ -45,21 +45,23 @@ foreground = ${colors.foreground}
line-size = 3
line-color = #f00

border-size = 4
border-color = #00000000
border-size = 0
border-color = #00FF0000

padding-left = 0
padding-right = 2
padding-right = 0 ;2

module-margin-left = 1
module-margin-right = 2
module-margin-left = 0 ;1
module-margin-right = 0 ;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 = fixed:pixelsize=10;1
font-0 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=10;0
font-1 = DejaVu Sans Mono for Powerline:style=Bold:pixelsize=20;1
font-2 = unifont:fontformat=truetype:size=8:antialias=false;0
font-3 = siji:pixelsize=10;1

modules-left = bspwm i3
modules-center = mpd
modules-left = obspace obswoosh obswedge-l bspwm i3 obswedge-r obswoosh
modules-center =
modules-right = filesystem pulseaudio xkeyboard memory cpu eth date powermenu

tray-position = right

+ 38
- 11
polybar/modules.obsidianblk.ini View File

@@ -1,3 +1,27 @@
[module/obspace]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T2} %{T-}

[module/obswedge-l]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T2}%{T-}

[module/obswedge-r]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T2}%{T-}

[module/obswoosh]
type = custom/text
content-foreground = ${colors.primary}
content-padding = 0
content = %{T2}%{T-}

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
@@ -59,30 +83,33 @@ wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true

label-mode-padding = 2
label-mode-padding = 0
label-mode-foreground = #000
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-padding = 2
label-focused = %{T2}%{T-}%index%%{T2}%{T-}
label-focused-foreground = ${colors.primary}
label-focused-background = ${colors.background}
;label-focused-underline= ${colors.background-alt}
label-focused-padding = 0

; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = 2
label-unfocused = %{T2}%{T-}%index%%{T2}%{T-}
label-unfocused-foreground = ${colors.background}
label-unfocused-background = ${colors.primary}
label-unfocused-padding = 0

; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible = %{T2}%{T-}%index%%{T2}%{T-}
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
label-visible-foreground = ${self.label-focused-foreground}
label-visible-padding = 0 ;${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-urgent-padding = 0

; Separator in between workspaces
; label-separator = |

Loading…
Cancel
Save