User Tools

Site Tools


linux:linux

This is an old revision of the document!


i3 config

xautolock

...
exec xautolock -time 3 -notify 60 -notifier "notify-send -u critical -t 60000 xautolock 'Screen will lock in 1 minute'" -locker "i3lock --dpms"
bindsym Mod4+q exec xautolock -locknow
...

screenshot

...
bindsym Ctrl+Print exec "import -window root ~/Downloads/Screenshot$(date +%F%H:%M:%S).png"
...

usb headphone

  1. find device
$ find /dev | grep -i jabra | grep snd /dev/snd/by-id/usb-GN_Audio_A_S_Jabra_EVOLVE_30_II_0002AD72CD6E07-00
  1. find attributes
$ udevadm info -a -n /dev/snd/by-id/usb-GN_Audio_A_S_Jabra_EVOLVE_30_II_0002AD72CD6E07-00
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1/3-1.1:1.0/sound/card1/controlC1'
:
    KERNEL=="controlC1"
    SUBSYSTEM=="sound"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1/3-1.1:1.0/sound/card1':

    KERNELS=="card1"
    SUBSYSTEMS=="sound"
    DRIVERS==""
    ATTRS{id}=="II"
    ATTRS{number}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1/3-1.1:1.0':
    KERNELS=="3-1.1:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="snd-usb-audio"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="01"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="00"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="00"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1':
    KERNELS=="3-1.1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 4"
    ATTRS{bcdDevice}=="0203"
    ATTRS{bmAttributes}=="80"
    ATTRS{busnum}=="3"
    ATTRS{configuration}==""
    ATTRS{devnum}=="37"
    ATTRS{devpath}=="1.1"
    ATTRS{idProduct}=="0313"
    ATTRS{idVendor}=="0b0e"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="GN Audio A/S"
    ATTRS{maxchild}=="0"
    ATTRS{product}=="Jabra EVOLVE 30 II"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{serial}=="0002AD72CD6E07"
    ATTRS{speed}=="12"
    ATTRS{urbnum}=="97635"
    ATTRS{version}==" 2.00"

.....
linux/linux.1496843848.txt.gz · Last modified: 2017/06/07 16:57 by cipibad