Skip to content

Instantly share code, notes, and snippets.

@d8660091
d8660091 / xmobarrc
Last active October 23, 2016 19:16
xmobarrc
-- xmobar config used by Vic Fryzel
-- Author: Vic Fryzel
-- http://github.com/vicfryzel/xmonad-config
Config {
--font = "xft:Fixed-8",
font = "xft:Source Han Sans:size=9:bold:antialias=true",
fgColor = "#7F8C8D",
bgColor = "#000000",
position = Top,
{
"cells": [
{
"cell_type": "code",
"execution_count": 29,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
#!/bin/bash
tmpfile=`mktemp` # name for temp file in /tmp
tmux pipe-pane -t matlab:matlab -o "cat > $tmpfile"
while read line
do
line=${line//;/\\;} # replace ; with \; to pass send-keys of tmux
tmux send-keys -l -t matlab:matlab "$line" # send keys literaly
tmux send-keys -t matlab:matlab Enter
sleep 0.2s # wait until the commands are put to tmux