LINUX.ORG.RU

Пропали рабочие места в bspwm

 


0

1

Установил готовый bspwm на arch от Zproger. В polybar не отображаются рабочие места и при попытке переключиться они тоже не работают, хотя в конфиге прописаны. Я новичок в линуксе помогите пожалуйста!



Последнее исправление: Dimez (всего исправлений: 1)

Linux сборка от васяна - это что то новенькое. Из консоли запусти свой полибар, наверняка посыпятся ошибки, потому что конфиг не соответствует норме, после чего лезешь https://gitlab.com/polybar/polybar/-/wikis/Module:-bspwm и правишь свой конфиг

Silerus ★★★★★
()

[global/wm] include-file = $HOME/.config/polybar/colors.ini include-file = $HOME/.config/polybar/modules.ini

[bar/top] tray-position = right tray-padding =5 width = 98% height = 26 padding-left =1 padding-right =0 background = ${colors.background} foreground = ${colors.foreground} bottom = false border-top-size = 7 border-bottom-size = 7 border-top-color = ${colors.background} border-bottom-color = ${colors.background} offset-x = 1% offset-y = 0.5% fixed-center = true line-size = 3 wm-restack = 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

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;

archwinbro
() автор топика
Ответ на: комментарий от Silerus

[module/round-left] type = custom/text content = %{T3} %{T-} content-foreground = #2b2f37

[module/round-right] type = custom/text content = %{T3}%{T-} content-foreground = #2b2f37

[module/temperature] type = internal/temperature thermal-zone = 0 warn-temperature = 70

format = format-warn = format-padding = 0 label = %temperature% label-warn = %temperature% ramp-0 = «» ramp-foreground = #a4ebf3

[module/bspwm] type = internal/bspwm

pin-workspaces = true inline-mode = true enable-click = true enable-scroll = true reverse-scroll = false

format = ws-icon-0 = 1;%{F#F9DE8F}1 ws-icon-1 = 2;%{F#ff9b93}2 ws-icon-2 = 3;%{F#95e1d3}3 ws-icon-3 = 4;%{F#81A1C1}4 ws-icon-4 = 5;%{F#A3BE8C}5 ws-icon-5 = 6;%{F#F9DE8F}6 ws-icon-6 = 7;%{F#ff9b93}7

label-separator = "" label-separator-background = #2b2f37

label-focused = %icon%
label-focused-foreground = ${colors.foreground} label-focused-underline = #565c64 label-focused-padding = 1 label-focused-background = #2b2f37

label-occupied = %icon% label-occupied-foreground = #646870 label-occupied-background = #2b2f37 label-occupied-padding = 1

label-empty = %icon% label-empty-foreground = ${colors.foreground} label-empty-padding = 1 label-empty-background = #2b2f37

label-urgent = %icon% label-urgent-foreground = #88C0D0 label-urgent-background = #2b2f37 label-urgent-padding = 1

[module/alsa] type = internal/alsa format-volume = format-volume-padding = 1 format-muted = 󰖁 format-muted-padding = 1 label-volume = %percentage%% ramp-volume-0 = %{F#d35f5e}󰖀 %{F-} ramp-volume-1 = %{F#d35f5e}󰖀 %{F-} ramp-volume-2 = %{F#d35f5e}󰖀 %{F-} ramp-volume-3 = %{F#d35f5e}󰖀 %{F-} ramp-volume-4 = %{F#d35f5e}󰖀 %{F-} ramp-volume-5 = %{F#d35f5e}󰕾 %{F-} ramp-volume-6 = %{F#d35f5e}󰕾 %{F-} ramp-volume-7 = %{F#d35f5e}󰕾 %{F-} ramp-volume-8 = %{F#d35f5e}󰕾 %{F-} ramp-volume-9 = %{F#d35f5e}󰕾 %{F-} ramp-headphones-0 =  ramp-headphones-1 =  format-volume-foreground = ${colors.foreground} format-muted-foreground = #d35f5e

[module/time] type = internal/date interval = 60 format = format-background = #2b2f37 date = %{F#888e96} %H:%M %p%{F-} time-alt = %{F#61afef} %a, %d %b %Y%{F-} label = %date%%time%

[module/memory] type = internal/memory interval = 2 format = format-prefix = " " format-padding = 1 format-foreground = #d19a66 label = %gb_used%

[module/filesystem] type = custom/text content =" " content-padding =1 click-left = rofi -show drun content-foreground = #61afef

[module/wlan] type = internal/network interface = wlan0 interval = 3.0 format-connected = label-connected = «%{A1:sh $HOME/bin/wifimenu:} %{A}» label-connected-foreground = #A3BE8C format-disconnected = label-disconnected = «%{A1:sh $HOME/bin/wifimenu:}󰖪 %{A}» label-disconnected-foreground = #D35F5E

[module/ethernet] type = internal/network interface = ${system.network_interface_wired} format-connected = format-connected-prefix = "󰈁 " format-connected-padding = 1 format-disconnected = format-disconnected-prefix = "󰈂 " format-disconnected-padding = 1 label-connected = «%{A1:networkmanager_dmenu &:}%downspeed%|%upspeed%%{A}» label-disconnected = «%{A1:networkmanager_dmenu &:}Offline%{A}»

[module/battery] type = internal/battery full-at = 98 low-at = 10

battery = BAT1 adapter = ACAD poll-interval = 5

time-format = %H:%M format-charging = format-discharging = format-full = format-low =

label-charging = "%percentage%% " label-discharging = "%percentage%% " label-full = " 100% " label-low = "%percentage% "

ramp-capacity-0 = " " ramp-capacity-1 = " " ramp-capacity-2 = " " ramp-capacity-3 = " " ramp-capacity-4 = " " bar-capacity-width = 10

animation-charging-0 = " " animation-charging-1 = " " animation-charging-2 = " " animation-charging-3 = " " animation-charging-4 = " " animation-charging-framerate = 910

animation-discharging-0 = " " animation-discharging-1 = " " animation-discharging-2 = " " animation-discharging-3 = " " animation-discharging-4 = " " animation-discharging-framerate = 500

animation-low-0 = " " animation-low-1 = " " animation-low-framerate = 1500

animation-low-foreground = #D35F5D format-charging-foreground = ${colors.color4} label-charging-foreground = ${colors.foreground} format-discharging-foreground = ${colors.foreground} label-discharging-foreground = ${colors.foreground} format-full-prefix-foreground = #A0E8A2 format-foreground = ${colors.color4} format-background = #2b2f37 ramp-capacity-foreground = #A0E8A2
animation-charging-foreground = #DF8890

[module/xbacklight] type = internal/xbacklight format = % format-prefix = " " label = %percentage% format-prefix-foreground = #61afef label-foreground = #D8DEE9 format-padding = 1

[module/powermenu] type = custom/text content =" " content-padding = 1 click-left = sh $HOME/bin/powermenu & content-foreground = #d35f5e

[module/cpu] type = internal/cpu interval = 2 format-prefix = " " format = label = %percentage%% format-foreground = #989cff

[module/xwindow] type = internal/xwindow label = %title:0:30:…

[module/space] type = custom/text content = " "

[module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock blacklist-1 = scroll lock format = label-layout-padding = 1 label-layout-foreground = #fff label-indicator-on = %name% layout-icon-default = some-icon layout-icon-0 = ru layout-icon-1 = us label-indicator-on-capslock = ! label-indicator-off-capslock =

archwinbro
() автор топика
Ответ на: комментарий от archwinbro

запусти полибар из консоли, его скрипт должен лежать либо рядом с конфигами, либо посмотри в файле bspwmrc. Если модуль не виден - значит есть ошибки в конфиге, нужны ошибки

Silerus ★★★★★
()
Ответ на: комментарий от archwinbro

простой вариант коментируешь ; [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

перегружаешься

Silerus ★★★★★
()
Ответ на: комментарий от Silerus

Вот запуск из терминала 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)

archwinbro
() автор топика
Ответ на: комментарий от archwinbro

Тут анонимус прав, используй разметку. На самом деле тут проще начать сначала (там часть модулей устарела, часть не загрузилась из-за проблем), заодно разберешься что к чему, сделай бекап всех конфигурационных файлов, и начнем заново. в 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

этого будет более чем достаточно. На экране загрузятся только два модуля, сами воркспасы и дата и время

Silerus ★★★★★
()
Ответ на: комментарий от Silerus

Как узнать название монитора я получил такой вывод:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 DP-1 disconnected primary (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis) HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 479mm x 260mm 1920x1080 64.95*+ 75.00 59.96 60.00 50.00 59.94 59.93 1680x1050 59.95 59.88 1400x1050 74.76 59.98 1600x900 59.94 59.95 60.00 59.82 1280x1024 75.02 72.05 60.02 1440x900 74.98 59.90 1400x900 59.96 59.88 1280x960 60.00 1440x810 59.97 1368x768 59.88 59.85 1366x768 59.79 1280x800 59.99 59.97 59.81 59.91 1152x864 75.00 1280x768 59.87 1280x720 60.00 59.99 59.86 60.00 50.00 59.94 59.74 1024x768 75.05 60.04 75.03 70.07 60.00 960x720 75.00 60.00 928x696 75.00 60.05 896x672 75.05 60.01 1024x576 59.95 59.96 59.90 59.82 960x600 59.93 60.00 832x624 74.55 960x540 59.96 59.99 59.63 59.82 800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25 840x525 60.01 59.88 864x486 59.92 59.57 720x576 50.00 700x525 74.76 59.98 800x450 59.95 59.82 720x480 60.00 59.94 640x512 75.02 60.02 700x450 59.96 59.88 640x480 60.00 75.00 72.81 75.00 66.67 60.00 59.94 720x405 59.51 58.99 720x400 70.08 684x384 59.88 59.85 640x400 59.88 59.98 576x432 75.00 640x360 59.86 59.83 59.84 59.32 512x384 75.03 70.07 60.00 512x288 60.00 59.92 416x312 74.66 480x270 59.63 59.82 400x300 72.19 75.12 60.32 56.34 432x243 59.92 59.57 320x240 72.81 75.00 60.05 360x202 59.51 59.13 320x180 59.84 59.32 DVI-D-1 disconnected (normal left inverted right x axis y axis)

archwinbro
() автор топика
Ответ на: комментарий от Nervous

Как узнать название монитора?

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DP-1 disconnected primary (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 479mm x 260mm
   1920x1080     64.95*+  75.00    59.96    60.00    50.00    59.94    59.93
   1680x1050     59.95    59.88
   1400x1050     74.76    59.98
   1600x900      59.94    59.95    60.00    59.82
   1280x1024     75.02    72.05    60.02
   1440x900      74.98    59.90
   1400x900      59.96    59.88
   1280x960      60.00
   1440x810      59.97
   1368x768      59.88    59.85
   1366x768      59.79
   1280x800      59.99    59.97    59.81    59.91
   1152x864      75.00
   1280x768      59.87
   1280x720      60.00    59.99    59.86    60.00    50.00    59.94    59.74
   1024x768      75.05    60.04    75.03    70.07    60.00
   960x720       75.00    60.00
   928x696       75.00    60.05
   896x672       75.05    60.01
   1024x576      59.95    59.96    59.90    59.82
   960x600       59.93    60.00
   832x624       74.55
   960x540       59.96    59.99    59.63    59.82
   800x600       75.00    70.00    65.00    60.00    72.19    75.00    60.32    56.25
   840x525       60.01    59.88
   864x486       59.92    59.57
   720x576       50.00
   700x525       74.76    59.98
   800x450       59.95    59.82
   720x480       60.00    59.94
   640x512       75.02    60.02
   700x450       59.96    59.88
   640x480       60.00    75.00    72.81    75.00    66.67    60.00    59.94
   720x405       59.51    58.99
   720x400       70.08
   684x384       59.88    59.85
   640x400       59.88    59.98
   576x432       75.00
   640x360       59.86    59.83    59.84    59.32
   512x384       75.03    70.07    60.00
   512x288       60.00    59.92
   416x312       74.66
   480x270       59.63    59.82
   400x300       72.19    75.12    60.32    56.34
   432x243       59.92    59.57
   320x240       72.81    75.00    60.05
   360x202       59.51    59.13
   320x180       59.84    59.32
DVI-D-1 disconnected (normal left inverted right x axis y axis)
archwinbro
() автор топика

Пропали рабочие места в bspwm

А у нас это по всей стране!!!!1! Вы если решение найдёте, передайте, пожалуйста немецкому правительству. Вдруг тоже пригодится.

ugoday ★★★★★
()