Comments (5)
Immediate fix is
loadTEditmenu(){
menuSeparator
menuItem "Default tint2rc" "bl-text-editor $TINT2RC"
if [ "$(pidof tint2)" ];then
menuSubmenu "RunningTint2" "Running Tint2s"
pgrep -a tint2 | while read pid cmd; do
if [[ ${cmd%% *} = tint2 ]]; then
TINT2=$(echo $cmd | awk -F"/" '{print $(NF-1)"/"$NF}')
TINT=$(echo $cmd | awk '{print $NF}')
if [[ $TINT2 = "tint2/tint2" ]];then
TINT="$TINT2RC"
TINT2="Default tint2rc"
fi
menuItem "$TINT2" "bl-text-editor $TINT"
fi
done
menuSubmenuEnd
fi
}
A sessionfile only has the paths to the chosen tint2's, so a default tint2-sessionfile would just contain the line
/home/user/.config/tint2/tint2rc
from bunsen-pipemenus.
btw it's possible to get rid of the awk calls:
TINT=${cmd##* }
TINT2=${TINT#$HOME/.config/}
if [[ $TINT = tint2 ]]; then...
from bunsen-pipemenus.
btw it's possible to get rid of the awk calls:
...but I find it difficult getting my head around those bash substitutions!
from bunsen-pipemenus.
Much nicer looking though - and faster too, if that matters.
Easy enough once you get the hang of it:
http://wiki.bash-hackers.org/syntax/pe#substring_removal
from bunsen-pipemenus.
Edited bl-tint2-pipemenu and pushed changes.
from bunsen-pipemenus.
Related Issues (20)
- Package not found: Google chrome stable HOT 2
- "Recent Files" pipemenu nil value error and "Clear Recent Files" not working. HOT 9
- Edit to bl-tint2-pipemenu HOT 1
- ssh-pipemenu doesnt list the remote servers HOT 3
- Menu capitalization HOT 1
- Change some dependencies to recommends? HOT 8
- bl-multimedia-pipemenu: change labelling of smplayer as "Gnome mplayer" HOT 12
- bl-multimedia-pipemenu remove "volti" entry, do not add "volumeicon"? HOT 2
- bl-dropbox-pipemenu doesn't show progress of dependency installation HOT 7
- pipemenu's "Install" screen doesn't close HOT 8
- Scripts called from bunsen-utilities: test before adding menu item? HOT 1
- Remove package yad and packages bunsen-pipemenus and bunsen-untilities are removed too. HOT 2
- bl-kb-pipemenu can be speeded up HOT 1
- bl-compositor: needs to deal with '-h/--help' parameters HOT 20
- bl-recent-files-pipemenu: command truncated in some cases HOT 1
- bl-x-www-browser-pipemenu: select default browser should exit with a message... HOT 2
- bl-x-www-browser-pipemenu: there is no package called "firefox" in Debian Jessie HOT 2
- Having issues with bunsen pipemenus
- bl-recent-files-pipemenu: adapt script and package to use Lua 5.3 in Stretch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunsen-pipemenus.