Skip to content

Instantly share code, notes, and snippets.

@hxss
hxss / 10-hdmi-dpi.rules
Last active May 16, 2020 17:33
Linux XFCE scripts for changing xrandr and dpi settings on hdmi toggle
#/etc/udev/rules.d/10-hdmi-dpi.rules
KERNEL=="card0", ACTION=="change", RUN+="/home/hxss/.config/scripts/xorg/hdmi.sh"
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules
# hxss
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/hxss/.config/scripts/xorg/bt-auto-enable-a2dp.sh"
@hxss
hxss / config.rasi
Last active November 28, 2017 20:48
configuration {
modi: "drun,run";
theme: "fullscreen";
/*width: 1920;*/
/*height: 100;*/
/*lines: 5;*/
/* columns: 1;*/
/*font: "mono 18";*/
/* bw: 1;*/
/* location: 0;*/
@hxss
hxss / .xbindkeysrc
Last active June 14, 2020 22:56
Disable xorg primary clipboard. Temporary workaround that clear primary clipboard before every wheel click
"xclip -i /dev/null"
b:10
"xdotool click 10"
b:10 + Release
# for russian layout
"xdotool click 10"
m:0x2010 + b:10 + Release
<!-- /etc/thermald/thermal-conf.xml -->
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>Generic X86 Laptop Device</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalSensors>
<ThermalSensor>
@hxss
hxss / 0.dmesg
Last active January 30, 2018 10:59
# dmesg | grep -i bluetooth
[ 3.885464] Bluetooth: Core ver 2.22
[ 3.885479] Bluetooth: HCI device and connection manager initialized
[ 3.885482] Bluetooth: HCI socket layer initialized
[ 3.885485] Bluetooth: L2CAP socket layer initialized
[ 3.885488] Bluetooth: SCO socket layer initialized
[ 3.901000] Bluetooth: HCI UART driver ver 2.3
[ 3.901002] Bluetooth: HCI UART protocol H4 registered
[ 3.901003] Bluetooth: HCI UART protocol BCSP registered
[ 3.901017] Bluetooth: HCI UART protocol LL registered
@hxss
hxss / debug-70.log
Last active January 14, 2018 23:31
thermal-conf auto
Registering the well-known name (org.freedesktop.thermald)
RequestName returned 1.
Registering it on the D-Bus.
RAPL sysfs present
RAPL base path /sys/class/powercap/intel-rapl/
RAPL domain dir intel-rapl:0
name package-0
RAPL base path /sys/class/powercap/intel-rapl/intel-rapl:0/
RAPL domain dir intel-rapl:0:1
name uncore
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>_TRT export</Name>
<ProductName>80TX </ProductName>
<Preference>QUIET</Preference>
<ThermalSensors>
<ThermalSensor>
<Type>INT3400 Thermal</Type>
<Path>/sys/class/thermal/thermal_zone0/</Path>
### Notify recieved from vivaldi(chromium):
2018-01-29T21:10:05+0500 lenovo dbus-daemon[1049]: [session uid=1000 pid=1049] Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service' requested by ':1.166' (uid=1000 pid=5263 comm="/opt/vivaldi/vivaldi-bin --enable-native-gpu-memor")
2018-01-29T21:10:05+0500 lenovo systemd[1034]: Starting XFCE notifications service...
2018-01-29T21:10:05+0500 lenovo dbus-daemon[1049]: [session uid=1000 pid=1049] Successfully activated service 'org.freedesktop.Notifications'
2018-01-29T21:10:05+0500 lenovo systemd[1034]: Started XFCE notifications service.
### Single click on link in notify: