summaryrefslogtreecommitdiff
path: root/src/set_window_location
blob: d43fd1b92dd9cd055829b2f937195f074a84fb85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash

# function to get the window id
function get_window_id()
{
	window_id=$(wmctrl -l | grep "$1" | tail -1 | cut -f1 -d" ")
}

get_window_id "fsa"
wmctrl -i -r "$window_id" -e 0,100,100,800,480

get_window_id "navit"
wmctrl -i -r "$window_id" -e 0,100,72,800,480

wmctrl -a "fsa"