Browse Source

Update rofi calls

Samuel W. Flint 6 years ago
parent
commit
ee2d11c06e
5 changed files with 7 additions and 7 deletions
  1. 3 3
      i3-autorandr
  2. 1 1
      i3-man
  3. 1 1
      i3-open-pdf
  4. 1 1
      i3-workspace-layout
  5. 1 1
      screen-connect

+ 3 - 3
i3-autorandr

@@ -8,9 +8,9 @@ function list_layouts () {
 
 
 if [[ -e $(which rofi) ]] ; then
-    LAYOUT=$(list_layouts | rofi -dmenu -p layout:)
+    LAYOUT=$(list_layouts | rofi -dmenu -p layout)
 else
-    LAYOUT=$(list_layouts | dmenu -p layout:)
+    LAYOUT=$(list_layouts | dmenu -p layout)
 fi
 
 if [[ $LAYOUT == "" ]] ; then
@@ -18,7 +18,7 @@ if [[ $LAYOUT == "" ]] ; then
 elif [[ $LAYOUT == "*create*" ]] ; then
     arandr
 elif [[ $LAYOUT == "*name-it*" ]] ; then
-    NAME=$(rofi -dmenu -p 'name:')
+    NAME=$(rofi -dmenu -p 'name')
     autorandr -s ${NAME}
 else
     autorandr -l $LAYOUT

+ 1 - 1
i3-man

@@ -2,7 +2,7 @@
 
 if [[ $1 == "show" || $# -lt 1 ]] ; then
     if [[ -e `which rofi` ]] ; then
-        PAGE=`man -k . | awk -e '{print $1}' | rofi -dmenu -p "man page:"`
+        PAGE=`man -k . | awk -e '{print $1}' | rofi -dmenu -p "man page"`
         [[ $PAGE != "" ]] && exec urxvto -e man $PAGE
     else
         PAGE=`man -k . | awk -e '{print $1}' | dmenu`

+ 1 - 1
i3-open-pdf

@@ -2,7 +2,7 @@
 
 cd
 
-FILE="$(find -name '*.pdf' | sed -e 's/\.\///' | rofi -dmenu -p "PDF:")"
+FILE="$(find -name '*.pdf' | sed -e 's/\.\///' | rofi -dmenu -p "PDF")"
 
 if [[ $FILE != "" ]] ; then
     open-pdf $FILE

+ 1 - 1
i3-workspace-layout

@@ -45,7 +45,7 @@ function apply_workspace_number {
 
 function with_external_completion {
     if [[ -e `which rofi` ]] ; then
-        LAYOUT=`list_workspaces | rofi -dmenu -p "workspace layout:"`
+        LAYOUT=`list_workspaces | rofi -dmenu -p "workspace layout"`
         [[ $LAYOUT != "" ]] && apply_workspace
     else
         LAYOUT=`list_workspaces | dmenu -p "workspace layout:"`

+ 1 - 1
screen-connect

@@ -63,7 +63,7 @@ elif [[ $LISTFLAG == "true" ]] ; then
         screen -list | sed '$ d' | sed 1d | awk '{print $1}'
     else
         if [[ -e `which rofi` ]] ; then
-            NAME=`screen -list | sed '$ d' | sed 1d | awk '{print $1}' | rofi -dmenu -p "screen session:"`
+            NAME=`screen -list | sed '$ d' | sed 1d | awk '{print $1}' | rofi -dmenu -p "screen session"`
         else
             NAME=`screen -list | sed '$ d' | sed 1d | awk '{print $1}' | dmenu -p "screen session:"`
         fi