Skip to content

Instantly share code, notes, and snippets.

View madanadam's full-sized avatar

Mehmet Akif madanadam

View GitHub Profile
@madanadam
madanadam / nm-tray-icons
Created August 10, 2021 06:45
nm-tray missing icons
To summarize, the following icons (other than a cursor icon which seems perhaps to have been found) were searched for:
- /usr/share/pixmaps/preferences-system-network.(png|xpm|svg)
- /usr/share/pixmaps/network-transmit.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-signal-good-symbolic.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-connected-75-symbolic.(png|xpm|svg)
A run of `apt-file find preferences-system-network.png`, just the first one, yields a lot of icon themes - all of them in `/usr/share/icons` (as they should be!)
@madanadam
madanadam / conkyrc
Created May 25, 2021 11:26
Conky ACPI battery for axp288_fuel_gauge - Vestel VTAB 1041
# Use Xft?
use_xft yes
xftfont DejaVuSans:size=12
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 5
# This is the number of times Conky will update before quitting.
based on https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu
sudo apt install iio-sensor-proxy inotify-tools
nano /opt/autorotate.sh
#!/bin/bash
# https://github.com/julienw/config-files/blob/master/yoga/rotate-screen.sh
# October 2016 - Tested and worked on Toshiba Radius 11 Convertible Laptop with Debian 8.5 Sid and XFCE 4.12
# This is a bash script to make screen autorotation possible based on device orientation.
@madanadam
madanadam / vtab_rotation
Last active May 25, 2021 13:42
vtab 1041 rotation sensor
/etc/udev/hwdb.d/61-sensor-local.hwdb
udevadm info -n /dev/iio:device0
In your case: KIOX000A
dmidecode | grep Manufacturer
dmidecode | grep Product
cat /sys/class/dmi/id/modalias
sensor:modalias:acpi:[driver name]*:dmi:*:svn[Manufacturer]*:pn[Product Name]:*
@madanadam
madanadam / vtab_goodix
Last active February 21, 2022 06:22
Vestel VTAB 1041 Goodix Dokunmatik Ayarları
nano /usr/lib/udev/hwdb.d/61-evdev.hwdb
# Goodix Touchscreen and Pen
evdev:name:*Goodix*
EVDEV_ABS_00=::2178
EVDEV_ABS_01=::1364
EVDEV_ABS_35=::2178
EVDEV_ABS_36=::1364
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /run /mnt/run