Skip to main content


xorg symbol for firefox, pure wayland

x.c  #include <stdlib.h> void gdk_x11_display_get_xdisplay() { abort(); } void gdk_x11_get_default_root_xwindow() { abort(); } void gdk_x11_get_default_xdisplay() { abort(); } void cairo_xlib_surface_create() { abort(); } void gdk_x11_xatom_to_atom() { abort(); } void gdk_x11_window_get_xid() { abort(); } void gdk_x11_get_xatom_by_name_for_display()  { abort(); } void gdk_x11_display_get_user_time() { abort(); } void gdk_x11_screen_supports_net_wm_hint() { abort(); } void gdk_x11_screen_get_screen_number() { abort(); } void gdk_x11_screen_lookup_visual() { abort(); } void gdk_x11_get_xatom_by_name() { abort(); } void gdk_x11_window_lookup_for_display() { abort(); } void gdk_x11_get_server_time() { abort(); } void gdk_x11_atom_to_xatom() { abort(); } void gdk_x11_lookup_xdisplay() { abort(); } void gdk_x11_set_sm_client_id() { abort(); } cc -shared -o x.c cat opt/firefox/ pat=~/opt/firefox/ env LD_PRELOAD=$pat/ apulse  $pat/firefox "$@"
Recent posts

edge ua for ff

  general.useragent.override  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/123.0.2420.97 

debian systemd to sysv test

 replace dbus-broker with dbus mkdir -p ~/.config/pipewire/pipewire.conf.d/   cat .bin/wm export WLR_NO_HARDWARE_CURSORS=1 #export LIBVA_DRIVER_NAME=iHD dbus-run-session sway   for some reason hw acceleration not working without adding user to render group systemctl is loginctl now due to elogind loginctl reboot loginctl poweroff extra non-free driver sudo apt install intel-media-va-driver-non-free   read beofre switching init  for running system apt --download-only install sysvinit-core libpam-elogind systemctl rescue apt install /var/cache/apt/archives/*.deb     for chroot in live boot  sudo apt-get install sysvinit-core sysvinit-utils     apt-get remove --purge systemd libsystemd0 libpam-systemd apt install dbus deborphan   apt autoremove libcryptsetup12 libargon2-1  libxtst6 libnspr4  libxtst6 libnss3  libevent-2.1-7    dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs  dpkg --purge nano /etc/apt/preferences.d/ignored-packages Packa

dbus-broker mpris

cat #!/usr/bin/env bash # Check if a parameter is provided if [ -z "$1" ]; then     echo "Please provide a command (n)ext, (pp)play-pause, (p)revious, (s)top)."     exit 1 fi # Map input parameters to MPRIS commands declare -A commands=(     ["n"]="Next"     ["pp"]="PlayPause"     ["p"]="Previous"     ["s"]="Stop" ) # Find all MPRIS-compatible media player instances of Firefox player=$(busctl --user list | grep 'org.mpris.MediaPlayer2.firefox' | awk '{print $1}') echo $player # Send the corresponding command to each found Firefox instance for instance in $player; do     busctl --user call "$instance" /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player "${commands[$1]}" done edit  player=$(busctl --user list | grep 'org.mpris.MediaPlayer2' | awk '{print $1}') to control all player at once

itihas siromoni baburam acharya

  The Bloodstained Throne: Struggles for Power in Nepal (1775-1914) Chin, Tibet ra Nepal Purana Kavi ra Kabita General Bhimsen Thapa: Yinko Utthan ra Patan Nepalko Sanskritic Parampara Hamro Rastrabhasa Nepali Shree Panch Pratapsingh Shah Prachinkaalko Nepal Nepalko Samchhipta Britanta Shree Panch Prithvi Narayan Shah ko Samchhipta Jeewani Baburam Acharya ra Unka Kriti

copy debian root to another partition(disk failure)

sudo mount /dev/sda1 /mnt cp -dpx /bin /lib /lib64 /sbin /mnt cp -dprx /boot /etc /usr /var /mnt mkdir dev efi home  mnt proc root run  sys tmp media srv          -d     same as --no-dereference --preserve=links        -p     same as --preserve=mode,ownership,timestamps   -R, -r, --recursive               copy directories recursively   -x, --one-file-system               stay on this file system   adjust uuid= in /efi/loader/entries/debian.conf    setperm #!/bin/bash # Set permissions for /dev chmod 755 /dev # Set permissions for /efi chmod 700 /efi # Set permissions for /home chmod 755 /home # Set permissions for /media chmod 755 /media # Set permissions for /mnt chmod 755 /mnt # Set permissions for /proc chmod 555 /proc # Set permissions for /root chmod 550 /root # Set permissions for /run chmod 755 /run # Set permissions for /srv chmod 755 /srv # Set permissions for /sys chmod 555 /sys # Set permissions for /tmp chmod 1777 /tmp echo "Permissi