Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to install polybar correctly (i3wm/f25)?

Hi folks, I just installed i3 wm and i like it and then i went to install polybar for some customization but i got stuck at polybar example terminal output-

 azrulFTW  ~  git clone --branch 3.0.5 --recursive https://github.com/jaagr/polybar
Cloning into 'polybar'...
remote: Counting objects: 10682, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 10682 (delta 6), reused 0 (delta 0), pack-reused 10660
Receiving objects: 100% (10682/10682), 6.54 MiB | 212.00 KiB/s, done.
Resolving deltas: 100% (7950/7950), done.
Checking connectivity... done.
Note: checking out '4e2e2a7a5e0fe81669031ade0f60e1d379b6516d'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Submodule 'lib/i3ipcpp' (https://github.com/jaagr/i3ipcpp) registered for path 'lib/i3ipcpp'
Submodule 'lib/xpp' (https://github.com/jaagr/xpp) registered for path 'lib/xpp'
Cloning into '/home/azrulFTW/polybar/lib/i3ipcpp'...
Cloning into '/home/azrulFTW/polybar/lib/xpp'...
Submodule path 'lib/i3ipcpp': checked out '8ed783100bbc8053fd7d8e19cef58cd097ff23f7'
Submodule path 'lib/xpp': checked out '61f42bbca835b3cf9968de42fd46ffe404b73dca'
 azrulFTW  ~  mkdir polybar/build
 azrulFTW  ~  cd polybar/build
 azrulFTW  ~  polybar  build  cmake
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

 azrulFTW  ~  polybar  build  cmake ..
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-6.3.1
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Checking for module 'cairo-fc'
--   Found cairo-fc, version 1.14.8
-- Checking for module 'xcb-xkb'
--   Found xcb-xkb, version 1.12
-- Checking for module 'xcb-randr'
--   Found xcb-randr, version 1.12
--  Build:
--    Type: RelWithDebInfo
--    CC: /usr/lib64/ccache/cc  -O2 -g -DNDEBUG
--    CXX: /usr/lib64/ccache/c++  -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
--    LD: /usr/bin/ld  
--  Targets:
--    polybar-msg
--    testsuite
--  Module support:
--    alsa
--    curl
--    i3
--    mpd
--    network
--  X extensions:
--    xcb-randr
--    xcb-randr (monitor support)
--    xcb-render
--    xcb-damage
--    xcb-sync
--    xcb-composite
--    xcb-xkb
--    xcb-xrm
-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
-- Checking for module 'xcb-proto'
--   Found xcb-proto, version 1.12
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.13", minimum required is "2.7") 
-- XCB[XCB]: Found component XCB
-- Found XCB_XCB: /usr/lib64/libxcb.so  
-- XCB[ICCCM]: Found component ICCCM
-- Found XCB_ICCCM: /usr/lib64/libxcb-icccm.so  
-- XCB[EWMH]: Found component EWMH
-- Found XCB_EWMH: /usr/lib64/libxcb-ewmh.so  
-- XCB[UTIL]: Found component UTIL
-- Found XCB_UTIL: /usr/lib64/libxcb-util.so  
-- XCB[IMAGE]: Found component IMAGE
-- Found XCB_IMAGE: /usr/lib64/libxcb-image.so  
-- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-icccm.so;/usr/lib64/libxcb-ewmh.so;/usr/lib64/libxcb-util.so;/usr/lib64/libxcb-image.so  
-- Searching for xcbgen with python2
-- Found xcbgen in /usr/lib/python2.7/site-packages
-- XCB[RANDR]: Found component RANDR
-- Found XCB_RANDR: /usr/lib64/libxcb-randr.so  
-- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-icccm.so;/usr/lib64/libxcb-ewmh.so;/usr/lib64/libxcb-util.so;/usr/lib64/libxcb-image.so;/usr/lib64/libxcb-randr.so  
-- XCB[XKB]: Found component XKB
-- Found XCB_XKB: /usr/lib64/libxcb-xkb.so  
-- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-icccm.so;/usr/lib64/libxcb-ewmh.so;/usr/lib64/libxcb-util.so;/usr/lib64/libxcb-image.so;/usr/lib64/libxcb-randr.so;/usr/lib64/libxcb-xkb.so  
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Checking for module 'jsoncpp>=1.7.7'
--   
-- Could not find jsoncpp>=1.7.7 -- building static lib...
-- JsonCpp Version: 1.7.7
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.13", minimum required is "2.6") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/azrulFTW/polybar/build
 azrulFTW  ~  polybar  build  sudo make install
[sudo] password for azrulFTW: 
Scanning dependencies of target xpp
[  1%] Linking CXX static library libxpp.a
list: size, ['red', 'green', 'blue']
list: size, ['red', 'green', 'blue']
[  1%] Built target xpp
Scanning dependencies of target jsoncpp_lib_static
[  2%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o
[  3%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_value.cpp.o
[  5%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_writer.cpp.o
[  6%] Linking CXX static library libjsoncpp.a
[  6%] Built target jsoncpp_lib_static
Scanning dependencies of target i3ipc++
[  7%] Building CXX object lib/i3ipcpp/CMakeFiles/i3ipc++.dir/src/ipc.cpp.o
[  8%] Building CXX object lib/i3ipcpp/CMakeFiles/i3ipc++.dir/src/ipc-util.cpp.o
[ 10%] Linking CXX static library libi3ipc++.a
[ 10%] Built target i3ipc++
Scanning dependencies of target polybar
[ 11%] Building CXX object bin/CMakeFiles/polybar.dir/cairo/utils.cpp.o
[ 12%] Building CXX object bin/CMakeFiles/polybar.dir/components/bar.cpp.o
[ 14%] Building CXX object bin/CMakeFiles/polybar.dir/components/builder.cpp.o
[ 15%] Building CXX object bin/CMakeFiles/polybar.dir/components/command_line.cpp.o
[ 16%] Building CXX object bin/CMakeFiles/polybar.dir/components/config.cpp.o
[ 17%] Building CXX object bin/CMakeFiles/polybar.dir/components/controller.cpp.o
[ 19%] Building CXX object bin/CMakeFiles/polybar.dir/components/ipc.cpp.o
[ 20%] Building CXX object bin/CMakeFiles/polybar.dir/components/logger.cpp.o
[ 21%] Building CXX object bin/CMakeFiles/polybar.dir/components/parser.cpp.o
[ 23%] Building CXX object bin/CMakeFiles/polybar.dir/components/renderer.cpp.o
[ 24%] Building CXX object bin/CMakeFiles/polybar.dir/components/screen.cpp.o
[ 25%] Building CXX object bin/CMakeFiles/polybar.dir/components/taskqueue.cpp.o
[ 26%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/animation.cpp.o
[ 28%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/iconset.cpp.o
[ 29%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/label.cpp.o
[ 30%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/progressbar.cpp.o
[ 32%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/ramp.cpp.o
[ 33%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_emitter.cpp.o
[ 34%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_receiver.cpp.o
[ 35%] Building CXX object bin/CMakeFiles/polybar.dir/main.cpp.o
[ 37%] Building CXX object bin/CMakeFiles/polybar.dir/modules/backlight.cpp.o
[ 38%] Building CXX object bin/CMakeFiles/polybar.dir/modules/battery.cpp.o
[ 39%] Building CXX object bin/CMakeFiles/polybar.dir/modules/bspwm.cpp.o
[ 41%] Building CXX object bin/CMakeFiles/polybar.dir/modules/counter.cpp.o
[ 42%] Building CXX object bin/CMakeFiles/polybar.dir/modules/cpu.cpp.o
[ 43%] Building CXX object bin/CMakeFiles/polybar.dir/modules/date.cpp.o
[ 44%] Building CXX object bin/CMakeFiles/polybar.dir/modules/fs.cpp.o
[ 46%] Building CXX object bin/CMakeFiles/polybar.dir/modules/i3.cpp.o
[ 47%] Building CXX object bin/CMakeFiles/polybar.dir/modules/ipc.cpp.o
[ 48%] Building CXX object bin/CMakeFiles/polybar.dir/modules/memory.cpp.o
[ 50%] Building CXX object bin/CMakeFiles/polybar.dir/modules/menu.cpp.o
[ 51%] Building CXX object bin/CMakeFiles/polybar.dir/modules/meta/base.cpp.o
[ 52%] Building CXX object bin/CMakeFiles/polybar.dir/modules/script.cpp.o
[ 53%] Building CXX object bin/CMakeFiles/polybar.dir/modules/systray.cpp.o
[ 55%] Building CXX object bin/CMakeFiles/polybar.dir/modules/temperature.cpp.o
[ 56%] Building CXX object bin/CMakeFiles/polybar.dir/modules/text.cpp.o
[ 57%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xbacklight.cpp.o
[ 58%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xkeyboard.cpp.o
[ 60%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xwindow.cpp.o
[ 61%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xworkspaces.cpp.o
[ 62%] Building CXX object bin/CMakeFiles/polybar.dir/utils/bspwm.cpp.o
[ 64%] Building CXX object bin/CMakeFiles/polybar.dir/utils/command.cpp.o
[ 65%] Building CXX object bin/CMakeFiles/polybar.dir/utils/concurrency.cpp.o
[ 66%] Building CXX object bin/CMakeFiles/polybar.dir/utils/env.cpp.o
[ 67%] Building CXX object bin/CMakeFiles/polybar.dir/utils/factory.cpp.o
[ 69%] Building CXX object bin/CMakeFiles/polybar.dir/utils/file.cpp.o
[ 70%] Building CXX object bin/CMakeFiles/polybar.dir/utils/i3.cpp.o
[ 71%] Building CXX object bin/CMakeFiles/polybar.dir/utils/inotify.cpp.o
[ 73%] Building CXX object bin/CMakeFiles/polybar.dir/utils/io.cpp.o
[ 74%] Building CXX object bin/CMakeFiles/polybar.dir/utils/process.cpp.o
[ 75%] Building CXX object bin/CMakeFiles/polybar.dir/utils/socket.cpp.o
[ 76%] Building CXX object bin/CMakeFiles/polybar.dir/utils/string.cpp.o
[ 78%] Building CXX object bin/CMakeFiles/polybar.dir/utils/throttle.cpp.o
[ 79%] Building CXX object bin/CMakeFiles/polybar.dir/x11/atoms.cpp.o
[ 80%] Building CXX object bin/CMakeFiles/polybar.dir/x11/connection.cpp.o
[ 82%] Building CXX object bin/CMakeFiles/polybar.dir/x11/ewmh.cpp.o
[ 83%] Building CXX object bin/CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o
[ 84%] Building CXX object bin/CMakeFiles/polybar.dir/x11/extensions/xkb.cpp.o
[ 85%] Building CXX object bin/CMakeFiles/polybar.dir/x11/icccm.cpp.o
[ 87%] Building CXX object bin/CMakeFiles/polybar.dir/x11/registry.cpp.o
[ 88%] Building CXX object bin/CMakeFiles/polybar.dir/x11/tray_client.cpp.o
[ 89%] Building CXX object bin/CMakeFiles/polybar.dir/x11/tray_manager.cpp.o
[ 91%] Building CXX object bin/CMakeFiles/polybar.dir/x11/window.cpp.o
[ 92%] Building CXX object bin/CMakeFiles/polybar.dir/x11/winspec.cpp.o
[ 93%] Building CXX object bin/CMakeFiles/polybar.dir/x11/xembed.cpp.o
[ 94%] Linking CXX executable polybar
[ 94%] Built target polybar
Scanning dependencies of target polybar-msg
[ 96%] Building CXX object bin/CMakeFiles/polybar-msg.dir/ipc.cpp.o
[ 97%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/env.cpp.o
[ 98%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/file.cpp.o
[100%] Linking CXX executable polybar-msg
[100%] Built target polybar-msg
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/share/doc/polybar/config
-- Installing: /usr/local/share/zsh/site-functions/_polybar
-- Installing: /usr/local/share/zsh/site-functions/_polybar_msg
-- Installing: /usr/local/share/man/man1/polybar.1
-- Installing: /usr/local/bin/polybar
-- Installing: /usr/local/bin/polybar-msg
 azrulFTW  ~  polybar  build  make userconfig
[  5%] Built target jsoncpp_lib_static
[  6%] Built target xpp
[ 10%] Built target i3ipc++
[100%] Built target polybar
Scanning dependencies of target userconfig
-- Installing: /home/azrulFTW/.config/polybar/config
[100%] Built target userconfig
azrulFTW  ~  sudo install -Dm644 /usr/share/doc/polybar/config $HOME/.config/polybar/config
[sudo] password for azrulFTW: 
 azrulFTW  ~  polybar example
error: Undefined bar: example