소스 검색

Remove get_i3_wsname

Workspace-based choice was not really that useful, so removing to get
rid of jq dependency
Alois Mahdal 10 년 전
부모
커밋
43e2bca3a0
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. 1
    12
      src/libexec/saturnin-xuris

+ 1
- 12
src/libexec/saturnin-xuris 파일 보기

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 ;;