Skip to content

Instantly share code, notes, and snippets.

View lexeii's full-sized avatar

Oleksii Bobyl'ov lexeii

View GitHub Profile
@lexeii
lexeii / README.md
Last active January 31, 2020 14:33
Use emblems in PCManFM for SliTaz

Emblem support in PCManFM

Emblem support was provided in commit Add emblem support by reading the "metadata::emblems" attribute provided by GFileInfo. and was included in the next libfm release, 1.3.0 dated 2018-04-21.

  1. Make sure you use PCManFM and LibFM not older than version 1.3.0.
  2. Put all the files from this gist in the file system. You will need root privileges to do this. Make sure the script in /usr/bin has execute permission.
  • gvfs-manage-emblems.desktop -> /usr/share/file-manager/actions/gvfs-manage-emblems.desktop
  • extended-menu.desktop -> /usr/share/file-manager/actions/extended-menu.desktop
  • gvfs-manage-emblems -> /usr/bin/gvfs-manage-emblems
  1. Make sure your icons theme contains emblems. For example, the Paper theme contains them in the /usr/share/icons/Paper/*/emblems/ folders, and the Faenza theme contains them in `/usr/share/icons
@lexeii
lexeii / lspci-emul-opt.sh
Created August 29, 2017 14:44
lspci emulation for Busybox lspci
#!/bin/sh
# use option -nn to show both textual and numeric ID's (names & numbers)
i=/usr/share/misc/pci.ids.gz
if [ ! -s $i ]; then
busybox lspci
else
pciids=$(mktemp)
zcat $i | sed '/^#/d; /^\t\t/d' > $pciids
classes=$(mktemp)
sed -n '/^C /,$p' $pciids > $classes
#!/bin/sh
mkdir -p /tmp/ORPHAN
echo > /tmp/ORPHAN/ORPHANS.txt
echo 1 > /tmp/ORPHAN/UNINSTALLED.txt
while [ $(grep -c 1 /tmp/ORPHAN/UNINSTALLED.txt) == '1' ]; do
echo > /tmp/ORPHAN/DEPENDENCIES.txt
CHOICE=''
DESCRIPTION=''