Skip to content

Instantly share code, notes, and snippets.

View Ferdi265's full-sized avatar

Ferdinand Bachmann Ferdi265

View GitHub Profile
@Ferdi265
Ferdi265 / config
Created October 14, 2015 05:32
i3 config
# ~/.config/i3/config
# startup scripts
exec --no-startup-id ~/.config/i3/rc
# use super as mod
set $mod Mod4
# font (window titles, never seen)
font pango:DejaVu Sans 10
@Ferdi265
Ferdi265 / lemon
Last active October 14, 2015 21:00
Lemonbar script for i3
#!/bin/bash
# calculate workspace indicators (needs jshon)
workspaces() {
wtext=('%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}' '%{F#174652}')
wjson=$(jshon -a -j)
for w in $wjson; do
vars=($(echo $w | jshon -e num -u -p -e urgent -u -p -e focused -u -p -e visible -u))
num=$((${vars[0]} - 1))
if [[ ${vars[1]} == 'true' ]]; then
@Ferdi265
Ferdi265 / config
Created August 7, 2015 09:49
Solarized i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@Ferdi265
Ferdi265 / menu.sh
Last active August 29, 2015 14:19
AndroidTerminal shell menu script
#!/system/xbin/bash
# AndroidTerminal shell menu script
#
# Displays a fullscreen menu in the terminal that adapts to terminal size and supports pagination.
# The menu can be navigated with the <w> and <s> keys (to reflect the wasd movement style), or with <u> and <d> (up and down).
# By pressing <return>, the menu item selectection can be confirmed, and the corresponding script will be executed.
#
# Usage: bash menu.sh <menu folder>
#