Skip to content

Commit

Permalink
Merge pull request #17 from bitterhalt/main
Browse files Browse the repository at this point in the history
New popup-calendar and small changes to colors
  • Loading branch information
killajoe committed Jan 30, 2023
2 parents c977182 + 0fda17c commit b20001d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 47 deletions.
5 changes: 3 additions & 2 deletions gruvbox-by-bitterhalt/colors.ini
@@ -1,7 +1,8 @@
; #Gruvbox dark
[colors]
background = #282828
background2 = #a89984
background = #1d2021
background2 = #282828
background3 = #665c54

foreground = #ebdbb2
red = #fb4934
Expand Down
23 changes: 9 additions & 14 deletions gruvbox-by-bitterhalt/config.ini
Expand Up @@ -4,7 +4,6 @@
include-file = $HOME/.config/polybar/colors.ini
include-file = $HOME/.config/polybar/modules.ini


[settings]
screenchange-reload = true
pseudo-transparency = false
Expand All @@ -24,27 +23,25 @@ background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2pt

border-bottom-size = 1
border-bottom-color = ${colors.background2}
;border-bottom-size = 1
;border-bottom-color = ${colors.background2}

padding-left = 0
padding-right = 1
module-margin = 1
border-size = 2
border-color = ${colors.background}
border-size = 1
border-color = ${colors.background2}

separator = |
separator-foreground = ${colors.black}
;separator = |
;separator-foreground = ${colors.black}

font-0 = JetBrains Mono Nerd Font:size=10;3
font-1 = JetBrains Mono SemiBold:size=10;3
font-2 = JetBrains Mono ExtraBold:size=10;3
font-3 = JetBrains Mono Nerd Font:size=4;2
font-4 = JetBrains Mono Nerd Font:size=12;4
;font-1 = Symbols Nerd Font:size=10;2

modules-left = i3 arch-updates
modules-right = cpu memory temperature-cpu pulseaudio uptime date
modules-right = cpu memory uptime pulseaudio date

cursor-click = pointer
cursor-scroll = ns-resize
Expand All @@ -69,7 +66,7 @@ foreground = ${colors.foreground}
border-size = 2
border-color = ${colors.background}
;border-bottom-size = 1
;border-bottom-color = ${colors.black}
;border-bottom-color = ${colors.background}

padding-left = 1
padding-right = 1
Expand All @@ -81,13 +78,11 @@ module-margin = 1
font-0 = JetBrains Mono Nerd Font:size=10;3
font-1 = JetBrains Mono SemiBold:size=10;3
font-2 = JetBrains Mono ExtraBold:size=10;3
font-3 = JetBrains Mono Nerd Font:size=4;2
font-4 = JetBrains Mono Nerd Font:size=12;4
;font-1 = Symbols Nerd Font:size=10;2

;modules-center = spotify1
modules-left = bspwm arch-updates
modules-right = cpu memory temperature-cpu pulseaudio uptime date
modules-right = cpu memory temperature-cpu uptime pulseaudio date

cursor-click = pointer
cursor-scroll = ns-resize
Expand Down
53 changes: 23 additions & 30 deletions gruvbox-by-bitterhalt/modules.ini
@@ -1,4 +1,3 @@

[module/arch-updates]
type = custom/script
exec = ~/.config/polybar/scripts/arch-updates.sh
Expand Down Expand Up @@ -28,7 +27,7 @@ interval = 2
format = <label>
format-background = ${colors.background}
format-foreground = ${colors.foreground}
format-prefix = " "
format-prefix = " "
format-prefix-foreground = ${colors.teal}
label = %percentage:2%%

Expand All @@ -37,7 +36,7 @@ type = internal/memory
interval = 2
format-prefix = ""
format-prefix-foreground = ${colors.green}
label = %gb_used% %percentage_used%%
label = %gb_used%
label-foreground = ${colors.foreground}

[module/temperature-cpu]
Expand All @@ -60,8 +59,6 @@ format-prefix-foreground = ${colors.foreground}
hwmon-path = /sys/devices/pci0000:00/0000:00:03.1/0000:26:00.0/0000:27:00.0/0000:28:00.0/hwmon/hwmon3/temp2_input
label = %temperature-c%



;[module/wlan]
;inherit = network-base
;interface-type = wireless
Expand All @@ -79,46 +76,45 @@ label-connected-underline = ${colors.foreground}
[module/pulseaudio]
type = internal/pulseaudio
interval = 5
click-middle = pgrep pavucontrol && killall pavucontrol || pavucontrol
click-right = pgrep pavucontrol && killall pavucontrol || pavucontrol
format-volume = <label-volume>
format-volume-prefix = ""
format-volume-prefix-foreground = ${colors.blue}
label-muted =
label-muted-foreground = ${colors.foreground}
label-muted = shhh!
label-muted-foreground = ${colors.blue}
label-volume = %percentage%%
label-volume-foreground = ${colors.foreground}

[module/uptime]
;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime
type = custom/script
exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}'
interval = 100
interval = 3600
label = %output%

format-foreground = ${colors.foreground}
format-background = ${colors.background}
format-prefix = ""
format-prefix-foreground = ${colors.red}
label-font = 2

[module/date]
type = internal/date
type = custom/script
interval = 30
;label-font = 2
time = %H:%M
time-alt = %a, %d %b %g
format = <label>
exec = date +"%H:%M"
label = %output%
format-prefix = ""
format-prefix-foreground = ${colors.foreground}
label = %time%
format-prefix-foreground = ${colors.yellow}
label-foreground = ${colors.foreground}
label-font = 2

click-left = ~/.config/polybar/scripts/calendar curr
scroll-up = ~/.config/polybar/scripts/calendar prev
scroll-down = ~/.config/polybar/scripts/calendar next
[module/spotify1]
;https://github.com/NicholasFeldman/dotfiles/blob/master/polybar/.config/polybar/spotify.sh
type = custom/script
exec = ~/.config/polybar/scripts/spotify1.sh
interval = 10

;format = <label>
format-foreground = ${colors.foreground}
format-background = ${colors.background}
Expand All @@ -127,6 +123,7 @@ format-underline =${colors.foreground}
format-prefix = ""
format-prefix-foreground = ${colors.foreground}
label = %output:0:150%
label-font = 2

[module/i3]
type = internal/i3
Expand Down Expand Up @@ -206,7 +203,7 @@ format = <label-state> <label-mode>
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 2
label-mode-padding = 1
label-mode-foreground = ${colors.background}
label-mode-background = ${colors.red}

Expand Down Expand Up @@ -253,6 +250,9 @@ ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
ws-icon-6 = 7;
ws-icon-7 = 8;
ws-icon-8 = 9;

ws-icon-default = ""


Expand All @@ -262,33 +262,26 @@ label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.foreground}
label-focused-padding = 1
label-focused-font = 2
label-focused-font = 1

label-occupied = %name%
label-occupied-foreground = ${colors.foreground}
label-occupied-background = ${colors.background}
label-occupied-padding = 1
label-occupied-font = 2
label-occupied-font = 1

label-urgent = %name%
label-urgent-foreground = #282828
label-urgent-background = ${colors.red}
label-urgent-padding = 1
label-urgent-font = 2
label-urgent-font = 1

label-empty = %name%
label-empty-foreground = ${colors.background2}
label-empty-background = ${colors.background}
label-empty-padding = 1
label-empty-font = 2

label-empty-font = 1

label-monocle = ""
label-monocle-foreground = ${colors.foreground}
label-floating = ""
label-floating-foreground = ${colors.foreground}
label-pseudotiled = ""
label-pseudotiled-foreground = ${colors.foreground}
label-locked = ""
label-locked-foreground = ${colors.foreground}
label-sticky = ""
Expand Down
5 changes: 4 additions & 1 deletion gruvbox-by-bitterhalt/readme.md
@@ -1,7 +1,10 @@
# Polybar config to i3 and BSPWM
Developer: bitterhalt

![2022-12-15_17-24](https://user-images.githubusercontent.com/95308907/207900082-742f3622-843c-4941-8c71-4c10b8653d04.png)
![2023-01-30_23-18](https://user-images.githubusercontent.com/95308907/215597786-8b5056c0-2895-49a5-ae8e-e7c64007f9c5.png)

![2023-01-30_23-16](https://user-images.githubusercontent.com/95308907/215598050-73bec5de-763d-49a5-88dc-88c20db34041.png)


## Requirements

Expand Down

0 comments on commit b20001d

Please sign in to comment.