Redesign component interfaces
[khatus.git] / bin / khatus_actuate_status_bar_to_xsetroot_name
CommitLineData
43e49903
SK
1#! /usr/bin/awk -f
2
75b23ff8
SK
3BEGIN {
4 FS = msg_fs ? msg_fs : "|"
5 OFS = msg_fs ? msg_fs : "|"
6 Kfs = key_fs ? key_fs : ":"
7}
8
9$1 == "OK" && \
10$2 == "khatus_bar" && \
11$3 == "status_bar" {
12 # Not just using $4 for val - because val might contain a character
13 # identical to FS
14 len_line = length($0)
15 len_head = length($1 FS $2 FS $3 FS)
16 len_val = len_line - len_head
17 val = substr($0, len_head + 1, len_val)
18
19 system("xsetroot -name \"" val "\"")
43e49903
SK
20 next
21}
This page took 0.018211 seconds and 4 git commands to generate.