grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

ricing.md (1685B)


      1 # ricing
      2 
      3 ## i3lock
      4 
      5 lockscreen commands (https://www.reddit.com/r/unixporn/comments/8z15f9/i3lock_with_pixeleffect/)
      6 
      7 ```zsh
      8 ICON="/home/pyratebeard/tmp/stop2.png" ; TMPBG="/tmp/lockscreen.jpg" ; RES=$(xrandr | grep 'current' | sed -E 's/.*current\s([0-9]+)\sx\s([0-9]+).*/\1x\2/') ; ffmpeg -f x11grab-video_size $RES -y -i $DISPLAY -vf frei0r=pixeliz0r=0.02:0.02 -vframes 1 $TMPBG -loglevel quiet
      9 ICON="/home/pyratebeard/tmp/stop2.png" ; TMPBG="/tmp/lockscreen.jpg" ; RES=$(xrandr | grep 'current' | sed -E 's/.*current\s([0-9]+)\sx\s([0-9]+).*/\1x\2/') ; ffmpeg -f x11grab -video_size $RES -y -i $DISPLAY -i $ICON -filter_complex "boxblur=5:1,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -vframes 1 $TMPBG -loglevel quiet
     10 /home/pyratebeard/src/warez/i3lock-fancy-multimonitor/lock -p
     11 ```
     12 
     13 ## fonts
     14 
     15 if font isn't working run `fc-cache -fv`
     16 
     17 ```
     18  1014  xset +fp /usr/share/fonts/local
     19  1015  sudo xset +fp /usr/share/fonts/local
     20  1016  ll /usr/lib/X11/fonts/misc/
     21  1017  systemctl --all | grep xfs
     22  1018  fc-cache -fv
     23  1019  xset +fp /usr/share/fonts/local
     24  1020  ll /usr/share/fonts
     25  1021  ll /usr/share/fonts/local
     26  1022  xset +fp /usr/share/fonts/
     27  1023  xset +fp /usr/share/fonts/local
     28  1024  sudo -i
     29 		cd /usr/share/fonts/local
     30 		mkfontscale
     31 		mkfontdir
     32  1025  xset +fp /usr/share/fonts/local
     33  1026  xset -q
     34  1027  fc-cache -fv
     35  1028  xlsfonts | grep -i tamzen
     36 
     37 ```
     38 
     39 ## xsetroot
     40 ```
     41 xsetroot -solid #111111
     42 
     43 xsetroot -bitmap brain.xbm -fg #111111 -bg #222222
     44 ```
     45 
     46 reload Xdefaults
     47 ```
     48 xrdb ~/.Xdefaults
     49 ```
     50 
     51 bitmap files:
     52 - arabic_rug
     53 - bitwize
     54 - brain
     55 - brick_diag_hering.xbm
     56 - cubic_interlock
     57 - cyber_tile
     58 - cyber
     59 - escher_fish
     60 - fish
     61 - hexmaze
     62 - itchy_scratchy
     63 - waves