forked from Snoweuph/Dotfiles
Update workspaces.conf, main.ini, and 5 more files...
This commit is contained in:
parent
b68a1190d9
commit
d1f5df3d92
7 changed files with 99 additions and 4 deletions
|
@ -22,10 +22,13 @@ set $ws10 "10"
|
|||
# Bind Workspaces to Screens
|
||||
workspace $ws1 output $monitor1
|
||||
workspace $ws2 output $monitor1
|
||||
|
||||
workspace $ws3 output $monitor2
|
||||
workspace $ws4 output $monitor2
|
||||
workspace $ws5 output $monitor3
|
||||
workspace $ws5 output $monitor2
|
||||
|
||||
workspace $ws6 output $monitor3
|
||||
workspace $ws7 output $monitor3
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
inherit = base/bar
|
||||
|
||||
modules-left = cpm space-invert sep-b
|
||||
modules-center = xworkspaces
|
||||
modules-center = single-xworkspaces
|
||||
modules-right = pulseaudio space sep-a space-invert dunst-snooze space-invert sep-b space time space sep-a date space-invert
|
||||
|
||||
tray-position = left
|
||||
|
|
13
polybar/bars/single.ini
Normal file
13
polybar/bars/single.ini
Normal file
|
@ -0,0 +1,13 @@
|
|||
[bar/single]
|
||||
inherit = base/bar
|
||||
|
||||
modules-left = cpm space-invert sep-b
|
||||
modules-center = xworkspaces
|
||||
modules-right = pulseaudio space sep-a space-invert dunst-snooze space-invert sep-b space time space sep-a date space-invert
|
||||
|
||||
tray-position = left
|
||||
tray-detached = true
|
||||
tray-scale = 0.9
|
||||
|
||||
tray-offset-x = 130
|
||||
tray-offset-y = 3
|
17
polybar/bars/workspaces.ini
Normal file
17
polybar/bars/workspaces.ini
Normal file
|
@ -0,0 +1,17 @@
|
|||
[bar/workspaces]
|
||||
inherit = base/bar
|
||||
|
||||
modules-center = single-xworkspaces
|
||||
|
||||
bottom = true
|
||||
|
||||
width = 12%
|
||||
offset-x = ${style.double-gaps}
|
||||
offset-y = ${style.double-gaps}
|
||||
|
||||
border-size = ${style.border-thickness}
|
||||
border-bottom-size = ${style.border-thickness}
|
||||
border-color = ${colors.primary-accent}
|
||||
|
||||
override-redirect = true
|
||||
wm-restack = ${env:RESTACK:}
|
48
polybar/modules/single-xworspaces.ini
Normal file
48
polybar/modules/single-xworspaces.ini
Normal file
|
@ -0,0 +1,48 @@
|
|||
[module/single-xworkspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
#Icons
|
||||
# Consoles
|
||||
# ﭮ Discord
|
||||
# Firefox
|
||||
# Music
|
||||
# Code
|
||||
# Steam
|
||||
# Files
|
||||
|
||||
icon-default = ""
|
||||
icon-0 = "1;"
|
||||
icon-1 = "2;"
|
||||
|
||||
icon-2 = "3;"
|
||||
icon-3 = "4;"
|
||||
icon-4 = "5;"
|
||||
|
||||
icon-5 = "6;ﭮ"
|
||||
icon-9 = "10;"
|
||||
|
||||
icon-6 = "7"
|
||||
icon-7 = "8"
|
||||
icon-8 = "9"
|
||||
|
||||
label-active = "%icon%"
|
||||
label-active-background = ${colors.primary-accent}
|
||||
label-active-foreground = ${colors.primary-background}
|
||||
label-active-underline = ${colors.primary-accent}
|
||||
label-active-padding = 0
|
||||
label-active-font = 2
|
||||
|
||||
label-occupied = %icon%
|
||||
label-occupied-padding = 1
|
||||
label-occupied-font = 2
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-foreground = ${colors.warn}
|
||||
label-urgent-padding = 1
|
||||
label-urgent-font = 2
|
||||
|
||||
label-empty = %icon%
|
||||
label-empty-padding = 1
|
||||
label-empty-font = 2
|
||||
|
||||
pin-workspaces = true
|
|
@ -2,5 +2,17 @@
|
|||
|
||||
killall -q polybar
|
||||
|
||||
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
||||
polybar main 2>&1 | tee -a /tmp/polybar1.log & disown
|
||||
restack_list=('' 'i3' '')
|
||||
|
||||
i=0
|
||||
while read bar; do
|
||||
if [[ $i -eq 0 ]]; then
|
||||
# Launch Main Bar
|
||||
MONITOR=$bar polybar main 2>&1 | tee -a /tmp/polybar_$bar.log & disown
|
||||
else
|
||||
# Launch Sub Bar
|
||||
MONITOR=$bar RESTACK=${restack_list[$i]} polybar workspaces 2>&1 | tee -a /tmp/polybar_$bar.log & disown
|
||||
fi
|
||||
|
||||
i=$((i + 1))
|
||||
done < <(polybar -M | cut -d ':' -f 1)
|
||||
|
|
|
@ -54,6 +54,8 @@ dunst-snooze = $RICE_POLYBAR_PATH/scripts/dunst-snooze.sh \"$RICE_COLOR_SECONDAR
|
|||
echo "# $RICE_GENERATED_HEADER
|
||||
[style]
|
||||
gaps = $RICE_GAPS
|
||||
double-gaps = $(($RICE_GAPS * 2))
|
||||
border-thickness = $RICE_BORDER_THICKNESS
|
||||
border-radius = $RICE_BORDER_RADIUS
|
||||
|
||||
" > $RICE_POLYBAR_CONFIG_PATH/style.nogit.ini
|
||||
|
|
Loading…
Reference in a new issue