Browse Source

Use meta-command everywhere

Alois Mahdal 10 years ago
parent
commit
ddc0c9d367
5 changed files with 21 additions and 21 deletions
  1. 5
    5
      bin/saturnin-dmenu
  2. 9
    9
      bin/saturnin-iam
  3. 1
    1
      bin/saturnin-ln
  4. 4
    4
      bin/saturnin-push
  5. 2
    2
      bin/saturnin-revert

+ 5
- 5
bin/saturnin-dmenu View File

20
 
20
 
21
 test -n "$delim"        && maybe_split=do_split
21
 test -n "$delim"        && maybe_split=do_split
22
 
22
 
23
-nb="$(saturnin-ini -p style.color.nbg)"
24
-nf="$(saturnin-ini -p style.color.nfg)"
25
-sb="$(saturnin-ini -p style.color.sbg)"
26
-sf="$(saturnin-ini -p style.color.sfg)"
27
-fn="$(saturnin-ini -p style.font)"
23
+nb="$(saturnin ini -p style.color.nbg)"
24
+nf="$(saturnin ini -p style.color.nfg)"
25
+sb="$(saturnin ini -p style.color.sbg)"
26
+sf="$(saturnin ini -p style.color.sfg)"
27
+fn="$(saturnin ini -p style.font)"
28
 fn=${fn:--*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*}
28
 fn=${fn:--*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*}
29
 
29
 
30
 debug -v nb nf sb sf fn
30
 debug -v nb nf sb sf fn

+ 9
- 9
bin/saturnin-iam View File

45
     # daemons specific to $1 location plus the rest
45
     # daemons specific to $1 location plus the rest
46
     #
46
     #
47
     test -n "$1" || usagef "location"
47
     test -n "$1" || usagef "location"
48
-    saturnin-ini -p iam.running.at.$1
49
-    saturnin-ini -p iam.running.at.ANYPLACE
48
+    saturnin ini -p iam.running.at.$1
49
+    saturnin ini -p iam.running.at.ANYPLACE
50
 }
50
 }
51
 
51
 
52
 where_i_am() {
52
 where_i_am() {
53
     #
53
     #
54
     # what is my physical location?
54
     # what is my physical location?
55
     #
55
     #
56
-    if=$(saturnin-ini -p iam.using.if)
56
+    if=$(saturnin ini -p iam.using.if)
57
     gwmac=$(arp | grep "^gateway\\>.*\\<$if\$" | tr ' ' '\n' | grep :)
57
     gwmac=$(arp | grep "^gateway\\>.*\\<$if\$" | tr ' ' '\n' | grep :)
58
-    saturnin-ini -p iam.seeing.gw.$gwmac || echo OUT
58
+    saturnin ini -p iam.seeing.gw.$gwmac || echo OUT
59
 }
59
 }
60
 
60
 
61
 start_familiar() {
61
 start_familiar() {
64
     #
64
     #
65
     local f=$1
65
     local f=$1
66
     pids_matching $f && return 0
66
     pids_matching $f && return 0
67
-    local like=$(saturnin-ini -p iam.starting.like.this.$f)
67
+    local like=$(saturnin ini -p iam.starting.like.this.$f)
68
     debug -v f like
68
     debug -v f like
69
     if test -n  "$like";
69
     if test -n  "$like";
70
         then
70
         then
78
     # set public status $1 by command in ini file
78
     # set public status $1 by command in ini file
79
     #
79
     #
80
     local what=$1
80
     local what=$1
81
-    saturnin-ini -p iam.saying.like.this.$what | bash
81
+    saturnin ini -p iam.saying.like.this.$what | bash
82
 }
82
 }
83
 
83
 
84
 sound_is_muted() {
84
 sound_is_muted() {
137
     # changing language
137
     # changing language
138
     #
138
     #
139
     local cur=$(setxkbmap -v | grep '^symbols: ' | cut -d+ -f2)
139
     local cur=$(setxkbmap -v | grep '^symbols: ' | cut -d+ -f2)
140
-    local all="$(saturnin-ini    -p iam.typing.lang)"
141
-    local def="$(saturnin-ini -1 -p iam.typing.lang)"
140
+    local all="$(saturnin ini    -p iam.typing.lang)"
141
+    local def="$(saturnin ini -1 -p iam.typing.lang)"
142
     local nxt=$(
142
     local nxt=$(
143
         echo -e "$all\n$all" \
143
         echo -e "$all\n$all" \
144
           | grep -m 1 -A 1 $cur \
144
           | grep -m 1 -A 1 $cur \
154
     #
154
     #
155
     # changing language back to normal
155
     # changing language back to normal
156
     #
156
     #
157
-    setxkbmap "$(saturnin-ini -1 -p iam.typing.lang)"
157
+    setxkbmap "$(saturnin ini -1 -p iam.typing.lang)"
158
 }
158
 }
159
 
159
 
160
 i_am_deaf() {
160
 i_am_deaf() {

+ 1
- 1
bin/saturnin-ln View File

38
 }
38
 }
39
 
39
 
40
 load() {
40
 load() {
41
-    saturnin-ini -p ln.dir.$1 | expand_tilde | debug_pipe out
41
+    saturnin ini -p ln.dir.$1 | expand_tilde | debug_pipe out
42
 }
42
 }
43
 
43
 
44
 while true; do case $1 in
44
 while true; do case $1 in

+ 4
- 4
bin/saturnin-push View File

5
 ffoo import core
5
 ffoo import core
6
 ffoo import recon
6
 ffoo import recon
7
 
7
 
8
-ORDER="$(saturnin-ini -p push.options.order)"
8
+ORDER="$(saturnin ini -p push.options.order)"
9
 
9
 
10
 usage() {
10
 usage() {
11
     usage_is "[-o|--order path:host|host:path] host..."
11
     usage_is "[-o|--order path:host|host:path] host..."
19
     *)              hosts="$1"; shift ;;
19
     *)              hosts="$1"; shift ;;
20
 esac done
20
 esac done
21
 
21
 
22
-test -n "$hosts" || hosts=$(saturnin-ini -s push.hosts | debug_pipe ini_hosts)
22
+test -n "$hosts" || hosts=$(saturnin ini -s push.hosts | debug_pipe ini_hosts)
23
 debug -v hosts
23
 debug -v hosts
24
 
24
 
25
 test -n "$hosts" || die "no valid hosts to begin with"
25
 test -n "$hosts" || die "no valid hosts to begin with"
26
-paths=$(saturnin-ini -s push.paths)
26
+paths=$(saturnin ini -s push.paths)
27
 test -n "$paths" || die "no valid paths to begin with"
27
 test -n "$paths" || die "no valid paths to begin with"
28
 
28
 
29
 think "Probing & sorting paths"
29
 think "Probing & sorting paths"
81
 
81
 
82
 for host in $hosts;
82
 for host in $hosts;
83
 do
83
 do
84
-    saturnin-ini -s push.commands \
84
+    saturnin ini -s push.commands \
85
       | grep . \
85
       | grep . \
86
       | while read cmd;
86
       | while read cmd;
87
         do
87
         do

+ 2
- 2
bin/saturnin-revert View File

42
 
42
 
43
 test -z "$snapshot" && {
43
 test -z "$snapshot" && {
44
     think "looking for $domain in revert.ini"
44
     think "looking for $domain in revert.ini"
45
-    snapshot=$(saturnin-ini -1 -p revert.to.snapshot.$domain)
45
+    snapshot=$(saturnin ini -1 -p revert.to.snapshot.$domain)
46
 }
46
 }
47
 test -z "$snapshot" && {
47
 test -z "$snapshot" && {
48
     think "looking for default snapshot name in revert.ini"
48
     think "looking for default snapshot name in revert.ini"
49
-    snapshot=$(saturnin-ini -1 -p revert.to.snapshot._default_)
49
+    snapshot=$(saturnin ini -1 -p revert.to.snapshot._default_)
50
 }
50
 }
51
 test -z "$snapshot" && {
51
 test -z "$snapshot" && {
52
     die "could not determine snapshot for $domain"
52
     die "could not determine snapshot for $domain"