Skip to content

Commit

Permalink
Update polybar configuration for i3 window manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Apr 26, 2024
1 parent d7e7116 commit 58cb9f8
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 21 deletions.
2 changes: 1 addition & 1 deletion home/dot_config/polybar/bars/common-top.conf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ foreground-alt = ${colors.foreground-alt}

radius = 0

modules-left = jgmenu dots apps sep window_switch sep pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-left = jgmenu dots apps sep window_switch sep rices dots pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-center = date-popup weather
modules-right = night-mode sep feh-blur-toggle sep github dots tray

Expand Down
2 changes: 1 addition & 1 deletion home/dot_config/polybar/bars/i3-top-multipart.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ foreground-alt = ${colors.foreground-alt}
radius = 4

modules-left =
modules-center = jgmenu dots apps sep window_switch sep pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-center = jgmenu dots apps sep window_switch sep rices dots pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-right =

wm-restack = i3
Expand Down
2 changes: 1 addition & 1 deletion home/dot_config/polybar/bars/i3-top.conf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ foreground-alt = ${colors.foreground-alt}

radius = 4

modules-left = jgmenu dots apps sep window_switch sep pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-left = jgmenu dots apps sep window_switch sep rices dots pulseaudio-microphone sep pulseaudio-bar sep backlight-acpi-bar
modules-center = date-popup weather
modules-right = night-mode sep feh-blur-toggle sep github dots tray

Expand Down
1 change: 1 addition & 0 deletions home/dot_config/polybar/modules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include-file = ~/.config/polybar/modules/music.conf
include-file = ~/.config/polybar/modules/net.conf
include-file = ~/.config/polybar/modules/pkg.conf
include-file = ~/.config/polybar/modules/resources.conf
include-file = ~/.config/polybar/modules/rices.conf
include-file = ~/.config/polybar/modules/tray.conf
include-file = ~/.config/polybar/modules/weather.conf
include-file = ~/.config/polybar/modules/window.conf
Expand Down
37 changes: 19 additions & 18 deletions home/dot_config/polybar/modules/menu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,61 @@
type = custom/menu

label-open-font = 2
label-open = " 󰘖"
label-open = "󰘖"
label-open-foreground = ${xrdb:color9}
label-close = " 󰘕 "
label-close = "󰘕"
label-close-font = 2
label-close-foreground = ${xrdb:color7}
label-separator = " | "
label-separator = " "
label-separator-font = 2
# Top level
menu-0-0 = ""
menu-0-0 = ""
menu-0-0-exec = #apps.open.1
menu-0-0-font = 2
menu-0-1 = ""
menu-0-1 = ""
menu-0-1-exec = #apps.open.2
menu-0-1-font = 2
menu-0-2 = "  |"
menu-0-2 = ""
menu-0-2-exec = #apps.open.3
menu-0-2-font = 2
# 1
menu-1-0 = " 󰘕 "
menu-1-0 = "󰘕"
menu-1-0-exec = #apps.open.0
menu-1-0-font = 2
menu-1-0-foreground = ${colors.urgent}
menu-1-1 = ""
menu-1-1 = ""
menu-1-1-exec = exo-open --launch WebBrowser
menu-1-2-font = 2
menu-1-2 = ""
menu-1-2 = ""
menu-1-2-exec = exo-open --launch TerminalEmulator
menu-1-3 = "  |"
menu-1-3 = ""
menu-1-3-exec = exo-open --launch FileManager
menu-1-3-font = 2
# 2
menu-2-0 = " 󰘕 "
menu-2-0 = "󰘕"
menu-2-0-exec = #apps.open.0
menu-2-0-font = 2
menu-2-0-foreground = ${colors.urgent}
menu-2-1 = " 󰍺 "
menu-2-1 = "󰍺"
menu-2-1-exec = dots rofi-randr &
menu-2-1-font = 2
menu-2-2 = ""
menu-2-2 = ""
menu-2-2-exec = dots i3-resurrect-rofi &
menu-2-2-font = 2
menu-2-3 = "  |"
menu-2-3 = ""
menu-2-3-exec = pavucontrol &
menu-2-3-font = 2
# 3
menu-3-0 = " 󰘕 "
menu-3-0 = "󰘕"
menu-3-0-exec = #apps.open.0
menu-3-0-font = 2
menu-3-0-foreground = ${colors.urgent}
menu-3-1 = ""
menu-3-1 = ""
menu-3-1-exec = betterlockscreen --lock &
menu-3-1-font = 2
menu-3-2 = ""
menu-3-2 = ""
menu-3-2-exec = systemctl -i reboot
menu-3-2-font = 2
menu-3-3 = "  |"
menu-3-3 = ""
menu-3-3-exec = systemctl -i poweroff
menu-3-3-font = 2
8 changes: 8 additions & 0 deletions home/dot_config/polybar/modules/rices.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[module/rices]
type = custom/text
label = 󰟪
label-font = 4
label-foreground = ${colors.foreground}
label-background = ${colors.background}
click-left = dots-rofi-rice-selector &
click-right = exo-open ~/.local/share/dots/rices
3 changes: 3 additions & 0 deletions home/dot_zsh/config.d/paths.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"
# Setup direnv
eval "$(direnv hook zsh)"

# Setup rbenv
eval "$(rbenv init - zsh)"

export LD_LIBRARY_PATH PATH GOPATH GOROOT

0 comments on commit 58cb9f8

Please sign in to comment.