Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # NOTE: some of this might not work correctly either because i've misunderstood the script you gave me, or because i made a mistake
  4.  
  5. # I did this in bash, but you can change it if you want.
  6.  
  7. # list all the files, and force them all to be on one line using tr.
  8. files=$(find ~/.i3 -name config* -type f | tr "\n" "|")
  9.  
  10. # When rofi is run in dmenu mode, the users choice is outputted in stdout, so we can use this in the next part without any edits.
  11. choice=$(echo "$files" | rofi -sep '|' -dmenu -p "Select a file:")
  12.  
  13. # Do the copying thing you had in your script. I think i understand what you wanted to do here, but i'm not sure it'll work how you want.
  14. cp $choice ~/.i3/config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement