Ver código fonte

Use meta-command everywhere

Alois Mahdal 10 anos atrás
pai
commit
ddc0c9d367
5 arquivos alterados com 21 adições e 21 exclusões
  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 Ver arquivo

@@ -20,11 +20,11 @@ esac done
20 20
 
21 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 28
 fn=${fn:--*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*}
29 29
 
30 30
 debug -v nb nf sb sf fn

+ 9
- 9
bin/saturnin-iam Ver arquivo

@@ -45,17 +45,17 @@ familiars_at() {
45 45
     # daemons specific to $1 location plus the rest
46 46
     #
47 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 52
 where_i_am() {
53 53
     #
54 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 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 61
 start_familiar() {
@@ -64,7 +64,7 @@ start_familiar() {
64 64
     #
65 65
     local f=$1
66 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 68
     debug -v f like
69 69
     if test -n  "$like";
70 70
         then
@@ -78,7 +78,7 @@ set_status() {
78 78
     # set public status $1 by command in ini file
79 79
     #
80 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 84
 sound_is_muted() {
@@ -137,8 +137,8 @@ i_am_bbl() {
137 137
     # changing language
138 138
     #
139 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 142
     local nxt=$(
143 143
         echo -e "$all\n$all" \
144 144
           | grep -m 1 -A 1 $cur \
@@ -154,7 +154,7 @@ i_am_bbldone() {
154 154
     #
155 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 160
 i_am_deaf() {

+ 1
- 1
bin/saturnin-ln Ver arquivo

@@ -38,7 +38,7 @@ link() {
38 38
 }
39 39
 
40 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 44
 while true; do case $1 in

+ 4
- 4
bin/saturnin-push Ver arquivo

@@ -5,7 +5,7 @@
5 5
 ffoo import core
6 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 10
 usage() {
11 11
     usage_is "[-o|--order path:host|host:path] host..."
@@ -19,11 +19,11 @@ while true; do case $1 in
19 19
     *)              hosts="$1"; shift ;;
20 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 23
 debug -v hosts
24 24
 
25 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 27
 test -n "$paths" || die "no valid paths to begin with"
28 28
 
29 29
 think "Probing & sorting paths"
@@ -81,7 +81,7 @@ esac
81 81
 
82 82
 for host in $hosts;
83 83
 do
84
-    saturnin-ini -s push.commands \
84
+    saturnin ini -s push.commands \
85 85
       | grep . \
86 86
       | while read cmd;
87 87
         do

+ 2
- 2
bin/saturnin-revert Ver arquivo

@@ -42,11 +42,11 @@ snapshot="$2"
42 42
 
43 43
 test -z "$snapshot" && {
44 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 47
 test -z "$snapshot" && {
48 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 51
 test -z "$snapshot" && {
52 52
     die "could not determine snapshot for $domain"