Ver Fonte

Update laptop external

Vitaliy Timtsurak há 3 meses atrás
pai
commit
e0bb9d35b5

+ 66 - 4
config/polybar/config.ini

@@ -115,6 +115,67 @@ tray-position = right
 tray-padding = 2
 
 wm-restack = bspwm
+
+[bar/laptop_external]
+; Выбор монитора. 'primary' - основной.
+; Узнать: 'xrandr -q' (например, 'eDP-1')
+#monitor = ${env:MONITOR:primary}
+monitor = HDMI-1-0
+
+; Геометрия
+width = 95%
+offset-x = 2.5%
+
+height = 32
+radius = 8.0
+
+; [!] Эта настройка оцентрует бар,
+; так как его ширина теперь меньше 100%
+fixed-center = true
+
+; Расположение (false = вверху)
+bottom = false
+
+; Отступы
+padding-left = 1
+padding-right = 1
+
+; Отступы для модулей
+module-margin = 1
+
+; Цвета
+background = ${colors.background}
+foreground = ${colors.foreground}
+
+; Шрифты
+; [!] Мы используем 'Hack Nerd Font', как ты и просил.
+; 'font-0' - основной шрифт
+; 'font-1' - шрифт с иконками (Nerd Font)
+font-0 = "Hack Nerd Font:style=Regular:size=12;2"
+font-1 = "Hack Nerd Font:style=Bold:size=12;2"
+
+
+; Для больших иконок
+font-2 = "Hack Nerd Font:style=Regular:size=12;3"
+
+; Для цифр с номерами workspace
+font-3 = "Hack Nerd Font:style=Bold:size=18;3"
+
+; Расположение модулей
+separator = |
+modules-left = arch-icon bspwm xwindow
+modules-center = date
+modules-right = network-wireless
+
+; Включить поддержку IPC (для отправки команд в polybar)
+enable-ipc = true
+
+; Системный трей
+tray-position = right
+tray-padding = 2
+
+wm-restack = bspwm
+
 [bar/bar1]
 ; Выбор монитора. 'primary' - основной.
 ; Узнать: 'xrandr -q' (например, 'eDP-1')
@@ -347,7 +408,7 @@ scroll-down = pulseaudio-ctl down 5
 type = internal/network
 ; [!] Замени 'wlan0' на имя своего Wi-Fi интерфейса
 ; Узнать: 'ip link'
-interface = wlp0s20f0u7
+interface = wlan0:
 interface-type = wireless
 interval = 3.0
 
@@ -363,7 +424,8 @@ label-disconnected-foreground = ${colors.disabled}
 
 ; [!] Управление сетью (как ты просил)
 ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
-click-left = networkmanager_dmenu
+click-right = alacritty -e nmtui &
+click-left = networkmanager_dmenu &
 
 ; [Модуль] Сеть (Wired)
 [module/network-wired]
@@ -421,7 +483,7 @@ label = %output%
 ; Действие
 ; ЛКМ: Запустить обновление системы в терминале
 ; [!] Замени 'alacritty' на свой терминал (kitty, st, etc.)
-click-left = alacritty -e sudo pacman -Sy &
+click-left = alacritty -e sudo pacman -Syu &
 
 ; [Модуль] CPU
 [module/cpu]
@@ -525,7 +587,7 @@ animation-charging-framerate = 750
 type = custom/text
 ; Иконка выключения
 content = 
-content-foreground = ${colors.alert}
+content-foreground = ${colors.foreground}
 content-padding = 1
 
 ; ЛКМ: запустить скрипт powermenu

+ 2 - 2
config/polybar/launch.sh

@@ -23,8 +23,8 @@ then
 	notify-send "Запуск профиля: $profile"
 	# Запуск Polybar
 	if [[ $(xrandr -q | grep " connected" | wc -l) -ge 2 ]]; then
-		polybar bar1 &
-		polybar bar2 &
+		polybar laptop &
+		polybar laptop_external &
 	else
 		polybar laptop &
 	fi

+ 2 - 2
config/polybar/scripts/get_bluetooth_status.sh

@@ -2,8 +2,8 @@
 # ~/.config/polybar/scripts/get_bluetooth_status.sh
 
 # Цвета из конфига polybar (если хочешь)
-COLOR_DISABLED="#665c54" # ${colors.disabled}
-COLOR_DEFAULT="#ebdbb2"  # ${colors.foreground}
+COLOR_DISABLED="#ff5555" # ${colors.disabled}
+COLOR_DEFAULT="#1793d1"  # ${colors.foreground}
 
 if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]; then
   # Выключено