소스 검색

Remove get_i3_wsname

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

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

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