Skip to content

Instantly share code, notes, and snippets.

View ndgnuh's full-sized avatar

Hùng ndgnuh

View GitHub Profile
@ndgnuh
ndgnuh / geany-materia-dark.conf
Last active October 30, 2018 04:49
Geany dark theme to math with Materia Dark gtk theme. Usage: put this file in /usr/share/geany/colorscheme/ or ~/.config/geany/colorscheme/. If you find any visual bug, please tell in the comment section.
[theme_info]
name=Materia Dark
description=Dark Geany theme to match with Materia Dark gtk theme
version=0.01
author=Ndgnuh
url=
[named_styles]
default=0xFFFFFF;0x383838;false;false
@ndgnuh
ndgnuh / Xcursor.md
Last active April 23, 2019 13:26
List of xcursor files

List of xcursor files and what they do

This list was based on me trying to replace parts of Adwaita cursor theme, not documentation of any kind.

Filename Description
default The default pointer
text The pointer which appears when you hover textbox
wait The circle-shaped pointer appears when you have to wait for something
tba tba
@ndgnuh
ndgnuh / sakura-nord-color-scheme.patch
Created May 3, 2019 06:29
Patch for sakura terminal: Nord color scheme
diff --git a/src/sakura.c b/src/sakura.c
index e72a9aa..8c736fa 100644
--- a/src/sakura.c
+++ b/src/sakura.c
@@ -62,6 +62,25 @@
* Text displayed in the first 8 colors (0-7) is meek (uses thin strokes).
* Text displayed in the second 8 colors (8-15) is bold (uses thick strokes). */
+const GdkRGBA nord_palette[PALETTE_SIZE] = {
+ {0.23046875,0.2578125,0.3203125,1},
@ndgnuh
ndgnuh / void-pkgs-chroot.md
Last active September 20, 2019 09:25
Compile/maintain void linux packages in chroot (for foreign distro users).

What is this for?

For people who don't use Void Linux, but want to use Void's xbps-src or maintain packages in Void's repo.

First setup

Create a loop device image. Change the count number if you want smaller/bigger image file.

sudo dd if=/dev/zero of=void.img bs=100M count=50
@ndgnuh
ndgnuh / empty-theme.lua
Last active August 4, 2019 16:12
Empty awesomewm theme variable, extracted from git version (4.3) documentation.
local theme = {}
theme.arcchart_border_color = nil
theme.arcchart_border_width = nil
theme.arcchart_color = nil
theme.arcchart_paddings = nil
theme.arcchart_thickness = nil
theme.awesome_icon = nil
theme.bg_focus = nil
theme.bg_minimize = nil
theme.bg_normal = nil
@ndgnuh
ndgnuh / html_entities.jl
Created September 27, 2019 12:30
Dictionary of HTML entities written in Julia.
const HTML_ENTITIES = Dict(
"⧏̸" => "⧏̸",
"≁" => "≁",
"∽̱" => "∽̱",
"⫅" => "⫅",
"Ρ" => "Ρ",
"ⅆ" => "ⅆ",
"⫆" => "⫆",
"∦" => "∦",
"´" => "´",
@ndgnuh
ndgnuh / void-android.sh
Last active April 30, 2020 08:26 — forked from radare/void-android.sh
script to install voidlinux on android/firefoxos devices via adb
#!/bin/sh
# TODO
# - check free disk
# - check return values for every command
V=/data/void
DNS=8.8.8.8
URL=http://xbps.nopcode.org/rootfs/
ROOTFS=void-raspberrypi-rootfs-20191111.tar.xz
@ndgnuh
ndgnuh / chainkey.lua
Last active March 27, 2021 07:46
Awesomewm: chaining (sequence) keybindings (4.x compatible)
local awful = require("awful")
-- return a keygrabber which do incremental keybinding
-- @param keybinding: a table that define the keybinding
-- @param persistkey: a string represent the persist toggle key (eg: Super_L)
-- @param stopkey: incase you (somehow) suddenly don't know what is happening and want to stop
local chainkey = function(keybinding, persistkey, stopkey)
stopkey = stopkey or "Escape"
local grabber = awful.keygrabber{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ndgnuh
ndgnuh / xsession
Created November 19, 2020 04:52 — forked from gdamjan/xsession
improved lightdm xsession (for Archlinux)
#!/bin/sh
#
# LightDM wrapper to run around X sessions.
echo "Running X session wrapper"
# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
if [ -f "$file" ]; then
echo "Loading profile from $file";