Day 141: LSDeluxe and Nerd Fonts
LSD and installing fonts in st and urxvt
LSD is a very nice replacement for ls
. To set it up, I needed to download the individual fonts from Nerd fonts, cp
-ing them to /usr/share/fonts
, then running fc-cache -f -v
.
To set up the new DejaVu font in urxvt
, this is the line in .Xdefaults
:
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:pixelsize=12 URxvt.boldFont: xft:DejaVuSansMono Nerd Font Mono:pixelsize=12:weight=bold URxvt.letterSpace: -1
And in st
, config.h
is:\
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=12:antialias=true:autohint=true";
AUR has a BIG nerd-fonts-complete
package with all the fonts.
bspwm, polybar and multiple monitors
Following the advice in this article:
bspc monitor HDMI-0 -d 1 2 3 bspc monitor eDP -d 4 5 6 7 8 9 0 a b cin `bspwmrc`, and
polybar example & polybar big &in `launch.sh`, and
[bar/big] monitor = HDMI-0 [module/bspwm] used = %name% label-occupied = %name% label-urgent = %name%! label-empty =in `polybar/config`.
Also to make the tray appear only on the right monitor, I commented out ; tray-position = right
on the HDMI monitor, now it appears again on eDP.
They work a bit different than i3 – the workspaces I list in each of the monitors in bspwmrc
are accessed sequentially via the keyboard. That is, in the config above, f1..f4 get accessed with Mod+1..4
, and Mod+5..x
access the I..X ones. I think they get cycled from the left monitor to the right one, but definitely not in the order the monitors are set up in bspwmrc
and not alphabetically.
bspwm config changes
Stolen mostly from dotfiles in this repo:
bspc config pointer_follows_monitor true # brings pointer to focused monitor (see workspaces)and in `polybar/config`
[module/bspwm] label-empty =
Amongst other things – I’m not sure how to move my windows from the HDMI workspaces if I disconnect the second monitor from the computer, partly it means I’m (I think, for now) limited to a number of workspaces in each of the monitors. I’m not sure I miss the flexibility of this process in i3 - it might be a good opportunity to play with a much more structured number of workspaces. Maybe I don’t need the flexibility as much as I think.
bspwm/firefox go fullscreen (F11) but stay inside the bspwm window
full-screen-api.ignore-widgets
in about:config
(from here) is the best thing since sliced bread. I can F11 firefox, but it doesn’t occupy my entire monitor, just removes tabs/url/…, and I can still use Tree tabs. It’s very close to what I used to do with pentadactyl. This is freaking awesome.
pikaur full system upgrade
Works the same way as with pacman. Interesting that I never thought about this. sudo pikaur -Syu
redshift change day/night temperature
Updated startup.sh
to use redshift with a warmer nighttime temperature:
redshift -l 51.34:12.38 -t 6500:3000
Also I’m not sure I like the use -l
both for location provider and lat/long info. I think I understand the logic, but still..
Stack
- Add spoilers to Jekyll.
- Check again laptop-mode
- In general document all my settings well in one place.
Random
- Python API checklist
- TODO: Read through and google everything mentioned in there until I grok it.
- Color/brightness bookmarklets
Quotes
If you never heal from what hurt you, you’ll bleed on people who didn’t cut you
Spoilers in HTML and now Markdown (kramdown)!
CLICK ME
# I need to add
markdown="1"to all HTML tags where I want to write markdown. This one is inside a child without the setting.
print("hello world!")
Got this from here
I should look into markdown options which would allow me to do more flexible CSS – and I could create a vim mapping to make them quick.