Browse Source

Remove get_i3_wsname

Workspace-based choice was not really that useful, so removing to get
rid of jq dependency
Alois Mahdal 9 years ago
parent
commit
43e2bca3a0
1 changed files with 1 additions and 12 deletions
  1. 1
    12
      src/libexec/saturnin-xuris

+ 1
- 12
src/libexec/saturnin-xuris View File

@@ -17,17 +17,6 @@ usage() {
17 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 20
 enum_bins() {
32 21
     echo uzbl-browser
33 22
     echo vimb
@@ -42,7 +31,7 @@ decide_bin() {
42 31
     #
43 32
     # Decide what browser to use
44 33
     #
45
-    local context="$(hostname -s)/$(get_i3_wsname)"
34
+    local context="$(hostname -s)"
46 35
     debug -v context
47 36
     case "$context" in
48 37
         hugo/*)         echo vimb ;;