Установил готовый bspwm на arch от Zproger. В polybar не отображаются рабочие места и при попытке переключиться они тоже не работают, хотя в конфиге прописаны. Я новичок в линуксе помогите пожалуйста!
Linux сборка от васяна - это что то новенькое. Из консоли запусти свой полибар, наверняка посыпятся ошибки, потому что конфиг не соответствует норме, после чего лезешь https://gitlab.com/polybar/polybar/-/wikis/Module:-bspwm и правишь свой конфиг
modules-left = filesystem round-left bspwm round-right
modules-center = temperature space space memory space space cpu
modules-right = battery xbacklight alsa xkeyboard round-left time round-right space wlan powermenu
запусти полибар из консоли, его скрипт должен лежать либо рядом с конфигами, либо посмотри в файле bspwmrc. Если модуль не виден - значит есть ошибки в конфиге, нужны ошибки
простой вариант коментируешь ; [module/bspwm] и все что ниже до следующего модуля, вставляешь
[module/bspwm]
type = internal/bspwm
; Only show workspaces defined on the same output as the bar
; NOTE: The bspwm and XRandR monitor names must match, which they do by default.
; Default: true
pin-workspaces = true
; Output mode flags after focused state label
; Default: false
inline-mode = false
; Create click handler used to focus workspace
; Default: true
enable-click = false
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label
; Default: false
fuzzy-match = true
Вот запуск из терминала
amper@arch ~> polybar
notice: Parsing config file: /home/amper/.config/polybar/config.ini
warn: No monitor specified, using «HDMI-1»
notice: Loading module ‘filesystem’ of type ‘custom/text’
warn: The config parameter module/filesystem.content is deprecated, use module/filesystem.format instead.
notice: Loading module ‘round-left’ of type ‘custom/text’
warn: The config parameter module/round-left.content is deprecated, use module/round-left.format instead.
notice: Loading module ‘bspwm’ of type ‘internal/bspwm’
notice: Loading module ‘round-right’ of type ‘custom/text’
warn: The config parameter module/round-right.content is deprecated, use module/round-right.format instead.
notice: Loading module ‘temperature’ of type ‘internal/temperature’
warn: module/temperature: The token %temperature% is deprecated, use %temperature-c% instead.
notice: Loading module ‘space’ of type ‘custom/text’
warn: The config parameter module/space.content is deprecated, use module/space.format instead.
notice: Loading module ‘space’ of type ‘custom/text’
warn: The config parameter module/space.content is deprecated, use module/space.format instead.
notice: Loading module ‘memory’ of type ‘internal/memory’
notice: Loading module ‘space’ of type ‘custom/text’
warn: The config parameter module/space.content is deprecated, use module/space.format instead.
notice: Loading module ‘space’ of type ‘custom/text’
warn: The config parameter module/space.content is deprecated, use module/space.format instead.
notice: Loading module ‘cpu’ of type ‘internal/cpu’
notice: Loading module ‘battery’ of type ‘internal/battery’
error: Disabling module «battery» (reason: No suitable way to get current charge state)
notice: Loading module ‘xbacklight’ of type ‘internal/xbacklight’
error: module/xbacklight: Could not get data (err: XCB_NAME (15))
error: Disabling module «xbacklight» (reason: Not supported for «HDMI-1»)
notice: Loading module ‘alsa’ of type ‘internal/alsa’
notice: Loading module ‘xkeyboard’ of type ‘internal/xkeyboard’
warn: module/xkeyboard: Malformed layout-icon ‘ru’
warn: module/xkeyboard: Malformed layout-icon ‘us’
notice: Loading module ‘round-left’ of type ‘custom/text’
warn: The config parameter module/round-left.content is deprecated, use module/round-left.format instead.
notice: Loading module ‘time’ of type ‘internal/date’
notice: Loading module ‘round-right’ of type ‘custom/text’
warn: The config parameter module/round-right.content is deprecated, use module/round-right.format instead.
notice: Loading module ‘space’ of type ‘custom/text’
warn: The config parameter module/space.content is deprecated, use module/space.format instead.
notice: Loading module ‘wlan’ of type ‘internal/network’
error: Disabling module «wlan» (reason: Invalid network interface «wlan0»)
notice: Loading module ‘powermenu’ of type ‘custom/text’
warn: The config parameter module/powermenu.content is deprecated, use module/powermenu.format instead.
notice: Loaded 18 modules
notice: Loaded font «JetBrainsMono Nerd Font:style=Bold:pixelsize=13» (name=JetBrainsMono Nerd Font, offset=3, file=/usr/share/fonts/TTF/JetBrainsMonoNerdFont-Bold.ttf)
notice: Loaded font «JetBrainsMono Nerd Font:size=18» (name=JetBrainsMono Nerd Font, offset=5, file=/usr/share/fonts/TTF/JetBrainsMonoNerdFont-Regular.ttf)
notice: Loaded font «Material Design Icons:style=Bold:size=13» (name=Nimbus Sans, offset=3, file=/usr/share/fonts/gsfonts/NimbusSans-Bold.otf)
notice: Loaded font «unifont:fontformat=truetype:size=13:antialias=true» (name=Iosevka Nerd Font, offset=0, file=/usr/share/fonts/TTF/IosevkaNerdFont-Regular.ttf)
warn: tray: bar/top.tray-position is deprecated, use the dedicated tray module to display the system tray
warn: tray: bar/top.tray-padding is deprecated, use the dedicated tray module to display the system tray
warn: Systray selection already managed (window=0x0e00006)
Тут анонимус прав, используй разметку.
На самом деле тут проще начать сначала (там часть модулей устарела, часть не загрузилась из-за проблем), заодно разберешься что к чему, сделай бекап всех конфигурационных файлов, и начнем заново. в config.ini ты вставляешь
[bar/top]
monitor=<как называется твой монитор с точки зрения системы, узнать через команду xrandr>
bottom =false
font-0 = JetBrainsMono Nerd Font:style=Bold:pixelsize=13;3
font-1 = JetBrainsMono Nerd Font:size=18;5
font-2 = Material Design Icons:style=Bold:size=13;3
font-3 = unifont:fontformat=truetype:size=13:antialias=true;
modules-left = bspwm
modules-right = date
scroll-up = #bspwm.prev
scroll-down = #bspwm.next
[module/bspwm]
type = internal/bspwm
; Only show workspaces defined on the same output as the bar
; NOTE: The bspwm and XRandR monitor names must match, which they do by default.
; But if you rename your bspwm monitors with bspc -n this option will no longer
; behave correctly.
; Default: true
pin-workspaces = true
; Output mode flags after focused state label
; Default: false
inline-mode = false
; Create click handler used to focus workspace
; Default: true
enable-click = true
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = true
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
; ws-icon-[0-9]+ = <label>;<icon>
; Note that the <label> needs to correspond with the bspwm workspace name
; Neither <label> nor <icon> can contain a semicolon (;)
;ws-icon-0 = code;♚
;ws-icon-1 = office;♛
;ws-icon-2 = graphics;♜
;ws-icon-3 = mail;♝
;ws-icon-4 = web;♞
;ws-icon-default = %name%
; Available tags:
; <label-monitor>
; <label-state> - gets replaced with <label-(focused|urgent|occupied|empty)>
; <label-mode> - gets replaced with <label-(monocle|tiled|fullscreen|floating|locked|sticky|private)>
; Default: <label-state>
format = <label-state> <label-mode>
; Available tokens:
; %name%
; Default: %name%
label-monitor = %name%
; If any values for label-dimmed-N are defined, the workspace/mode
; colors will get overridden with those values if the monitor is out of focus
; To only override workspaces in a specific state, use:
; label-dimmed-focused
; label-dimmed-occupied
; label-dimmed-urgent
; label-dimmed-empty
label-dimmed-foreground = #555
;label-dimmed-underline = ${bar/top.background}
label-dimmed-focused-background = #f00
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-focused = %name%
label-focused-foreground = #ffffff
label-focused-background = #3f3f3f
label-focused-underline = #fba922
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-occupied = %name%
label-occupied-underline = #555555
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-urgent = %name%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
label-empty = %name%
label-empty-foreground = #55
; The following labels will be used to indicate the layout/mode
; for the focused workspace. Requires <label-mode>
;
; Available tokens:
; None
;label-monocle =
;label-tiled =
;label-fullscreen =
;label-floating =
;label-pseudotiled = P
;label-locked =
;label-locked-foreground = #bd2c40
;label-sticky =
;label-sticky-foreground = #fba922
;label-private =
;label-private-foreground = #bd2c40
;label-marked = M
; Separator in between workspaces
label-separator = |
label-separator-padding = 2
label-separator-foreground = #ffb52a
[module/date]
type = internal/date
; Seconds to sleep between updates
; Default: 1.0
interval = 1.0
; See "https://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %Y-%m-%d%
; Optional time format
time = %H:%M
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
; Available tags:
; <label> (default)
format = 🕓 <label>
;format-background = #55ff3399
format-foreground = #fff
; Available tokens:
; %date%
; %time%
; Default: %date%
label = %date% %time%
label-font = 3
;label-foreground = #9A32DB
этого будет более чем достаточно. На экране загрузятся только два модуля, сами воркспасы и дата и время