8000 Separated bars by ilshatvm · Pull Request #477 · gh0stzk/dotfiles · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Separated bars #477

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10000
1 change: 1 addition & 0 deletions config/bspwm/.bar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emilia
17 changes: 17 additions & 0 deletions config/bspwm/bars/aline/Bar.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TOP_PADDING="51"
BOTTOM_PADDING="1"
LEFT_PADDING="1"
RIGHT_PADDING="1"

read -r CURRENT_BAR < "$HOME"/.config/bspwm/.bar

color_file=${HOME}"/.config/bspwm/rices/"${RICE}"/bar-colors.ini"
config_file=${HOME}"/.config/bspwm/bars/"${CURRENT_BAR}"/config.ini"

sed -i 's~include-file.*bar-colors.ini~include-file = '"$color_file"'~' "$config_file"


# This file launch the bar/s
for mon in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$mon polybar -q aline-bar -c "${HOME}"/.config/bspwm/bars/"${CURRENT_BAR}"/config.ini &
done
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,7 @@ margin-top = 0

include-file = ../../src/config/system.ini
include-file = modules.ini

[color]
bg = #faf4ed
bg-alt = #708491
fg = #575279
mc = #f2e9e1

white = #575279
black = #9893a5

red = #b4637a
green = #286983
yellow = #ea9d34
blue = #56949f
purple = #907aa9
cyan = #d7827e
pink = #eb6f92
teal = #9ccfd8
lime = #B9C515
amber = #f6c177
orange = #fab387
brown = #AC8476
grey = #8C8C8C
indigo = #31748f
blue-gray = #6e6a86
include-file = bar-colors.ini

[bar/aline-bar]
monitor = ${env:MONITOR:}
Expand All @@ -53,7 +29,7 @@ offset-x = 9%
offset-y = 0

background = ${color.bg}
foreground = ${color.fg}
foreground = ${color.fg-alt}

radius-bottom = 1.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
[module/bi]
type = custom/text
label = "%{T4}%{T-}"
label-foreground = ${color.mc}
label-foreground = ${color.bg-alt}
label-background = ${color.bg}

[module/bd]
type = custom/text
label = "%{T4}%{T-}"
label-foreground = ${color.mc}
label-foreground = ${color.bg-alt}
label-background = ${color.bg}

######################################################
Expand All @@ -31,7 +31,8 @@ format-prefix = ""


label = "%{A1:OpenApps --calendar:}%time%%{A}"
label-background = ${color.mc}
label-background = ${color.bg-alt}
label-foreground = ${color.fg-alt}

######################################################

Expand All @@ -44,21 +45,23 @@ fixed-values = false

format-mounted = <label-mounted>
format-mounted-prefix = ""
format-mounted-prefix-background = ${color.mc}
format-mounted-prefix-background = ${color.bg-alt}
format-mounted-prefix-foreground = ${color.purple}

format-unmounted = <label-unmounted>
format-unmounted-prefix = ""
format-unmounted-prefix-background = ${color.mc}
format-unmounted-prefix-background = ${color.bg-alt}
format-unmounted-prefix-foreground = ${color.purple}

label-mounted = "%used%"
label-mounted-padding = 1
label-mounted-background = ${color.mc}
label-mounted-background = ${color.bg-alt}
label-mounted-foreground = ${color.fg-alt}

label-unmounted = %mountpoint%: not mounted
label-unmounted-padding = 1
label-unmounted-background = ${color.mc}
label-unmounted-background = ${color.bg-alt}
label-unmounted-foreground = ${color.fg-alt}

######################################################

Expand All @@ -73,15 +76,18 @@ unknown-as-up = true
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-foreground = ${color.green}
format-connected-background = ${color.mc}
format-connected-background = ${color.bg-alt}
format-connected-foreground = ${color.fg-alt}

speed-unit = ""
label-connected = " %{A1:OpenApps --netmanager:}%downspeed%%{A}"
label-connected-background = ${color.mc}
label-connected-background = ${color.bg-alt}
label-connected-foreground = ${color.fg-alt}

format-disconnected = <label-disconnected>
format-disconnected-prefix = ""
format-disconnected-background = ${color.mc}
format-disconnected-background = ${color.bg-alt}
format-disconnected-foreground = ${color.fg-alt}
format-disconnected-prefix-foreground = ${color.red}

label-disconnected = " %{A1:OpenApps --netmanager:}Offline%{A}"
Expand All @@ -98,13 +104,15 @@ interval = 5
format-volume = <label-volume>
format-volume-prefix = ""
format-volume-prefix-foreground = ${color.teal}
format-volume-background = ${color.mc}
format-volume-background = ${color.bg-alt}
format-volume-foreground = ${color.fg-alt}

label-volume = "%percentage%"
label-volume-padding = 1

format-muted = <label-muted>
format-muted-background = ${color.mc}
format-muted-background = ${color.bg-alt}
format-muted-foreground = ${color.fg-alt}
format-muted-prefix = ""
format-muted-prefix-foreground = ${color.teal}
label-muted = "Muted"
Expand Down Expand Up @@ -142,19 +150,21 @@ poll-interval = 2
time-format = %H:%M

format-charging = <animation-charging><label-charging>
format-charging-background = ${color.mc}
format-charging-background = ${color.bg-alt}
format-charging-foreground = ${color.fg-alt}
label-charging = "%percentage%%"
label-charging-padding = 1

format-discharging = <ramp-capacity><label-discharging>
format-discharging-background = ${color.mc}
format-discharging-background = ${color.bg-alt}
format-discharging-foreground = ${color.fg-alt}
label-discharging = "%percentage%%"
label-discharging-padding = 1

format-full = <label-full>
format-full-prefix = ""
format-full-prefix-font = 2
format-full-background = ${color.mc}
format-full-background = ${color.bg-alt}
format-full-prefix-foreground = ${color.green}
label-full = "%percentage%%"
label-full-padding = 1
Expand Down Expand Up @@ -183,7 +193,7 @@ type = custom/script
exec = Weather wmodule
interval = 900
format = <label>
format-background = ${color.mc}
format-background = ${color.bg-alt}
label = " %output% "

######################################################
Expand All @@ -210,24 +220,22 @@ ws-icon-default = "♟"

format = <label-state>


label-focused = "󰧞"
label-focused-font = 3
label-focused-background = ${color.mc}
label-focused-foreground = ${color.blue}
label-focused-background = ${color.bg-alt}
label-focused-foreground = ${color.focus}

label-occupied = "󰧞"
label-occupied-font = 3
label-occupied-background = ${color.mc}
label-occupied-foreground= ${color.fg}
label-occupied-background = ${color.bg-alt}
label-occupied-foreground= ${color.occup}

label-empty = %icon%
label-empty-background = ${color.mc}
label-empty-foreground = ${color.fg}

label-empty-background = ${color.bg-alt}
label-empty-foreground = ${color.empty}

label-separator = " "
label-separator-background = ${color.mc}
label-separator-background = ${color.bg-alt}
label-separator-padding = 0

######################################################
Expand Down Expand Up @@ -271,11 +279,12 @@ initial = 1

format = <label>
format-prefix = " "
format-prefix-background = ${color.mc}
format-prefix-background = ${color.bg-alt}
format-prefix-foreground = ${color.amber}

label = %output%
label-background = ${color.mc}
label-background = ${color.bg-alt}
label-foreground = ${color.fg-alt}

click-left = OpenApps --checkupdates
click-right = OpenApps --update
Expand All @@ -286,6 +295,7 @@ click-right = OpenApps --update
type = custom/text
label = "󰣇"
label-background = ${color.bg}
label-foreground = ${color.blue-arch}

click-left = OpenApps --menu
click-right = RiceSelector
Expand All @@ -305,7 +315,8 @@ type = internal/cpu
interval = 0.5
format = <label>
format-prefix = ""
format-background = ${color.mc}
format-background = ${color.bg-alt}
format-foreground = ${color.fg-alt}
format-prefix-foreground = ${color.cyan}

label = "%percentage%%"
Expand All @@ -319,7 +330,8 @@ interval = 3

;; agregar <bar-used> antes de label para agregar barrita chida
format = <label>
format-background = ${color.mc}
format-background = ${color.bg-alt}
format-foreground = ${color.fg-alt}
format-prefix = ""
format-prefix-foreground = ${color.pink}

Expand Down Expand Up @@ -359,7 +371,8 @@ blacklist-0 = num lock
blacklist-1 = scroll lock

format = <label-layout>
format-background = ${color.mc}
format-background = ${color.bg-alt}
format-foreground = ${color.fg-alt}
format-prefix = " "
format-prefix-font = 2
format-prefix-foreground = ${color.cyan}
Expand Down
Binary file added config/bspwm/bars/aline/preview-bar.webp
Binary file not shown.
18 changes: 15 additions & 3 deletions config/bspwm/rices/andrea/Bar.bash → config/bspwm/bars/andrea/Bar.bash
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
TOP_PADDING="69"
BOTTOM_PADDING="1"
LEFT_PADDING="1"
RIGHT_PADDING="1"

read -r CURRENT_BAR < "$HOME"/.config/bspwm/.bar

color_file=${HOME}"/.config/bspwm/rices/"${RICE}"/bar-colors.ini"
config_file=${HOME}"/.config/bspwm/bars/"${CURRENT_BAR}"/config.ini"

sed -i 's~include-file.*bar-colors.ini~include-file = '"$color_file"'~' "$config_file"

# This file launch the bar/s
# Function for generating workspaces.yuck file with eww widgets
generate_eww_workspaces() {
eww_file="${HOME}/.config/bspwm/rices/${RICE}/bar/workspaces.yuck"
eww_file="${HOME}/.config/bspwm/bars/${CURRENT_BAR}/bar/workspaces.yuck"
monitors=$(bspc query -M --names)
count=0
listen_workspaces=""
Expand All @@ -26,7 +38,7 @@ generate_eww_workspaces
monitors=$(xrandr -q | grep -w 'connected' | sort -k3n | cut -d' ' -f1)
count=0
for m in $monitors; do
eww -c "${HOME}/.config/bspwm/rices/${RICE}/bar" open bar --id "$m" --arg monitor="$m" --toggle --screen "$count"
eww -c "${HOME}/.config/bspwm/bars/${CURRENT_BAR}/bar" open bar --id "$m" --arg monitor="$m" --toggle --screen "$count"
count=$((count + 1))
done

Expand All @@ -38,4 +50,4 @@ done
else
HideBar -u
fi
done &
done &
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// Colors //
$bg: #f5eee6;
$borderbg: #161616;
$fg: #151515;
$magenta: #c5abff;
$gray: #e6dfd7;
@import "../../../eww/colors.scss";

// Global //
* {
Expand Down Expand Up @@ -49,14 +44,16 @@ tooltip {

.infotext {
background-color: $gray;
color: $fg-alt;
border-radius: 16px;
padding: 0 5px;
font-size: 0.813rem;
font-weight: bold;
}

.infotext-pac {
background-color: $magenta;
background-color: $gray;
color: $fg-alt;
border-radius: 16px;
padding: 0 5px;
font-size: 0.813rem;
Expand Down
Binary file added config/bspwm/bars/andrea/preview-bar.webp
Binary file not shown.
17 changes: 17 additions & 0 deletions config/bspwm/bars/brenda/Bar.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TOP_PADDING="48"
BOTTOM_PADDING="1"
LEFT_PADDING="1"
RIGHT_PADDING="1"

read -r CURRENT_BAR < "$HOME"/.config/bspwm/.bar

color_file=${HOME}"/.config/bspwm/rices/"${RICE}"/bar-colors.ini"
config_file=${HOME}"/.config/bspwm/bars/"${CURRENT_BAR}"/config.ini"

sed -i 's~include-file.*bar-colors.ini~include-file = '"$color_file"'~' "$config_file"


# This file launch the bar/s
for mon in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$mon polybar -q brenda -c "${HOME}"/.config/bspwm/bars/"${CURRENT_BAR}"/config.ini &
done
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,7 @@ margin-top = 0

include-file = ../../src/config/system.ini
include-file = modules.ini

[color]
bg = #2d353b
fg = #d3c6aa

mbg = #f8f5e4
red = #e67e80
pink = #FF0677
purple = #d699b6
blue = #7fbbb3
blue-arch = #0A9CF5
cyan = #83c092
teal = #00B19F
green = #a7c080
lime = #B9C244
yellow = #dbbc7f
amber = #FBC02D
orange = #e69875
brown = #AC8476
grey = #272e33
indigo = #6C77BB
blue-gray = #2d353b
include-file = bar-colors.ini

[bar/brenda]
monitor = ${env:MONITOR:}
Expand Down
Loading
0