aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotconfig/polybar/bars106
-rw-r--r--dotconfig/polybar/config130
-rw-r--r--dotconfig/polybar/modules264
3 files changed, 500 insertions, 0 deletions
diff --git a/dotconfig/polybar/bars b/dotconfig/polybar/bars
new file mode 100644
index 0000000..2a137d2
--- /dev/null
+++ b/dotconfig/polybar/bars
@@ -0,0 +1,106 @@
+[bar]
+ fill = 
+ empty = 
+ indicator = 
+
+[module/cpu_bar]
+ type = internal/cpu
+
+ ; Seconds to sleep between updates
+ interval = 1
+
+ ; Available tags:
+ ; <label> (default)
+ ; <bar-load>
+ ; <ramp-load>
+ ; <ramp-coreload>
+ format = <bar-load><label>
+ format-prefix = 
+ format-prefix-padding = 1
+ format-prefix-background = ${color.teal}
+ format-prefix-foreground = ${color.foreground}
+ format-background = ${color.background-alt}
+ format-foreground = ${color.foreground}
+ format-overline = ${color.background}
+ format-underline = ${color.background}
+
+ ; Available tokens:
+ ; %percentage% (default) - total cpu load averaged over all cores
+ ; %percentage-sum% - Cumulative load on all cores
+ ; %percentage-cores% - load percentage for each core
+ ; %percentage-core[1-9]% - load percentage for specific core
+ label = "%percentage%% "
+
+ ; Only applies if <bar-load> is used
+ bar-load-format = " %fill%%indicator%%empty% "
+ bar-load-width = 10
+ bar-load-gradient = false
+
+ bar-load-indicator = ${bar.indicator}
+ bar-load-indicator-foreground = ${color.foreground}
+
+ bar-load-fill = ${bar.fill}
+ bar-load-foreground-0 = ${color.foreground}
+ bar-load-foreground-1 = ${color.foreground}
+ bar-load-foreground-2 = ${color.foreground}
+
+ bar-load-empty = ${bar.empty}
+ bar-load-empty-foreground = ${color.gray}
+
+[module/memory_bar]
+ type = internal/memory
+
+ ; Seconds to sleep between updates
+ interval = 2
+
+ ; Available tags:
+ ; <label> (default)
+ ; <bar-used>
+ ; <bar-free>
+ ; <ramp-used>
+ ; <ramp-free>
+ ; <bar-swap-used>
+ ; <bar-swap-free>
+ ; <ramp-swap-used>
+ ; <ramp-swap-free>
+ format = <bar-used><label>
+ format-prefix = 
+ format-prefix-padding = 1
+ format-prefix-background = ${color.indigo}
+ format-prefix-foreground = ${color.foreground}
+ format-background = ${color.background-alt}
+ format-foreground = ${color.foreground}
+ format-overline = ${color.background}
+ format-underline = ${color.background}
+
+ ; 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 = "%mb_used% "
+
+ ; Only applies if <bar-used> is used
+ bar-used-format = " %fill%%indicator%%empty% "
+ bar-used-width = 10
+ bar-used-gradient = false
+ bar-used-indicator = ${bar.indicator}
+ bar-used-indicator-foreground = ${color.foreground}
+ bar-used-foreground-0 = ${color.foreground}
+ bar-used-foreground-1 = ${color.foreground}
+ bar-used-foreground-2 = ${color.foreground}
+ bar-used-fill = ${bar.fill}
+ bar-used-empty = ${bar.empty}
+ bar-used-empty-foreground = ${color.gray}
diff --git a/dotconfig/polybar/config b/dotconfig/polybar/config
new file mode 100644
index 0000000..cad55a3
--- /dev/null
+++ b/dotconfig/polybar/config
@@ -0,0 +1,130 @@
+; Polybar config
+;
+; https://github.com/polybar/polybar/wiki
+
+include-file = ~/.config/polybar/bars
+include-file = ~/.config/polybar/modules
+
+[color]
+ background = #2f343f
+ background-alt = #C4C7C5
+ foreground = #1C1E20
+ foreground-alt = #C4C7C5
+ primary = #B4BC67
+
+ white = #FFFFFF
+ black = #000000
+ red = #EC7875
+ pink = #EC6798
+ purple = #BE78D1
+ blue = #75A4CD
+ cyan = #00C7DF
+ teal = #00B19F
+ green = #61C766
+ lime = #B9C244
+ yellow = #EBD369
+ amber = #EDB83F
+ orange = #E57C46
+ brown = #AC8476
+ gray = #9E9E9E
+ indigo = #6C77BB
+ blue-gray = #6D8895
+
+[bar/main]
+ ; Use either of the following command to list available outputs:
+ ; $ polybar -M | cut -d ':' -f 1
+ ; $ xrandr -q | grep " connected" | cut -d ' ' -f1
+ ; If no monitor is given, the primary monitor is used if it exists
+ monitor =
+
+ ; Tell the Window Manager not to configure the window.
+ ; Use this to detach the bar if your WM is locking its size/position.
+ override-redirect = false
+
+ ; Put the bar at the bottom of the screen
+ bottom = false
+
+ ; Prefer fixed center position for the `modules-center` block
+ ; When false, the center position will be based on the size of the other blocks.
+ fixed-center = true
+
+ ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
+ ; the percentage can optionally be extended with a pixel offset like so:
+ ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
+ width = 100%
+ height = 34
+
+ ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
+ ; the percentage can optionally be extended with a pixel offset like so:
+ ; 50%:-10, this will result in an offset in the x or y direction
+ ; of 50% minus 10 pixels
+ offset-x = 0%
+ offset-y = 0%
+
+ ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
+ background = ${color.background}
+
+ ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
+ foreground = ${color.foreground}
+
+ ; Value used for drawing rounded corners
+ ; Note: This shouldn't be used together with border-size because the border
+ ; doesn't get rounded
+ ; Individual top/bottom values can be defined using:
+ ; radius-{top,bottom}
+ radius-top = 0.0
+ radius-bottom = 0.0
+
+ ; Under-/overline pixel size and argb color
+ ; Individual values can be defined using:
+ ; {overline,underline}-size
+ ; {overline,underline}-color
+ line-size = 5
+ line-color = ${color.background}
+
+ ; Values applied to all borders
+ ; Individual side values can be defined using:
+ ; border-{left,top,right,bottom}-size
+ ; border-{left,top,right,bottom}-color
+ ; The top and bottom borders are added to the bar height, so the effective
+ ; window height is:
+ ; height + border-top-size + border-bottom-size
+ ; Meanwhile the effective window width is defined entirely by the width key and
+ ; the border is placed withing this area. So you effectively only have the
+ ; following horizontal space on the bar:
+ ; width - border-right-size - border-left-size
+ border-bottom-size = 0
+ border-bottom-color = ${color.primary}
+
+ ; Number of spaces to add at the beginning/end of the bar
+ ; Individual side values can be defined using:
+ ; padding-{left,right}
+ padding = 0
+
+ ; Number of spaces to add before/after each module
+ ; Individual side values can be defined using:
+ ; module-margin-{left,right}
+ module-margin = 0
+
+ ; Fonts are defined using <font-name>;<vertical-offset>
+ ; Font names are specified using a fontconfig pattern.
+ ; font-0 = NotoSans-Regular:size=8;2
+ ; font-1 = MaterialIcons:size=10
+ ; font-2 = Termsynu:size=8;-1
+ ; font-3 = FontAwesome:size=10
+ ; See the Fonts wiki page for more details
+ font-0 = "Terminus:size=10;3"
+ font-1 = "waffle:size=10;3"
+
+ ; Modules
+ modules-left = sep network sep workspaces
+ modules-center = title
+ modules-right = cpu_bar sep memory_bar sep keyboard sep pulseaudio sep date sep
+
+[global/wm]
+ margin-top = 0
+ margin-bottom = 0
+
+[settings]
+ ; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
+ screenchange-reload = true
diff --git a/dotconfig/polybar/modules b/dotconfig/polybar/modules
new file mode 100644
index 0000000..e10965f
--- /dev/null
+++ b/dotconfig/polybar/modules
@@ -0,0 +1,264 @@
+[module/sep]
+ type = custom/text
+ content = |
+
+ content-background = ${color.background}
+ content-foreground = ${color.background}
+
+[module/pulseaudio]
+ type = internal/pulseaudio
+
+ ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
+ ; If not, uses default sink
+ sink = alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo
+
+ ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
+ use-ui-max = false
+
+ ; Interval for volume increase/decrease (in percent points)
+ interval = 5
+
+ ; Available tags:
+ ; <label-volume> (default)
+ ; <ramp-volume>
+ ; <bar-volume>
+ format-volume = <ramp-volume><label-volume>
+ format-volume-overline = ${color.background}
+ format-volume-underline = ${color.background}
+
+ label-volume = %percentage%%
+ label-volume-background = ${color.background-alt}
+ label-volume-padding = 1
+
+ ramp-volume-0 = 
+ ramp-volume-1 = 
+ ramp-volume-2 = 
+ ramp-volume-3 = 
+ ramp-volume-4 = 
+ ramp-volume-background = ${color.blue}
+ ramp-volume-padding = 1
+
+ ; Available tags:
+ ; <label-muted> (default)
+ ; <ramp-volume>
+ ; <bar-volume>
+ format-muted = <label-muted>
+ format-muted-prefix = 
+ format-muted-prefix-background = ${color.red}
+ format-muted-prefix-padding = 1
+ format-muted-overline = ${color.background}
+ format-muted-underline = ${color.background}
+
+ label-muted = "Muted"
+ label-muted-foreground = ${color.foreground}
+ label-muted-background = ${color.background-alt}
+ label-muted-padding = 1
+
+ ; Right click
+ click-right = pavucontrol
+
+[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 = %Y-%m-%d%
+
+ ; Optional time format
+ time = "%I:%M %p"
+
+ ; if `date-alt` or `time-alt` is defined, clicking
+ ; the module will toggle between formats
+ time-alt = "%a, %d %b %Y"
+
+ ; Available tags:
+ ; <label> (default)
+ format = <label>
+ format-prefix = 
+ format-prefix-background = ${color.amber}
+ format-prefix-padding = 1
+ format-overline = ${color.background}
+ format-underline = ${color.background}
+
+ ; Available tokens:
+ ; %date%
+ ; %time%
+ ; Default: %date%
+ label = %time%
+ label-background = ${color.background-alt}
+ label-padding = 1
+
+[module/network]
+ type = internal/network
+ ; Name of the network interface to display. You can get the names of the
+ ; interfaces on your machine with `ip link`
+ interface = enp34s0
+
+ ; If no interface is specified, polybar can detect an interface of the given type.
+ ; If multiple are found, it will prefer running interfaces and otherwise just
+ ; use the first one found.
+ ; Either 'wired' or 'wireless'
+ ; New in version 3.6.0
+ interface-type = wired
+
+ ; Seconds to sleep between updates
+ interval = 1.0
+
+ ; Accumulate values from all interfaces
+ ; when querying for up/downspeed rate
+ accumulate-stats = true
+
+ ; Consider an `UNKNOWN` interface state as up.
+ ; Some devices have an unknown state, even when they're running
+ unknown-as-up = true
+
+ ; Available tags:
+ ; <label-connected> (default)
+ ; <ramp-signal>
+ format-connected = <ramp-signal><label-connected>
+ format-connected-overline = ${color.background}
+ format-connected-underline = ${color.background}
+
+ ; Only applies if <ramp-signal> is used
+ ramp-signal-0 = 
+ ramp-signal-background = ${color.yellow}
+ ramp-signal-padding = 1
+
+ ; Available tokens:
+ ; %ifname% [wireless+wired]
+ ; %local_ip% [wireless+wired]
+ ; %local_ip6% [wireless+wired]
+ ; %essid% [wireless]
+ ; %signal% [wireless]
+ ; %upspeed% [wireless+wired]
+ ; %downspeed% [wireless+wired]
+ ; %linkspeed% [wired]
+ label-connected = "%upspeed% | %downspeed% "
+ label-connected-background = ${color.background-alt}
+ label-connected-padding = 1
+
+ ; Available tags:
+ ; <label-disconnected> (default)
+ format-disconnected = <label-disconnected>
+ format-disconnected-prefix = 
+ format-disconnected-prefix-background = ${color.orange}
+ format-disconnected-prefix-padding = 1
+ format-disconnected-overline = ${color.background}
+ format-disconnected-underline = ${color.background}
+
+ ; Available tokens:
+ ; %ifname% [wireless+wired]
+ label-disconnected = "Offline"
+ label-disconnected-background = ${color.background-alt}
+ label-disconnected-padding = 1
+
+[module/keyboard]
+ type = internal/xkeyboard
+
+ ; List of indicators to ignore
+ blacklist-0 = num lock
+ blacklist-1 = scroll lock
+
+ ; Available tags:
+ ; <label-layout> (default)
+ ; <label-indicator> (default)
+ format = <label-layout><label-indicator>
+ format-prefix = 
+ format-prefix-background = ${color.blue-gray}
+ format-prefix-padding = 1
+ format-overline = ${color.background}
+ format-underline = ${color.background}
+
+ ; Available tokens:
+ ; %layout%
+ ; %name%
+ ; %number%
+ label-layout = "%layout%"
+ label-layout-background = ${color.background-alt}
+ label-layout-padding = 1
+
+ ; Available tokens:
+ ; %name%
+ label-indicator-on = "%name% "
+ label-indicator-on-background = ${color.background-alt}
+
+[module/title]
+ type = internal/xwindow
+
+ ; Available tags:
+ ; <label> (default)
+ format = <label>
+ format-prefix = 
+ format-padding = 1
+ format-foreground = ${color.foreground-alt}
+
+ ; Available tokens:
+ ; %title%
+ ; Default: %title%
+ label = " %title%"
+ label-maxlen = 64
+
+ ; Used instead of label when there is no window title
+ label-empty = " Desktop"
+
+[module/workspaces]
+ type = internal/xworkspaces
+
+ ; Only show workspaces defined on the same output as the bar
+ pin-workspaces = true
+
+ ; Create click handler used to focus desktop
+ enable-click = true
+
+ ; Create scroll handlers used to cycle desktops
+ enable-scroll = true
+
+ ; Available tags:
+ ; <label-monitor>
+ ; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
+ format = <label-state>
+ format-overline = ${color.background}
+ format-underline = ${color.background}
+
+ ; Available tokens:
+ ; %name%
+ label-monitor = %name%
+
+ ; Available tokens:
+ ; %name%
+ ; %icon%
+ ; %index%
+ label-active = %name%
+ label-active-foreground = ${color.foreground}
+ label-active-background = ${color.primary}
+ label-active-padding = 1
+
+ ; Available tokens:
+ ; %name%
+ ; %icon%
+ ; %index%
+ label-occupied = %name%
+ label-occupied-foreground = ${color.foreground}
+ label-occupied-background = ${color.gray}
+ label-occupied-padding = 1
+
+ ; Available tokens:
+ ; %name%
+ ; %icon%
+ ; %index%
+ label-urgent = %name%
+ label-urgent-foreground = ${color.foreground}
+ label-urgent-background = ${color.red}
+ label-urgent-padding = 1
+
+ ; Available tokens:
+ ; %name%
+ ; %icon%
+ ; %index%
+ label-empty = %name%
+ label-empty-foreground = ${color.foreground}
+ label-empty-background = ${color.background-alt}
+ label-empty-padding = 1