Skip to content

Instantly share code, notes, and snippets.

View 73's full-sized avatar
🐢
I like turtles ...

73 73

🐢
I like turtles ...
View GitHub Profile
@73
73 / spaceterm
Created February 18, 2020 15:04
Workspace-aware on-demand terminal window (x11 only)
#!/bin/bash
_cmd="gnome-terminal"
_terminal="usr/libexec/gnome-terminal"
_current_workspace=$(wmctrl -d | grep -Po "^[\d]+(?= \*)")
_windows=$(wmctrl -lp | awk '{ if ($2 == cws) print $1,$3 }' cws="${_current_workspace}" )
_active_win=$(xprop -root _NET_ACTIVE_WINDOW | sed 's/.* //')
echo "${_windows}" | while read _window
@73
73 / gtk.css
Created January 2, 2017 10:58
Make Gnome Headerbars Pretty
/* GTK 3.20 .config/gtk-3.0/gtk.css */
headerbar {
min-height: 0px;
padding-left: 5px; /* same as childrens vertical margins for nicer proportions */
padding-right: 4px;
}
/*headerbar entry,
headerbar spinbutton,
headerbar button,
@73
73 / gist:6be07a5c60ea6807fd4e
Last active December 16, 2015 09:32
Make Wikipedia a little bit more beautiful
div#mw-navigation {
max-width: 10px !important;
}
div#mw-navigation:hover {
width: 200px;
}
div#bodyContent,
div#content h1#firstHeading {
max-width: 700px;
margin-left: auto;