Skip to content

Instantly share code, notes, and snippets.

View febnug's full-sized avatar
😞
sadness

Febriyanto Nugroho febnug

😞
sadness
View GitHub Profile
@febnug
febnug / gist:81b148aa2cd7d05078d98aa3afe3af62
Last active December 2, 2026 06:46
gtk.css for enhancement xfce panel bar greybird theme
/*
Template theme modif buat anuan :)
-- febnug (@fnlqxz)
status: still updated, when fix for release?
*/
/*
aa@aa-virtualbox:~$ cat /etc/xdg/autostart/blankon-blueman-applet.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=BlankOn XFCE Bluetooth Tray
Comment=Start Blueman system tray icon
TryExec=blueman-tray
Exec=blueman-tray
Terminal=false
OnlyShowIn=XFCE;
@febnug
febnug / gist:f7256d8fd1c4cf15e8cfbfa8a141787f
Created November 27, 2026 22:50
~/.local/gtk-3.0 for blankon xfce
#applicationmenu-button label {
font-family: "Cantarell", "Helvetica Neue", Arial, sans-serif;
font-weight: bold;
font-size: 10pt;
letter-spacing: -1.5px;
margin-left: 0px;
margin-right: 1px;
}
blankon@blankon:~$ sudo bash <<'EOF'
ICON_DIR="/usr/share/icons"
for theme_dir in "$ICON_DIR"/*; do
[ -d "$theme_dir" ] || continue
[ -f "$theme_dir/index.theme" ] || continue
theme="${theme_dir##*/}"
echo
sudo bash <<'EOF'
ICON_DIR="/usr/share/icons"
for theme_dir in "$ICON_DIR"/*; do
[ -d "$theme_dir" ] || continue
[ -f "$theme_dir/index.theme" ] || continue
theme="${theme_dir##*/}"
echo
#!/usr/bin/python3
import os
import sys
import struct
import tempfile
DEST_DIR = "/var/lib/lightdm/backgrounds"
DEST_FILE = os.path.join(DEST_DIR, "current-wallpaper.png")
```sh
#!/bin/sh
WALLPAPER="/usr/share/backgrounds/xfce/xfce-blue.jpg"
CHANNEL="xfce4-desktop"
[ -f "$WALLPAPER" ] || exit 0
# Wait until XFCE desktop is running.
for i in $(seq 1 30); do
python3 - <<'PY'
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
theme = Gtk.IconTheme.get_default()
theme.set_custom_theme("elementary-xfce")
name = "xfce4-battery-ok-charging"
sudo python3 - <<'PY'
from pathlib import Path
theme = Path("/usr/share/icons/elementary-xfce/index.theme")
data = theme.read_text()
if "scalable/apps" not in data.split("Directories=", 1)[1].splitlines()[0]:
data = data.replace(
"Directories=",
"Directories=scalable/apps,",
sudo cp /etc/lightdm/lightdm-gtk-greeter.conf \
/etc/lightdm/lightdm-gtk-greeter.conf.backup
sudo python3 - <<'PY'
from pathlib import Path
import re
path = Path("/etc/lightdm/lightdm-gtk-greeter.conf")
lines = path.read_text().splitlines()