mukstart - start menu like Cinnamon
Muksearch
I was inspired by windows 10 search. Now it is separate with cortana.
I make it simple. The good news is, if we search an app and run it now, it become on the top of search list on the next search.
I also add recent apps button (max 5 apps) and recently used doc (thank you MochiMoppel, I use your code).
We can add shortcut it (i.e: shift+win or win+space). Please rename the fake gz and run it.
I hope you like it. Thank you.
I make it simple. The good news is, if we search an app and run it now, it become on the top of search list on the next search.
I also add recent apps button (max 5 apps) and recently used doc (thank you MochiMoppel, I use your code).
We can add shortcut it (i.e: shift+win or win+space). Please rename the fake gz and run it.
I hope you like it. Thank you.
- Attachments
-
- app_tobe_the_first.png
- We run an App. On the next run, the app become on the first list
- (56.02 KiB) Downloaded 404 times
-
- recent_apps.png
- Empty search box. It shows recent apps and recently used document
- (66.65 KiB) Downloaded 397 times
-
- 190901_2224_muksearch.gz
- remove fake gz
- (7.85 KiB) Downloaded 283 times
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
Re: Muksearch
You're welcome, but that's not exactly my coderecobayu wrote:thank you MochiMoppel, I use your code
Always make sure that you test your code with file names that contain spaces.
I suggest that in line 217 you change
Code: Select all
<action signal="button-release-event">rox -s $tree_recent</action>
Code: Select all
<action signal="button-release-event">rox -s "$tree_recent"</action>
[Edit]
If you like you can try to replace the generic folder icons with each file's ROX mime icon:
1) symlink the ROX icons
Code: Select all
ln -fsn /usr/local/apps/ROX-Filer/ROX/MIME/ ${muksdir}/icons
1) Change the function. The sed command now fetches also the mime-type. I omitted the if command as it's most likely not needed.
Code: Select all
recently_used(){
rm $muksdir/recent
rm $muksdir/recent_all
XBEL_PATH=/root/.local/share/recently-used.xbel
IFS=$'\n'
MAX_ITEMS=20
printf -v ALL "$(sed -rn 's/%/\\x/g
/href=/ {N;N;N;N;s_^.*file://([^ "]*).*modified="([^"]*).*mime-type type="([^"]*).*$_\2@\3|\1_p}
' "$XBEL_PATH" | sort -r | sed 's/.*@//; s_/_-_')"
for file in $ALL ;do
[[ -e ${file#*|} ]] && CNT=$((CNT+1)) && echo "$file" >> $muksdir/recent
((CNT==MAX_ITEMS)) && break
done
}
Code: Select all
<tree rules-hint="true" headers-visible="false" hover-selection="true">
<height>400</height>
<width>600</width>
<action signal="button-release-event">rox -s "$tree_recent"</action>
<action signal="button-release-event">EXIT:exit</action>
<action>rox -s "$tree_recent"</action>
<action>EXIT:exit</action>
<input file icon-column="0">'$muksdir'/recent</input>
<variable>tree_recent</variable>
</tree>
Thank you, MochiMoppel.. I like it.
Please download file gz attachment below. rename it manually. it is not real gz file.
Improvement:
-Recent activities icon is based on mime icon the file. Thank you Mochimoppel..
-Colored text recent apps and recent activities
-If we click button on recent apps, it become the first on the next run
-fix the "$tree_recent".
-fix for sudoku.
-file /root/.muksearch/topapps keep small (keep only 5 line)
-notebook also expand vertically when the window resize vertically
-exit by press escape key
Please download file gz attachment below. rename it manually. it is not real gz file.
Improvement:
-Recent activities icon is based on mime icon the file. Thank you Mochimoppel..
-Colored text recent apps and recent activities
-If we click button on recent apps, it become the first on the next run
-fix the "$tree_recent".
-fix for sudoku.
-file /root/.muksearch/topapps keep small (keep only 5 line)
-notebook also expand vertically when the window resize vertically
-exit by press escape key
- Attachments
-
- not searching.png
- The default screen, now support icon based on type of file. 39 Mochimoppel..
- (63.94 KiB) Downloaded 337 times
-
- 190903_1705_muksearch.gz
- remove fake gz
- (8.11 KiB) Downloaded 287 times
Last edited by recobayu on Fri 06 Sep 2019, 10:05, edited 1 time in total.
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
Looks good!
One thing you may want to reconsider is the MAX_ITEMS limitation. This limitation makes sense in a menu, for which this routine was originally written, but you have a scrollbar in your window and speed is not as crucial as in case of a menu. Probably eliminating MAX_ITEMS and CNT would have no negative effects.
One thing you may want to reconsider is the MAX_ITEMS limitation. This limitation makes sense in a menu, for which this routine was originally written, but you have a scrollbar in your window and speed is not as crucial as in case of a menu. Probably eliminating MAX_ITEMS and CNT would have no negative effects.
The problem appear after I install a new app. It doesn't appear in mukstart. So I create this update. Now it was fixed. The recent apps still on top of list. and the new app will add in daftarlengkap.
Thank you Mochimoppel, now the recent activities more than 20.
it also can run in terminal where the file has "Terminal=true". Example: python.
Thank you
Thank you Mochimoppel, now the recent activities more than 20.
it also can run in terminal where the file has "Terminal=true". Example: python.
Thank you
- Attachments
-
- 190906_1520_muksearch.gz
- remove fake gz
- (8.98 KiB) Downloaded 306 times
Update muksearch:
add two buttons: Clear recent apps and Clear recent activities.
add two buttons: Clear recent apps and Clear recent activities.
- Attachments
-
- muksearch-v2.png
- Buttons with relief="2"
- (22.1 KiB) Downloaded 438 times
-
- muksearch.gz
- 191115_0949
- (10.04 KiB) Downloaded 268 times
Hi Everyone,
I make a new mukstart, but it is not complete yet. In this version, I can make the menu and submenu appear like left icon in button. I also make mukstart really like start menu in cinnamon. Any suggestion are welcome.
Thank you.
I make a new mukstart, but it is not complete yet. In this version, I can make the menu and submenu appear like left icon in button. I also make mukstart really like start menu in cinnamon. Any suggestion are welcome.
Thank you.
- Attachments
-
- mukstart.png
- When not search
- (58.84 KiB) Downloaded 381 times
-
- 191204mukstart.gz
- still need more addition
- (15.99 KiB) Downloaded 250 times
My code growing huge.. oh..
I can not write just in one script. the terminal says:
So I split my code into two files: the engine that create gui and the run (jalan) script.
Please suggest me an advice.. I still learn programming with bash, gtkdialog.
Thank you.
I can not write just in one script. the terminal says:
Code: Select all
./191209_0859: line 374: /usr/bin/tail: Argument list too long
./191209_0859: line 375: /usr/sbin/gtkdialog: Argument list too long
Please suggest me an advice.. I still learn programming with bash, gtkdialog.
Thank you.
- Attachments
-
- 191209_1101_mukstart.tar.gz
- real tar gz file
- (4.41 KiB) Downloaded 240 times
-
- mukstart_191209_1101.png
- pin it comment (right bottom) now like in start menu cinnamon
- (49.77 KiB) Downloaded 322 times
recobayu wrote:My code growing huge.. oh..
I can not write just in one script. the terminal says:etc....Code: Select all
./191209_0859: line 374: /usr/bin/tail: Argument list too long ./191209_0859: line 375: /usr/sbin/gtkdialog: Argument list too long [/quote] I haven't looked at your code, but it's likely you are trying to hold too many lines in a variable. Write the variable to a file, and operate on that instead.. Something like: [code] cat file1 file 2 | grep 'foo ' > /tmp/some_file ... something="$(grep 'bar /tmp/some_file | sed "s/old_value/new_value/g" )"
Or, it could be that you haven't wrapped something in quotes..
Like
orCode: Select all
grep $some_value_with_spaces /tmp/somefile
Code: Select all
grep 'foo' $some_file_list
(of course this is a guess, based on the error you got...)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
Thank You, Scottman.
I split my code into two separate files. I call my make_gui_script from another file. And it's work..
Now we can change display profile.
run from terminal:
I split my code into two separate files. I call my make_gui_script from another file. And it's work..
Code: Select all
#!/bin/sh
export mukstartdir=/root/.mukstart
/usr/local/mukstart/./mukstart_make_gui
tail -n +2 "$mukstartdir"/gui_mukstart > "$mukstartdir"/guifix
gtkdialog -f "$mukstartdir"/guifix --geometry +"0"+"0"
run from terminal:
Code: Select all
mukstart
- Attachments
-
- 191209 mukstart.png
- (69.12 KiB) Downloaded 300 times
-
- mukstart.pet
- contains face images from linuxmint
- (195.85 KiB) Downloaded 249 times
http://www.murga-linux.com/puppy/viewto ... 95#1041795 entry find apps - ok
http://www.murga-linux.com/puppy/viewto ... 00#1044100 find dont work
http://www.murga-linux.com/puppy/viewto ... 00#1044100 find dont work
[url=https://sourceforge.net/projects/puppyrusa/]PuppyRus-Arch[/url]
Thank you, Sfs for your feedback.sfs wrote:http://www.murga-linux.com/puppy/viewto ... 95#1041795 entry find apps - ok
http://www.murga-linux.com/puppy/viewto ... 00#1044100 find dont work
I upload the new mukstart that be able to find an app.
Thank you, Sc0ttman.sc0ttman wrote:Write the variable to a file, and operate on that instead..
I found my problem. That is, I export my gui. The previous code is like this:
Code: Select all
export gui='<?xml version="1.0"?>
<window decorated="true" resizable="false" title="Mukstart" icon-name="limuks-logo">
...
</window>' > "$mukstartdir"/gui_mukstart
Code: Select all
echo '<?xml version="1.0"?>
<window decorated="true" resizable="false" title="Mukstart" icon-name="limuks-logo">
...
</window>' > "$mukstartdir"/gui_mukstart
Code: Select all
tail -n +2 "$mukstartdir"/gui_mukstart | gtkdialog -s
What new:
we can move from tree (search apps) using left and right arrow. Left go to search box (entry) and right go to display picture.
Run it by command "mukstart" from terminal.
At first walk, it is eat long time. But at second and later, it run faster.
Questions:
1. How to make fileselect can show preview of display picture?
2. This mukstart still long to wake up from I run it. Anyone know how to faster it?
Thank you.
- Attachments
-
- mukstart-191222.png
- (66.41 KiB) Downloaded 201 times
-
- mukstart-191222.pet
- Find app now work
- (195.53 KiB) Downloaded 248 times
I redid your script for non puppy linux and replaced :recobayu wrote:2. This mukstart still long to wake up from I run it. Anyone know how to faster it?
for -> awk
gtkdialog : <input file> -> <input file icon=
"Recent Apps" does not work ?
Сan add checkbox "Edit *.desktop" ?
[url=https://sourceforge.net/projects/puppyrusa/]PuppyRus-Arch[/url]