{{tag>[linux Lenovo x1 carbon 2015]}}
=====Lenovo X1 Carbon 2015 - Fedora / bspwm=====
====Install bspwm and sxhkd====
* See [[bpswm]]
====Disable services i don't use===
* Disable fprintd:dnf erase fprintd
====X DPI====
* Determine display size ''xdpyinfo | grep -B 2 resolution'' and configure it in ''/etc/X11/xorg.conf.d/90-monitor.conf'':
Section "Monitor"
Identifier ""
DisplaySize 325 182 # In millimeters
====X Cursor====
* Set cursor on bspwm startup in ''bspwmrc'':
xsetroot -xcf /usr/share/icons/whiteglass/cursors/left_ptr 48
====Fonts====
* Edit ''~/.Xresources'':
! Fonts {{{
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintfull
Xft.dpi: 200
! }}}
urxvt.font: xft:DejaVuSansMono:size=8
====Grub font size====
* Install grub2-tools:sudo dnf install grub2-tools
* Generate font for grub: sudo grub2-mkfont -s 32 -o /boot/grub2/LiberationMono.pf2 /usr/share/fonts/liberation/LiberationMono-Regular.ttf
* Edit grub config:sudo vi /etc/default/grub
#add the following lines:
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD=keep
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_FONT=/boot/grub2/LiberationMono.pf2
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_TERMINAL=gfxterm
* Generate new config:sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
====Wallpaper====
* Install feh:dnf install feh
* Configure feh in ''bspwmrc'':feh --bg-center ~/Pictures/gradient-grey-wallpaper-for-2560x1440-62-539.jpg
====bspwm config====
* Follow focus:bspc config focus_follows_pointer true
* Larger gaps / widths:
bspc config border_width 4
bspc config window_gap 24
* Focused border color:bspc config focused_border_color "#EB0000"
====sxhkd config====
===Brightness===
* Install xbacklight:sudo dnf install xbacklight
* Add the configuration to ''~/.config/sxhkd/sxhkdrc'':
XF86MonBrightnessDown
xbacklight -dec 10
XF86MonBrightnessUp
xbacklight -inc 10
===Audio===
* Add the configuration to ''~/.config/sxhkd/sxhkdrc'':
XF86AudioLowerVolume
amixer -D pulse sset Master 5%-
XF86AudioRaiseVolume
amixer -D pulse sset Master 5%+
XF86AudioMute
amixer -D pulse sset Master 1+ toggle
====Install a bar====
* Download and install the following utilities:
git clone https://github.com/baskerville/xdo.git
git clone https://github.com/baskerville/sutils.git
git clone https://github.com/baskerville/xtitle.git
git clone https://github.com/LemonBoy/bar.git
cd
make
sudo make install
* Copy the scripts in ''bspwm/examples/panel/panel'' and ''bspwm/examples/panel/panel_bar'' to some directory.
* Add this directory to your $PATH using ''export PATH=$PATH:/path/to/panel/scripts''.