Skip to content

Instantly share code, notes, and snippets.

@cnleo
cnleo / dark_theme_setting.txt
Created July 4, 2024 19:52
Setup for Dark-Theme/Mode
Set for many applications in Arch/Manjaro your prefer(r)ed theme/mode
terminal:
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
source:
https://wiki.archlinux.org/title/Dark_mode_switching
@cnleo
cnleo / arch_manjaro_Update_pacman_gtk.txt
Created May 25, 2024 23:39
Add/Remove Application Manager (pacman) on Arch/Manjaro have hidden buttons and/or invisible text and no dark theme support
install pacman (gtk3)
remove pacman (gtk4)
and now dark theme works too
@cnleo
cnleo / wine_lastframe_seen.txt
Created May 16, 2024 23:52
Wine "Freeze" last frame and not change back to normal desktop
pkill -f "*.exe"
killall -r "*.exe"
# game the moment of silence
killall -9 mos.exe
@cnleo
cnleo / lutris_gog_login.txt
Created May 16, 2024 23:01
SOLVING Login Problem GOG with Lutris empty window
start with env
env WEBKIT_DISABLE_COMPOSITING_MODE=1 lutris %U
@cnleo
cnleo / audio_issus_crackling_pop_arch_manjaro.md
Created May 12, 2024 17:22
[Solution] Sound Issues Crackling/Pop on Arch Manjaro

[Solution] Sound Issues Crackling/Pop on Arch Manjaro

/etc/pipewire/pipewire.conf (or ~/.config/pipewire/pipewire.conf) <-- preffer ~/.config/...

...
context.properties = {
    ...
    default.clock.rate          = sample_rate
 default.clock.allowed-rates = [ sample_rate_1 sample_rate_2 sample_rate_3 ... ]
@cnleo
cnleo / fetch_me_if_you_can.js
Created April 21, 2024 23:42
fetch_me_if_you_can.js
/**
* Node
* npm i jsdom
* 21+ dependencies
*/
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
const url = 'https://heise.de';
@cnleo
cnleo / slow_manjaro_browser_gnome_xfce.txt
Created April 1, 2024 23:39
lame/slow manjaro browser and apps
Many applications (firefox, thunderbird, etc) slow to start on desktops other than Gnome
There is a bug(https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/74) with xdg-desktop-portal-gnome (more details here(https://forum.manjaro.org/t/unstable-update-2023-05-06-gnome-44-1/140014/24) ).
Workaround for gtk-based desktops (including Xfce)
sudo pacman -Rdd xdg-desktop-portal-gnome
sudo pacman -S xdg-desktop-portal-gtk
Workaround for KDE
@cnleo
cnleo / libreoffice_ctrl_v_unformatted_text_default.md
Last active March 25, 2024 08:32
Libreoffice Ctrl+V default to Paste Unformatted Text

Actually, it is quite easy. Just follow these steps (on the PC version 3.5, at least):

  • Click on Tools
  • Click on Customize…
  • Click on the Keyboard tab at the top
  • To the RIGHT of the Shortcut Keys box, click on LibreOffice
  • Below the Shortcut Keys box, find the Functions box, then find and click on Edit
  • In the next box, the Function box, find and click on Paste Unformatted Text
  • In the Shortcut Keys box above, find and click once on Ctrl+V
  • On the RIGHT, click the button titled Modify or (in newer libreoffice version Assign)
@cnleo
cnleo / gitignore.txt
Created March 11, 2024 01:44
gitignore
# ignore everything: *
# and what ever you do, setup .gitignore as exeption from ignoring: !.gitignore
# https://git-scm.com/docs/gitignore
# https://gist.github.com/bennlee/92ffaa27eea326da46e538a80c3eebae
# https://git-scm.com/docs/git-check-ignore
*
!.gitignore
# Moste classics: