Skip to main content


Showing posts from October, 2022

vol control in wm

###Alsa ##speaker     set $upvol amixer sset Master 5%+    set $downvol amixer sset Master 5%-    set $mute amixer sset Master toggle ##mic    set $upmik   amixer -q sset Capture 5%+    set $downmik  amixer -q sset Capture 5%-    set $mutemik  amixer -q sset Capture toggle   ##pipewire/pulseaudio ((debian has pulsemixer )  pulsemixer --change-volume -5  pulsemixer --change-volume +5  pulsemixer --toggle-mute  pulsemixer --list-sources Source:          ID: source-65577, Name: Monitor of Built-in Audio Analog Stereo, Mute: 0, Channels: 2, Volumes: ['86%', '86%'] Source:          ID: source-42, Name: Built-in Audio Analog Stereo, Mute: 1, Channels: 2, Volumes: ['5%', '5%'], Default note source id mine is 42    pulsemixer --change-volume  -5  --id 42  pulsemixer --change-volume   +5 --id 42 pulsemixer --toggle-mute --id 42     ##arch pamixer -i 5 #to increase 5% pamixer -d 5 #to decrease 5%         bindsym XF86AudioRaiseVolume exec  $upvol     bindsym XF86Au

efistub combo .efi creator debian

cat      -----------------------------------------------------------------------------------------------------------------------------                                 #!/bin/bash TARGET=/boot BOOTDIR=/boot UCODE=$BOOTDIR/intel-ucode.img EFISTUB=/usr/lib/systemd/boot/efi/linuxx64.efi.stub echo "Updating EFI kernels..." for k in $BOOTDIR/vmlinuz*; do         NAME=$(basename $k|sed 's/vmlinuz-//')         echo "  Building $NAME"         INITRD="$BOOTDIR/initrd.img-$NAME" ls /boot         if [ -f "$UCODE" ]; then                 cat "$UCODE" "$INITRD" > /tmp/initrd.bin                 INITRDFILE=/tmp/initrd.bin         else                 # Do not fail on AMD systems                 echo "    Intel microcode not found. Skipping."                 INITRDFILE="$INITRD"         fi         # Check for custom command line for the kernel.         CMDLINE="$BOOTDIR/cmdline-$NAME.txt&quo

bruch test

  doas  bash -l  -src chromeos.bin -dst  ~/tmpmount/chromeos.img -s 18 doas ([email protected]) password: Creating image file Creating partition table... 0BF210F5-3004-3C41-8B32-087CE69182CC        start        size    part  contents            0           1          PMBR (Boot GUID: 0BF210F5-3004-3C41-8B32-087CE69182CC)            1           1          Pri GPT header            2          32          Pri GPT table     19255304    18493384       1  Label: "STATE"                                   Type: Linux data                                   UUID: BAA4C007-CA96-0848-9436-256EADE4E345      2117638       65536       2  Label: "KERN-A"                                   Type: ChromeOS kernel                                   UUID: 0F3D825E-8F59-974B-81C7-FEB8900207F8                                   Attr: priority=15 tries=15 successful=0     10866696     8388608       3  Label: "ROOT-A"                                   Type: ChromeOS rootfs

extract xbps in debian bullseye

 apt install p7zip zstd or download for linux put in path    use file to check xbps compression method pkg .xbps: Zstandard compressed data (v0.8+), Dictionary ID: None zstdcat <xbpsfile> | 7z l -ttar -si # list files zstdcat <xbpsfile> | 7z x -ttar -si # extract files        src:: 

ls color fix

  dircolors -p > ~/.dircolors  eval $( dircolors ~/.dircolors)   edit STICKY_OTHER_WRITABLE and OTHER_WRITABLE     34;42 (34 is blue, 42 is green)

foot color emoji

mkdir -p ~/.config/fontconfig/conf.d/ cd ~/.config/fontconfig/conf.d/ nano 75-joypixels.conf    ----------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig>     <!--     This adds a generic family 'emoji',     aimed for apps that don't specify specific font family for rendering emojis.     -->     <match target="pattern">         <test qual="any" name="family"><string>emoji</string></test>         <edit name="family" mode="assign" binding="same"><string>JoyPixels</string></edit>     </match>     <!--     This adds JoyPixels as a final fallback font for the default font families.     In this case, JoyPixels will be selected if and only if no othe

adding new lyricssource to osdlyrics

debian repos has old sources to add new to it  from $ mkdir -p $HOME/.local/share/dbus-1/services/ mkdir -p  $HOME/.local/lib/osdlyrics/lyricsources/   to add   download and edit   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz [email protected]@ @[email protected]/lyricsources/megalobiz/       as org.osdlyrics.LyricSourcePlugin.megalobiz.service.service   [D-BUS Service] Name=org.osdlyrics.LyricSourcePlugin.megalobiz Exec=/usr/bin/python3 /home/kai/.local/lib/osdlyrics/lyricsources/megalobiz/   just expand @[email protected] @[email protected]      copy to  $HOME/.local/lib/osdlyrics/lyricsources/megalobiz/

kiss linux test   ##download latest tarball   find latest from   #dnload using curl ver=2021.7-9  url=$ver  file=kiss-chroot-$ver.tar.xz  curl -fLO "$url/$file"    ##mount root partition to install to /mnt  mkfs.ext4 /dev/nvme0n1p1  mount /dev/nvme0n1p1 /mnt cd /mnt  tar xvf "$OLDPWD/$file"  or   sudo tar -xvf ~/Downloads/kiss-chroot-2021.7-9.tar.xz    /mnt/bin/kiss-chroot /mnt         ## inside chroot   passwd root adduser  kai su kai cd git clone   ##setup repos vi  .profile  export KISS_PATH='' KISS_PATH=/home/kai/repo/core KISS_PATH=$KISS_PATH:/home/kai/repo/extra KISS_PATH=$KISS_PATH:/home/kai/repo/wayland . ~/.profile  kiss search \*    ## enable sig verification kiss build gnupg1    $ gpg --keyserver --recv-key 13295DAC2CF13B5C $ echo tr

dell fan

  sudo apt-get install i8kutils sudo modprobe dell-smm-hwmon force=1   sudo apt-get install lm-sensors sudo sensors-detect   snesors now shows fan status   for control sudo modprobe i8k force=1       sudo systemctl start i8kmon.service   i8kctl fan 1 1 set both fan to low speed  


    adb devices   adb shell adb -s <device̠-number> shell  adb tcpip 5555 adb shell ip route | awk '{print $9}'   adb connectː5555   adb start-server adb kill-server adb reboot adb reboot recovery adb reboot bootloader adb push files /storage/on/device adb push myfolder /storage/on/device   #push folder only adb push myfolder/ /storage/on/device   #push all files in folder ## use pull instead of push for pulling file/folder   adb shell getprop adb shell setprop key value  adb shell service call <your_service_name> <number at which the function appears in your_service_name.aidl> <type of the argument like i32 or i64> <argument> adb shell service list adb shell service call iphonesubinfo 1 adb shell service call iphonesubinfo 1| cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'   service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' | while read hex; do echo -ne "\u${hex:4:4}\u${h

jammy debootstrap

 sudo debootstrap --arch amd64 --extractor =ar  jammy W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on I: Validating adduser 3.118ubuntu5 I: Validating apt 2.4.5 I: Validating apt-utils 2.4.5 I: Validating base-files 12ubuntu4 I: Validating base-passwd 3.5.52build1 I: Validating bash 5.1-6ubuntu1 I: Validating bsdutils 1:2.37.2-4ubuntu3 I: Validating ca-certificates 20211016 I: Validating console-setup 1.205ubuntu3 I: Validating console-setup-linux 1.205ubuntu3 I: Validating coreutils 8.32-4.1ubuntu1 I: Validating cron 3.0pl1-137ubuntu3 I: Validating dash 0.5.11+git20210903+057cd650a4ed-3build1 I: Validating dbus 1.12.20-2ubuntu4 I: Validating debconf 1.5.79ubuntu1 I: Validating debconf-i18n 1.5.79ubuntu1