Selaa lähdekoodia

Remove get_i3_wsname

Workspace-based choice was not really that useful, so removing to get
rid of jq dependency
Alois Mahdal 9 vuotta sitten
vanhempi
commit
43e2bca3a0
1 muutettua tiedostoa jossa 1 lisäystä ja 12 poistoa
  1. 1
    12
      src/libexec/saturnin-xuris

+ 1
- 12
src/libexec/saturnin-xuris Näytä tiedosto

17
     mkusage "[-u|--uniq] [-a|--always-run] [-l|--limit N] [-c|--choose] [-C|--choice-cmd COMMAND]"
17
     mkusage "[-u|--uniq] [-a|--always-run] [-l|--limit N] [-c|--choose] [-C|--choice-cmd COMMAND]"
18
 }
18
 }
19
 
19
 
20
-get_i3_wsname() {
21
-    #
22
-    # Get current workspace name
23
-    #
24
-    i3-msg -t get_workspaces \
25
-      | jq '.[] | {focused, name}' \
26
-      | grep -F -A 1 'focused": true' \
27
-      | grep name \
28
-      | cut -d\" -f4
29
-}
30
-
31
 enum_bins() {
20
 enum_bins() {
32
     echo uzbl-browser
21
     echo uzbl-browser
33
     echo vimb
22
     echo vimb
42
     #
31
     #
43
     # Decide what browser to use
32
     # Decide what browser to use
44
     #
33
     #
45
-    local context="$(hostname -s)/$(get_i3_wsname)"
34
+    local context="$(hostname -s)"
46
     debug -v context
35
     debug -v context
47
     case "$context" in
36
     case "$context" in
48
         hugo/*)         echo vimb ;;
37
         hugo/*)         echo vimb ;;