Skip to content

Instantly share code, notes, and snippets.

@megacos
megacos / globalmenu-XFCE.sh
Last active July 30, 2022 02:38
installing global menu on XFCE manjaro or arch based
pamac install appmenu-gtk-module vala-panel-appmenu-registrar libdbusmenu-glib libdbusmenu-gtk2 libdbusmenu-gtk3
#edit and change vala-panel-appmenu-xfce's PKGBUILD "_disable_budgie=false" to "_disable_budgie=true"
pamac build vala-panel-appmenu-xfce xfce4-windowck-plugin xfce4-panel-profiles
xfconf-query -c xsettings -p /Gtk/ShellShowsMenubar -n -t bool -s true
xfconf-query -c xsettings -p /Gtk/ShellShowsAppmenu -n -t bool -s true
xfconf-query -c xfwm4 -p /general/button_layout -s "CHM|O"
xfconf-query -c xfwm4 -p /general/titleless_maximize -s true
xfconf-query -c xsettings -p /Gtk/Modules -n -t string -s "appmenu-gtk-module"
@megacos
megacos / archtweaks.md
Created September 20, 2022 04:27 — forked from lbrame/archtweaks.md
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@megacos
megacos / led_on.sh
Created September 25, 2022 07:42
turn on/off backlit "xset led 3" with "scroll lock" and autostart led
#!/bin/bash
xset led 3
## save and add this script to autostart

I found a way to disable Google Discover completely on miui home screen (like on previous versions, disables the swipe left).

adb shell settings put system open_personal_assistant 0

or you can type as root on any terminal

settings put system open_personal_assistant 0

to disable Swipe up to search in the home screen